防火墙常用命令

防火墙常用命令

centos7的防火墙的状态

sudo systemctl status firewalld

 

 

关闭防火墙

sudo systemctl stop firewalld

 

 打开防火墙

sudo systemctl start firewalld

重启后防火墙

sudo systemctl disable firewalld

开机启动防火墙

systemctl enable firewalld

开机自动关闭

systemctl disable firewalld

 

posted on 2020-09-01 14:16  调皮小蚊子  阅读(689)  评论(0编辑  收藏  举报