美文网首页
Centos防火墙及SELINUX关闭

Centos防火墙及SELINUX关闭

作者: DBA成长之路 | 来源:发表于2019-03-19 20:45 被阅读0次
    Centos6.x
     
    service iptables stop
    chkconfig iptables off
    sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
    grep SELINUX=disabled /etc/selinux/config
    setenforce 0
     
    Centos7.x
     
    systemctl stop firewalld
    systemctl disable firewalld
    sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
    grep SELINUX=disabled /etc/selinux/config
    setenforce 0
    
    

    相关文章

      网友评论

          本文标题:Centos防火墙及SELINUX关闭

          本文链接:https://www.haomeiwen.com/subject/rkcomqtx.html