Overview
In this techblog, I wanted to share with you the steps I used to set up m-Power on Ubuntu Server, a popular “flavor” of Linux.
Steps
- Download m-Power by typing the following command:
wget https://www.mrc-productivity.com/products/mpower/m-power_linux.zip
- Download and install JDK 11: https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html
- Verify that the JDK installed correctly by typing
java -version
andjavac -version
- Move the m-Power installation from its current directory into the root, using the MV command.
- In root, type
jar -xf m-power.zip
to extract m-Power - Transfer the mrclicense.txt file that was sent to you from mrc into the /m-power/proddata/conf folder, using FTP.
- Modify the /m-power/tomcat/conf/server.xml file. Near the end of the file, correct the docBase of each context to point to the correct folder structure on your Ubuntu server. [Usually, this means removing “C:”]
- Edit the bash_profile, by keying in:
vi ~/.bash_profile
- Add the following text to the file:
export JAVA_HOME=PATH_TO_JDK11_GOES_HERE
- Set all script files in /m-power/tomcat/bin to be executable by typing the following command:
chmod +x *.sh
Testing
To start Tomcat, type:/m-power/tomcat/bin/catalina.sh start
To stop Tomcat, type:/m-power/tomcat/bin/catalina.sh stop
You can access m-Power by using the following URL: http://Linux_IP_Address:8011/webapp/mrc