Centos防火墙及SELINUX关闭

2019-03-19  本文已影响0人  DBA成长之路
Centos6.x
 
service iptables stop
chkconfig iptables off
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
grep SELINUX=disabled /etc/selinux/config
setenforce 0
 
Centos7.x
 
systemctl stop firewalld
systemctl disable firewalld
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
grep SELINUX=disabled /etc/selinux/config
setenforce 0

上一篇下一篇

猜你喜欢

热点阅读