美文网首页
redhat6.2及以上版本关闭防火墙

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

作者: 人生处处是惊喜 | 来源:发表于2017-09-16 18:18 被阅读0次

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及以上版本关闭防火墙

      本文链接:https://www.haomeiwen.com/subject/fklusxtx.html