系统环境
CentOS Linux release 7.2.1511
tomcat
apache-tomcat-7.0.72.tar.gz
下载地址:
http://archive.apache.org/dist/tomcat/
安装前提
系统安装JDK6+
参考:
http://www.linuxdiyf.com/linux/13204.html
安装tomcat
tar -zxv -f apache-tomcat-7.0.72.tar.gz
启动tomcat
[root@localhost tomcat]# /usr/tomcat/apache-tomcat-7.0.72/bin/startup.sh
Using CATALINA_BASE: /usr/tomcat/apache-tomcat-7.0.72
Using CATALINA_HOME: /usr/tomcat/apache-tomcat-7.0.72
Using CATALINA_TMPDIR: /usr/tomcat/apache-tomcat-7.0.72/temp
Using JRE_HOME: /usr/java/jdk1.7.0_79
Using CLAsspATH: /usr/tomcat/apache-tomcat-7.0.72/bin/bootstrap.jar:/usr/tomcat/apache-tomcat-7.0.72/bin/tomcat-juli.jar
Tomcat started.
启动成功!
防火墙开放8080端口
vim + /etc/sysconfig/iptables-config
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
检验Tomcat安装运行