linux上安装tomcat
这里采用离线解压tar.gz的方式安装
下载:
wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.0.33/bin/apache-tomcat-8.0.33.tar.gz
- 1
解压:
tar -zxvf apache-tomcat-8.0.33.tar.gz -C /opt/soft
- 1
启动Tomcat:
cd /opt/soft/apache-tomcat-8.0.33/bin/
./startup.sh
- 1
- 2
centos7将8080端口添加到防火墙例外并重启
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload
centos6将8080端口添加到防火墙例外并重启 systemctl restart iptables.service