关闭SELinux的方法
2010-01-05 13:42
260 查看
转自: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的当前工作模式
相关文章推荐
- 【linux系统优化】Selinux介绍及关闭方法
- 关闭selinux而不需重启的方法
- 不重启Linux服务器关闭SeLinux的方法
- 关闭SELinux不用重启的方法
- 关闭selinux(防火墙)方法分享
- Linux服务器关闭SeLinux的方法
- CentOS 6.6永久关闭 SELinux与防火墙 的方法
- Linux服务器关闭SeLinux的方法
- SAMBA rhel5中不关闭SeLinux配置SAMBA的方法
- 关闭selinux(防火墙)方法分享
- 关闭SELinux的两种方法
- centos 关闭防火墙以及关闭selinux方法
- 关闭SElinux方法
- Linux下查看SELinux状态和关闭SELinux的方法
- Fedora关闭SELinux正确的方法
- 不重启Linux服务器关闭SeLinux的方法
- Linux系统关闭SELinux正确的方法
- 不重启Linux服务器关闭SeLinux的方法
- rhel5中不关闭SeLinux配置SAMBA的方法
- 关闭SELinux的方法: