(转)关闭iptables和SELinux

1. 关闭SELinux

setenforce 0   #临时关闭

编辑/etc/selinux/config,找到SELINUX 行修改成为:SELINUX=disabled:     #永久关闭,重启生效

2.关闭iptables

service iptables stop  #临时关闭,重启无效

chkconfig iptables off    #永久关闭,重启生效

3.重启系统

reboot

 

原文:http://blog.csdn.net/yuanchao99/article/details/19406827

posted @ 2015-08-21 14:58  思凡念真  阅读(369)  评论(0编辑  收藏  举报