原貼:http://www.diybl.com/course/6_system/linux/Linuxjs/2008629/129166.html
關閉SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 為 disabled ,然后重啟。
如果不想重啟系統,使用命令setenforce 0
注:
setenforce 1 設置SELinux 成為enforcing模式
setenforce 0 設置SELinux 成為permissive模式?
在lilo或者grub的啟動參數中增加:selinux=0,也可以關閉selinux?
#---------------------------------------------------------------
查看selinux狀態:
/usr/bin/setstatus -v?
如下:
SELinux status:???????????????? enabled
SELinuxfs mount:??????????????? /selinux
Current mode:?????????????????? permissive
Mode from config file:????????? enforcing
Policy version:???????????????? 21
Policy from config file:??????? targeted?
??
getenforce/setenforce查看和設置SELinux的當前工作模式
關閉SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 為 disabled ,然后重啟。
如果不想重啟系統,使用命令setenforce 0
注:
setenforce 1 設置SELinux 成為enforcing模式
setenforce 0 設置SELinux 成為permissive模式?
在lilo或者grub的啟動參數中增加:selinux=0,也可以關閉selinux?
#---------------------------------------------------------------
查看selinux狀態:
/usr/bin/setstatus -v?
如下:
SELinux status:???????????????? enabled
SELinuxfs mount:??????????????? /selinux
Current mode:?????????????????? permissive
Mode from config file:????????? enforcing
Policy version:???????????????? 21
Policy from config file:??????? targeted?
??
getenforce/setenforce查看和設置SELinux的當前工作模式