For Unix platforms, you can download the jakarta-tomcat-5.0.18.tar.gz file, for instance to /usr/local, and use these commands to unpack it (assuming you have GNU tar installed):
cd /usr/local[hans@gefion local]
tar xzvf jakarta-tomcat-5.0.18.tar.gz
If you don’t have GNU tar installed on your system, use the following command:
gunzip -c jakarta-tomcat-5.0.18.tar.gz | tar xvf -
This creates a directory structure that has a top directory named jakarta-tomcat-5.0.18 and a number of subdirectories. As in most software packages, the top directory contains a file named README.txt; do that. Software distributions change and if, for instance, the instructions in this chapter no longer apply when you download the software, the README.txt file should contain information about how to get started. Additional details can be found in the file named RUNNING.txt.
You should also set the CATALINA_HOME environment variable to point to the Tomcat installation directory:
Catalina is the name of the servlet container, and Jasper is the name of the JSP container; together, they are known as the Tomcat server.
The Tomcat installation directory contains a number of subdirectories, described later. The bin directory contains Unix scripts for starting and stopping the server. The scripts are named startup.sh, shutdown.sh, and catalina.sh.
Start the server ...