1. Download tomcat1.7.tar.gz
2. Place the file in the/usr/local
#cp tomcat1.7.tar.gz/usr/local
3. Go to/usr/local and unzip tomcat1.7.tar.gz
#cd/usr/local
#tar-ZXVF tomcat1.7.tar.gz Decompression
#rm tomcat1.7.tar.gz Delete a compressed package
#mv tomcat1.7 Tomcat renaming
4. Start Tomcat
#/usr/local/tomcat/bin/startup.sh
5. Turn off Tomcat
#/usr/local/tomcat/bin/shutdown.sh
Note: If you start tomcat with an error that the JDK environment variable is not registered, you need to manually write
1. Edit/usr/local/tomcat/bin/setclasspath.sh
#gedit/usr/local/tomcat/bin/setclasspath.sh
2. Insert
Export java_home=/usr/local/java/jdk1.7.0_45
Export JRE_HOME=/USR/LOCAL/JAVA/JDK1.7.0_45/JRE
6. Add 8080 ports to the firewall configuration
#vi +/etc/sysconfig/iptables
Add the following code
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 8080-j ACCEPT
Save Exit VI
Restarting the firewall
#service iptables Restart
Install TOMCAT7 under Linux (CENTOS7)