{"id":1285,"date":"2012-03-12T09:53:36","date_gmt":"2012-03-12T15:53:36","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/techblog\/?p=1285"},"modified":"2024-09-24T11:56:42","modified_gmt":"2024-09-24T17:56:42","slug":"1285","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=1285","title":{"rendered":"Installing m-Power on CentOS (Fedora)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>I recently had the opportunity to setup m-Power on a Fedora based server (RHEL\/Centos). If you find yourself wanting to install m-Power on this operating system (or one similar to it), please check out the below instructions:<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Note:<\/strong> The following instructions assume you are logged in as a <strong>root<\/strong> user to a command line interface. If not, you will need to issue the following commands in \u201csudo\u201d mode.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Change directory to root (cd \/tmp) and download m-Power from our servers using this syntax:<br><code>wget https:\/\/www.mrc-productivity.com\/products\/mpower\/rc\/m-power_linux.zip<\/code><\/li>\n\n\n\n<li>Download JDK 17 from Amazon by clicking <a href=\"https:\/\/corretto.aws\/downloads\/latest\/amazon-corretto-17-x64-linux-jdk.rpm\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a> to download the rpm. Please install it on your Fedora based server.<\/li>\n\n\n\n<li>Now that the necessary programs have been downloaded, you will need to give yourself the authority to run each program:<br><code>chmod +x m-power.zip<\/code><br><code>chmod +x java-17-amazon-corretto-devel-17.0.12.7-1.x86_64.rpm<\/code><\/li>\n\n\n\n<li>Next, install the JDK via a local yum install<\/li>\n\n\n\n<li>Once that completes, you should be able to type in the following commands to verify that the JDK has installed correctly.<br><code>java -version<\/code><br><code> javac -version<\/code><\/li>\n\n\n\n<li>Next, you will need to extract m-Power. You can do this by using the following syntax:<br><code>jar -xf m-power_linux.zip<\/code><br>This will create file in \/tmp called <code>InstallmPower.sh<\/code>. Run this command it will complete the installation process.<\/li>\n\n\n\n<li>Install your m-Power license file by transferring your mrclicense.txt file to the \/mrc\/dev\/m-power\/proddata\/conf folder of your Linux server.<\/li>\n\n\n\n<li>Additionally, install an additional copy of your m-Power license file to the \/mrc\/dev\/m-power\/mrcjava folder.<\/li>\n\n\n\n<li>We will start Tomcat using the catalina.sh within the \/m-power\/tomcat\/bin directory. Before you run this, you will need to grant authority to execute this program. Do this by typing the following:<br><code>chmod +x \/m-power\/tomcat\/bin\/*.sh<\/code><\/li>\n\n\n\n<li>Start Tomcat by issuing the following command:<br><code>\/m-power\/tomcat\/bin\/catalina.sh start<\/code><\/li>\n\n\n\n<li>Tomcat can be stopped using this command:<br><code>\/m-power\/tomcat\/bin\/catalina.sh stop<\/code><\/li>\n<\/ol>\n\n\n\n<p>You can access m-Power by using the following URL:<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/Linux_IP_Address:8011\/webapp\/mrc\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Troubleshooting<\/strong><\/h2>\n\n\n\n<p>If you cannot connect using the instructions above, there is a good chance that your Linux server is not allowing traffic on m-Power\u2019s default port, 8011. To allow traffic on this port, please do the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Run this command: vi \/etc\/sysconfig\/iptables<\/li>\n\n\n\n<li>Add the following information:<br><code>-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8011 -j ACCEPT<\/code><\/li>\n\n\n\n<li>Be sure to Save.<\/li>\n\n\n\n<li>Restart the IPTables by issuing the following command:<br><code>\/etc\/init.d\/iptables restart<\/code><code><\/code><\/li>\n\n\n\n<li>Be sure to stop and start Tomcat before accessing m-Power via the web.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Overview I recently had the opportunity to setup m-Power on a Fedora based server (RHEL\/Centos). If you find yourself wanting to install m-Power on this operating system (or one similar to it), please check out the below instructions: Steps You can access m-Power by using the following URL: Troubleshooting If&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"class_list":["post-1285","ht_kb","type-ht_kb","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/1285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1285"}],"version-history":[{"count":22,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/1285\/revisions"}],"predecessor-version":[{"id":12366,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/1285\/revisions\/12366"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1285"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=1285"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=1285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}