From charlesreid1

No edit summary
Line 27: Line 27:


To test that Tomcat is working, go to http://localhost:8080
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

Revision as of 02:19, 8 June 2012

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