centos服务器关闭selinux及防火墙
发布时间:2019-06-30 点击数:2928
centos6
/etc/init
.d
/iptables
stop
chkconfig iptables off
sed
-i
's/SELINUX=enforcing/SELINUX=disabled/'
/etc/selinux/config
grep
SELINUX=disabled
/etc/selinux/config
setenforce 0
centos7
systemctl stop firewalld.service
systemctl disable firewalld.service
sed
-i
's/SELINUX=enforcing/SELINUX=disabled/'
/etc/selinux/config
grep
SELINUX=disabled
/etc/selinux/config
setenforce 0
上一篇:查看某个接口接收到的数据 下一篇:重置centos7根用户root密码