CentOS7防火墙firewalld设置

添加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

上一篇:在window上安装pandas


下一篇:Centos6.5下VNC Server配置