Installation on Unix/Linux (Tomcat 8)

1 min read

The first step is to ensure that you have downloaded the appropriate https://openempi.atlassian.net/wiki/spaces/openempi30/pages/295002 and setup the environment correctly as described on the linked page. You can verify that your environment is setup properly but invoking the following two commands and confirming that the output you see essentially matches the output below. Eventually the specific version of the JDK will change but as long as you see a fairly recent version of the 1.7 JDK you should be fine.

$ env | grep JAVA_HOME
JAVA_HOME=/sysnet/tools/jdk1.8.0_111
$ env | grep PATH
PATH=/sysnet/tools/jdk1.8.0_111/bin:/sysnet/tools/apache-maven-3.3.9/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

At this point you should have downloaded the most recent version of Tomcat so you should have the file locally and you can just expand the archive in the directory where you would like to install the server.

$ cd /sysnet/servers
$ tar xf ~/Downloads/apache-tomcat-8.0.39.tar.gz
$ ls apache-tomcat-8.0.39/
bin  conf  lib  LICENSE  logs  NOTICE  RELEASE-NOTES  RUNNING.txt  temp  webapps  work

You can verify that your server is ready to run and that it is using the correct version of the JAVA JDK using the version.sh script.

$ /sysnet/servers/apache-tomcat-8.0.39/bin/version.sh
Using CATALINA_BASE:   /sysnet/servers/apache-tomcat-8.0.39
Using CATALINA_HOME:   /sysnet/servers/apache-tomcat-8.0.39
Using CATALINA_TMPDIR: /sysnet/servers/apache-tomcat-8.0.39/temp
Using JRE_HOME:        /usr/lib/jvm/java-8-oracle/jre
Using CLASSPATH:       /sysnet/servers/apache-tomcat-8.0.39/bin/bootstrap.jar:/sysnet/servers/apache-tomcat-8.0.39/bin/tomcat-juli.jar
Server version: Apache Tomcat/8.0.39
Server built:   Jun 9 2016 13:55:50 UTC
Server number:  8.0.39.0
OS Name:        Linux
OS Version:     4.8.5-040805-generic
Architecture:   amd64
JVM Version:    1.8.0_111-b13
JVM Vendor:     Oracle Corporation

You can now start the server using the startup.sh command and you should see the following output on your screen.

$ /sysnet/servers/apache-tomcat-8.0.39/bin/startup.sh
Using CATALINA_BASE:   /sysnet/servers/apache-tomcat-8.0.39
Using CATALINA_HOME:   /sysnet/servers/apache-tomcat-8.0.39
Using CATALINA_TMPDIR: /sysnet/servers/apache-tomcat-8.0.39/temp
Using JRE_HOME:        /sysnet/tools/jdk1.8.0_111
Using CLASSPATH:       /sysnet/servers/apache-tomcat-8.0.39/bin/bootstrap.jar:/sysnet/servers/apache-tomcat-8.0.39/bin/tomcat-juli.jar
Tomcat started.

You can verify that the server started successfully by pointing your browser to the URL http://localhost:8080