CentOS7防火墙firewalld设置

时间:2021-03-01 03:31:49

添加80端口  重启后永久生效

firewall-cmd --zone=public --add-port=80/tcp --permanent   

查看防火墙状态

systemctl status firewalld.service  

启动防火墙

systemctl start firewalld.service  

关闭防火墙

systemctl stop firewalld.service  

重启防火墙

systemctl restart firewalld.service  

禁用防火墙 、 禁止防火墙开机启动

systemctl disable firewalld.service   

查看更多  https://www.zhaokeli.com/Article/6321.html