# vi /etc/selinux/config SELINUX=disabled # 关闭 SELINUX=enforcing # 开启
# setenforce 0 # getenforce # 查看当前状态 Permissive
[RHEL8]关闭SELinux(同CentOS7)
原文:https://www.cnblogs.com/leoshi/p/12324846.html