Tomcat is a free open source Serlvet container, a core project of the Apache Foundation's Jakarta Project, developed by Apache,sun and other companies and individuals. With Sun's involvement and support, the latest servlet and JSP specifications are always reflected in Tomcat.
Tomcat is a robust standalone web server with servlet Container, but its web server does not function as complete as many more robust Web servers, such as Apache Web servers (for example, Tomcat does not have a large number of selective modules). However, Tomcat is free open source software, and there are many experts dedicated to its development.
You need to install J2SDK (Java 2 software development Kit) before installing Tomcat, which is the JDK
1. The steps to install the JDK are as follows:
1) Download j2sdk, such as Jdk-6u1-linux-i586-rpm.bin
2) Yum install-y lrzsz//install upload download command (third-party connection to Linux tools)
In the terminal to the directory where the Jdk-6u1-linux-i586-rpm.bin, enter the command
#chmod 777 jdk-6u1-linux-i586-rpm.bin;//Add permissions to execute.
3) Execute the command
#./jdk-6u1-linux-i586-rpm.bin;//generates the jdk-6u1-linux-i586.rpm file.
4) Execute the command
#chmod 777 jdk-6u1-linux-i586.rpm;//To add the Execute permission to jdk-6u1-linux-i586.rpm.
5) Execute the command
#rpm –IVH jdk-6u1-linux-i586.rpm;//install JDK.
6) The installation interface will appear the license agreement, press ENTER to accept, the JDK installed in the/usr/java/jdk1.6.0_01.
7) Set the environment variables, add the following in/etc/profile (you can edit profile with VI):
java_home=/usr/java/jdk1.6.0_01 
classpath= $JAVA _home/lib: $JAVA _home/jre/lib
path= $PATH: $JAVA _home/bin: $JAVA _ Home/jre/bin 
Re-read: Source/etc/profile
8) The version of the command JAVA–VERSION,JDK executed at the terminal is jdk1.6.0_01, which indicates that the JDK has been successfully installed.
2. Install Tomcat
1) Download apache-tomcat-6.0.10.tar.gz
2) #tar-ZXVF apache-tomcat-6.0.10.tar.gz;//Unzip
3) #cp-R apache-tomcat-6.0.10/usr/local/tomcat;//Copy apache-tomcat-6.0.10 to/usr/local/and rename to Tomcat
4)/usr/local/tomcat/bin/startup.sh;//Start Tomcat
Display Using catalina_base:/usr/local/tomcat
Using Catalina_home:/usr/local/tomcat
Using Catalina_temdir:/usr/local/tomcat/temp
Using Java_home:/usr/java/jdk1.6.0_01
To this tomcat has been installed, now using the browser to access http://localhost:8080, the Tomcat default page appears, indicating that the installation was successful.
Installing Tomcat under Linux