查询和修改selinux状态

查询

# 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模式

 

posted on 2014-02-21 17:58  nearsun  阅读(471)  评论(0)    收藏  举报