关闭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: enabledSELinuxfs mount: /selinuxCurrent mode: permissiveMode from config file: enforcingPolicy version: 21Policy from config file: targeted getenforce/setenforce查看和设置SELinux的当前工作模式
转载于:https://www.cnblogs.com/Adeline-p2y/archive/2012/12/17/2821975.html
相关资源:关闭selinux(防火墙)方法分享