查询和修改selinux状态
时间:2014-02-22 04:40:48
收藏:0
阅读:677
查询
# 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
评论(0)