Operating System: RedHat Linux 5
1. install Tomcat
Decompress apache-tomcat-6.0.29.zip to any directory with permissions, such as/home/ITS/Apache-Tomcat-6.0.29.
2. Download and install JDK (jdk1.6.0 _ 24-linux-i586.bin ):
Run the./jdk1.6.0 _ 24-linux-i586.bin command to install the SDK. Assume that the installation path is/home/ITS/jdk1.6.0 _ 24.
Set environment variables: VI ~ /. Bash_profile:
Java_home =/home/ITS/jdk1.6.0 _ 24
Path = $ path: $ home/bin
Path = $ java_home/bin: $ path
Class_path = $ java_home/lib/dt. jar: $ java_home/lib/tools. Jar
Export java_home
Export class_path
Export tomcat_home =/home/ITS/Apache-Tomcat-6.0.29
Export catalina_home =/home/their/Apache-Tomcat-6.0.29
Export path
Note: The red font is required, and other settings are not required.
3. start Tomcat
$ CD/home/ITS/Apache-Tomcat-6.0.29/bin
$./Startup. Sh
The following error is reported:
The basedir environment variable is not defined correctly
This environment variable is needed to run this program
Solution:
Add the following executable permissions for all. Sh files in/home/ITS/Apache-Tomcat-6.0.29/bin:
$ CD/home/ITS/Apache-Tomcat-6.0.29/bin
$ Chmod + x *. Sh
Restart tomcat.