centos7 永久禁用 SELinux

 

# 临时关闭setenforce 0
# 永久关闭sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config

或者 

vi /etc/sysconfig/selinux

SELINUX=enforcing指令更改为SELINUX=disabled 

 centos7 永久禁用 SELinux_第1张图片

 重启服务:

reboot

sestatus 

centos7 永久禁用 SELinux_第2张图片

 

你可能感兴趣的:(服务器,运维)