查看
[root@dev-server ~]# getenforce
Disabled
[root@dev-server ~]# /usr/sbin/sestatus -v
SELinux status: disabled
臨時關閉
##設置SELinux 成為permissive模式 ##setenforce 1 設置SELinux 成為enforcing模式 setenforce 0
永久關閉
vi /etc/selinux/config
將SELINUX=enforcing改為SELINUX=disabled
設置后需要重啟才能生效