查看 SELinux状态及关闭SELinux
作者:互联网
1、查看SELinux状态
sestatus -v # 如果SELinux status参数为enabled即为开启状态
查看SELinux的模式
2、关闭SELinux
临时关闭(不用重启机器)
setenforce 0 # 设置SELinux 成为permissive模式
#setenforce 1 # 设置SELinux 成为enforcing模式
永久关闭(需要重启机器)
修改配置文件/etc/selinux/config,将SELINUX=enforcing:改为SELINUX=disabled
vim /etc/selinux/config
重新启动
标签:查看,SELinux,enforcing,etc,关闭,selinux,config 来源: https://www.cnblogs.com/jack123pep/p/13035655.html