linux永久关闭selinx和防火墙

来源:互联网 发布:传奇物品数据库翻译 编辑:程序博客网 时间:2024/04/28 19:17

声明  我用的是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