当前位置:   article > 正文

linux永久关闭selinx和防火墙_linux slnix 关闭

linux slnix 关闭

声明  我用的是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
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/986891
推荐阅读
相关标签
  

闽ICP备14008679号