Centos 7 安裝tomcat
- 解壓
-
開8080端口
/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT 打開8080 端口
- iptables-save 儲存
-
cd apache-tomcat-7.0.57cd bin 進入 bin
./startup.sh 啟動 tomcat
./shutdown.sh 關閉 tomcat
ps -ef | grep tomcat 檢視tomcat程序
關閉防火牆,本機防火牆也需關閉
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall開機啟動