1、開啟埠
firewall-cmd --zone=public --add-port=9092/tcp --permanent返回success即使開啟埠成功
--zone #作用域
--add-port=80/tcp #新增埠,格式為:埠/通訊協議
--permanent #永久生效
2、重啟centos7的防火牆
systemctl restart firewalld.service3、停止防火牆服務
systemctl stop firewalld.service4、檢視埠開啟狀況
centos7 防火牆埠設定
開啟和關閉防火牆 systemctl start firewalld 啟動防火牆 systemctl status firewalld 檢視防火牆狀態 systemctl stop firewalld 關閉防火牆 systemctl disable firewalld 開啟不啟動防火牆 system...
CentOS7防火牆和埠
通過systemctl status firewalld檢視firewalld狀態,發現當前是dead狀態,即防火牆未開啟。通過systemctl start firewalld開啟防火牆,沒有任何提示即開啟成功。再次通過systemctl status firewalld檢視firewalld狀態...
Centos7防火牆及埠設定
1 查詢防火牆開放的埠 firewall cmd zone public list ports 2 防火牆開放埠 firewall cmd zone public add port 5672 tcp permanent 開放5672埠 firewall cmd zone public remove ...