查看SELinux状态:linux
一、/usr/sbin/sestatus -v ##若是SELinux status参数为enabled即为开启状态ci
SELinux status: enabledget
二、getenforce ##也能够用这个命令检查配置
关闭SELinux:配置文件
一、临时关闭(不用重启机器):di
setenforce 0 ##设置SELinux 成为permissive模式文件
##setenforce 1 设置SELinux 成为enforcing模式co
二、修改配置文件须要重启机器:config
修改/etc/selinux/config 文件参数
将SELINUX=enforcing改成SELINUX=disabled
重启机器便可