wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.78/bin/apache-tomcat-7.0.78.tar.gz
- 环境注意先安装配置好JDK,请看文章JDK的安装
- 解压
cd /usr/local
tar -zxv -f apache-tomcat-7.0.78.tar.gz // 解压压缩包
rm -fr apache-tomcat-7.0.78.tar.gz // 删除压缩包
mv apache-tomcat-7.0.78 tomcat7
- 启动Tomcat
/usr/local/tomcat7/bin/startup.sh
- 配置防火墙
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload