Installation Instructions
Installation Environment: CentOS-6.3
Installation method: Source Installation
Software: apache-tomcat-7.0.29.tar.gz
: http://tomcat.apache.org/download-70.cgi
2.
Root@admin local]# cd/usr/local
[Root@admin local]# tar-zxv-f apache-tomcat-7.0.29.tar.gz//Decompression Pack
[Root@admin local]# rm-rf apache-tomcat-7.0.29.tar.gz//Delete compressed package
[Root@admin local]# MV apache-tomcat-7.0.29 Tomcat
Add 8080 ports to the firewall configuration and do the following:
[Email protected] ~]# VI +/etc/sysconfig/iptables
#增加以下代码
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 8080-j ACCEPT
Self-booting:
1, modify the/etc/rc.d/rc.local, use the vi/etc/rc.d/rc.local command
2. Add the following two lines of script at the end of the/etc/rc.d/rc.local file
Export java_home=/usr/java/jdk1.7.0_79
/usr/tomcat/tomcat/bin/startup.sh start
~
CentOS Tomcat Installation