redhat6.2及以上版本关闭防火墙

linux6上关闭防火墙和selinux,root下执行:

service iptables stop

chkconfig iptables off

service ip6tables stop

chkconfig ip6tables off

setenforce 0

getenforce

vi /etc/selinux/config 确保以下内容

SELINUX=disabled

linux6上 iptables关闭后 ip6tables会起来,所以最好一并关掉。

service iptables stop  #立即停掉iptables服务

chkconfig iptables off  #禁止iptables的开机启动

执行chkconfig iptables off后,你再执行

chkconfig iptables --list

你可能感兴趣的:(redhat6.2及以上版本关闭防火墙)