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

相关文章: