关于关闭SELinux的方法
生活随笔
收集整理的這篇文章主要介紹了
关于关闭SELinux的方法
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
原貼:http://www.diybl.com/course/6_system/linux/Linuxjs/2008629/129166.html
關(guān)閉SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 為 disabled ,然后重啟。
如果不想重啟系統(tǒng),使用命令setenforce 0
注:
setenforce 1 設(shè)置SELinux 成為enforcing模式
setenforce 0 設(shè)置SELinux 成為permissive模式?
在lilo或者grub的啟動(dòng)參數(shù)中增加:selinux=0,也可以關(guān)閉selinux?
#---------------------------------------------------------------
查看selinux狀態(tài):
/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查看和設(shè)置SELinux的當(dāng)前工作模式
關(guān)閉SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 為 disabled ,然后重啟。
如果不想重啟系統(tǒng),使用命令setenforce 0
注:
setenforce 1 設(shè)置SELinux 成為enforcing模式
setenforce 0 設(shè)置SELinux 成為permissive模式?
在lilo或者grub的啟動(dòng)參數(shù)中增加:selinux=0,也可以關(guān)閉selinux?
#---------------------------------------------------------------
查看selinux狀態(tài):
/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查看和設(shè)置SELinux的當(dāng)前工作模式
總結(jié)
以上是生活随笔為你收集整理的关于关闭SELinux的方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 小谈Online-game服务器端设计(
- 下一篇: map类的erase方法的在Linux与