美文网首页
CentOS 7.X 关闭SELinux

CentOS 7.X 关闭SELinux

作者: ljh_10e3 | 来源:发表于2019-04-23 10:01 被阅读0次

1、查看

# getenforce

        Disabled

# /usr/sbin/sestatus -v

        SELinux     status:disabled

2、临时关闭

##设置SELinux 成为permissive模式##setenforce 1 设置SELinux 成为enforcing模式setenforce0

3、永久关闭

vi /etc/selinux/config

将SELINUX=enforcing改为SELINUX=disabled 

设置后需要重启才能生效

相关文章

网友评论

      本文标题:CentOS 7.X 关闭SELinux

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