修改配置檔案,永久關閉selinux。
vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
setenforce 0 #臨時關閉selinux指令
getenforce #檢視selinux目前狀态
本文轉自 meteor_hy 51CTO部落格,原文連結:http://blog.51cto.com/zuoshou/1956878,如需轉載請自行聯系原作者