CentOS 6.6永久关闭 SELinux与iptables 的方法

永久关闭SELinux
修改配置文件
# vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
需要重启机器生效!!

关闭防火墙

开启: chkconfig iptables on
关闭: chkconfig iptables off

临时关闭防火墙

开启: service iptables start

关闭: service iptables stop

posted @ 2020-04-10 18:59  天半子  阅读(623)  评论(0编辑  收藏  举报