Tomcat Installation has been edited by Dain Sundstrom (Sep 21, 2007).

(View changes)

Content:

Overview

Tomcat installation is very simple, and can be describes as "Unpack and Run". These instructions were written using Tomcat 6.0.14 but any recent 6.x version should work. If you are comfortable with the CLI, these the following quick instructions will get you going ASAP; otherwise skip to the Download Tomcat section.

  1. Download Tomcat zip or tar.gz
  2. Unpack archive
  3. Platform specific setup
    • [Unix] If zip was unpacked, chmod u+x bin/*.sh
    • [Windows] set JAVA_HOME =C:\your\java\installation
  4. Run bin/startup.sh or bin/startup.bat
  5. Visit http://localhost:8080/
  6. Run bin/shutdown.sh or bin/shutdown.bat

Download Tomcat

Download Tomcat 6 zip file from here.

Unpack Tomcat

Unpack the Tomcat zip file which will create a new directory containing the complete Tomcat installation.

[Unix] Make shell scripts executable

For Unix users, the shell scripts in the Tomcat installation are not executable by default, so in order to execute them, you must set mark them as executable. If you unpacked the Tomcat tar.gz file, the scripts are already executable. The following command will make all shell scripts executable:

apache-tomcat-6.0.14$ chmod u+x bin/*.sh

[Windows] Set JAVA_HOME environment variable

For Windows users, the Tomcat shell scripts must know the location of the Java installation, and this is done with environment variables. The following command will set the JAVA_HOME environment variable:

C:\>set JAVA_HOME =C:\your\java\installation

Start Tomcat

Execute the following command to start the Tomcat server:

NOTE: Your output will be different from the example above due to differences in installation location.

Verify Tomcat is Running

Visit http://localhost:8080/ and you should see the Tomcat welcome page.

Stop Tomcat

Shutdown Tomcat by executing the following command:

NOTE: Your output will be different from the example above due to differences in installation locations.

Reply via email to