首页 > 安全类 > CentOS7查看和关闭防火墙

3225

浏览

0

评论

CentOS7查看和关闭防火墙

作者:stephen | 分类:安全类 | 标签:

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

查看防火墙状态

firewall-cmd --state1

停止firewall

systemctl stop firewalld.service1

禁止firewall开机启动

systemctl disable firewalld.service 1

转自:CentOS 6和CentOS 7防火墙的关闭

关闭selinux
进入到/etc/selinux/config文件

vi /etc/selinux/config1

将SELINUX=enforcing改为SELINUX=disabled


本文链接:https://www.stephenwxf.com/post/81.html
原创文章如转载请注明:转载自王显璠的个人博客谢谢!

Copyright Your stephenwxf.com Rights Reserved.