CentOS 7 查看和设置防火墙状态

CentOS7 默认使用的是firewall作为防火墙

查看防火墙状态

firewall-cmd --state

停止firewall

systemctl stop firewalld.service

开启firewall

firewall-cmd --state

禁止firewall 开机启动

systemctl disable firewalld.service

 

posted @ 2019-04-30 17:10  六月骄阳  阅读(23823)  评论(0编辑  收藏  举报