1. 程式人生 > >CentOS7 為firewalld添加開放端口

CentOS7 為firewalld添加開放端口

reload tcp zone firewall cmd all 失效 -s gpo

1、運行、停止、禁用firewalld

啟動:# systemctl start firewalld

查看狀態:# systemctl status firewalld 或者 firewall-cmd --state

停止:# systemctl disable firewalld

禁用:# systemctl stop firewalld

那怎麽開啟一個端口呢 添加 firewall-cmd --zone=public --add-port=80/tcp --permanent (--permanent永久生效,沒有此參數重啟後失效) 重新載入 firewall-cmd --reload
查看

CentOS7 為firewalld添加開放端口