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:
Note:The following instructions assume you are logged in as a root user to a command line interface. If not, you will need to issue the following commands in “sudo” mode.
- Change directory to root (cd /) and download m-Power from our servers using this syntax:
- Download JDK 1.8 from Amazon:
Note: Please click here to download the rpm. Please install it on your Fedora based server.
- Now that the necessary programs have been downloaded, you will need to give yourself the authority to run each program:
chmod +x m-power.zip
chmod +x jdk-8u91-linux-x64-rpm.bin
- Next, install the JDK via a local yum install
- Once that completes, you should be able to type in the following commands to verify that the JDK has installed correctly.
- Next, you will need to extract m-Power. You can do this by using the following syntax:
jar -xf m-power.zip
m-Power has now been installed, but needs to be configured to run on your Linux Server.
- Edit the server.xml file using the vi command within the /m-power/tomcat/conf/server.xml file. Specifically, change the docBase value within the <Context> tag, to point to the location of your m-Power folder.
(Modify c:/m-power/mrcwebgui to /m-power/mrcwebgui and c:/m-power/mrcjava to /m-power/mrcjava)
- Within the /m-Power/proddata/conf, use the mv command to move mrctool.properties to the mrctoolWin.properties.
- Within the /m-Power/proddata/conf, use the mv command to move mrctool400.properties to mrctool.properties.
- Next, you will need to tell your Linux server where to find the Java logic that you installed above. One of the ways you can do this is to edit your Bash file. Use the following command:
Add the following text to the file:
Be sure to save (:wq).
- Install your m-Power license file by transferring your mrclicense.txt file to the /m-power/proddata/conf folder of your Linux server.
- Additionally, install an additional copy of your m-Power license file to the /m-power/mrcjava folder.
- 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:
chmod +x /m-power/tomcat/bin/*.sh
- Start Tomcat by issuing the following command:
- Tomcat can be stopped using this command:
You can access m-Power by using the following URL:
If you cannot connect using the instructions above, there is a good chance that your Linux server is not allowing traffic on m-Power’s default port, 8011. To allow traffic on this port, please do the following:
- Run this command: vi /etc/sysconfig/iptables
- Add the following information:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8011 -j ACCEPT
- Be sure to Save.
- Restart the IPTables by issuing the following command:
- Be sure to stop and start Tomcat before accessing m-Power via the web.