我就静静地看着你,不说话~

CentOS-关闭防火墙和禁用安全策略

关闭防火墙

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

 

查看防火墙状态

$ firewall-cmd --state


停止firewall

$ systemctl stop firewalld.service


禁止firewall开机启动

$ systemctl disable firewalld.service

 

 

 

禁用安全策略

 

进入到/etc/selinux/config文件
$ vim /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled

 

关闭

$ setenforce 0

查看

$ getenforce

posted @ 2020-01-15 10:17  有个大爷在飞  阅读(173)  评论(0)    收藏  举报