解決centos7下tomcat啟動正常,無法訪問項目的問題


centos7防火牆不再采用iptables命令,改用firewalld

禁用防火牆命令:

# systemctl stop firewalld.service
# systemctl disable firewalld.service
# systemctl status firewalld.service
啟動一個服務:systemctl start firewalld.service 關閉一個服務:systemctl stop firewalld.service 重啟一個服務:systemctl restart firewalld.service 顯示一個服務的狀態:systemctl status firewalld.service 在開機時啟用一個服務:systemctl enable firewalld.service 在開機時禁用一個服務:systemctl disable firewalld.service 查看服務是否開機啟動:systemctl is-enabled firewalld.service;echo $? 查看已啟動的服務列表:systemctl list-unit-files|grep enabled

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM