声明 我用的是centOS6.3
永久关闭防火墙
[root@localhost ~]# chkconfig iptables off<回车>
永久关闭selinux
1 vi /etc/selinux/config
2 #SELINUX=enforcing #注释掉
3 #SELINUXTYPE=targeted #注释掉
4 SELINUX=disabled #增加
5 :wq #保存,关闭。
6 shutdown -r now #重启系统
PS: 查看selinux状态 getenforce
查看防火墙状态 service iptables status