查询
# getenforce
=====================
永久关闭selinux
修改配置文件
/etc/selinux/config
SELINUX=disabled
reboot
===================================
临时修改
# enforcing - SELinux security policy is
enforced.
# permissive - SELinux prints warnings instead of
enforcing.
setenforce 1 #修改为enforcing模式
setenforce 0 #修改为permiss模式
原文:http://www.cnblogs.com/nearsun/p/3559964.html