Installing and configuring the Tomcat server
Install the Tomcat server using the following commands:
2. Configure Java and Tomcat using the following steps:
a. Go to <tomcat home>/bin.
b. In the Catalina.sh file, enter the following commands:
The values passed for "CATALINA_OPTS" will vary based on the memory allocation.
Under <$TOMCAT_HOME>/conf/, in the Server.xml file, do not change the default values for maxThreads and minSpareThreads (200 and 10 respectively).
3. Under the $TOMCAT_HOME/lib folder, create a file log4j.properties containing the following code:
4. Go to $TOMCAT_HOME/Conf/ and in the server.xml file, enable
compression using the following lines of code:
If useSendfile is set to ‘false’, then any compression that Tomcat may have otherwise performed on the response will be disabled.
5. Deploy the WAR file using the following steps:
Run the following command: cd tomcat8/webapps/
Backup the existing WAR file, if any, and delete it.
Move the CloudIO WAR file into the webapps folder and rename it as ROOT.war.
Run the following command: cd $TOMCAT_HOME/bin/
Start the Tomcat server using the following command: ./startup.sh
Last updated