Unix Platforms (Including Linux and Mac OS X)
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):
[hans@gefion /]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:
[hans@gefion local] 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:
[hans@gefion local] export CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.18Catalina 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access