From charlesreid1

Installation

Download Apache Tomcat binary:

$ wget http://apache.cs.utah.edu/tomcat/tomcat-7/v7.0.27/bin/apache-tomcat-7.0.27.tar.gz

Since you don't have to build it, you don't have to do much else.

You'll need to set the CATALINA_HOME environment variable to be whatever path you extracted Tomcat into:

$ export CATALINA_HOME="/path/to/apache-tomcat-7.0.27"

Running

To run the Tomcat server, you'll use the start.sh script in the bin directory:

$ cd /path/to/apache-tomcat-7.0.27

$ ./bin/start.sh &

To test that Tomcat is working, go to http://localhost:8080

The Tomcat server's web root directory is here:

$CATALINA_HOME/webapps/ROOT/index.html

Change Port Number

You can change what port Tomcat runs on by changing the file:

$CATALINA_HOME/conf/server.xml


Add/Modify Users

Users/admins are defined in the file

$CATALINA_HOME/conf/tomcat-users.xml