centos 7关闭selinux查看SELinux状态:getenforce
临时设置SeLinux:setenforce 0
永久修改Selinux为disabled:[root@localhost ~]# cat /etc/selinux/config # This file controls the state of SE...
5.4. Enabling and Disabling SELinux Use the /usr/sbin/getenforce or /usr/sbin/sestatus commands to check the status of SELinux. Thegetenforce command returns Enforcing, Permissive, or Disabled. Th...
[root@lujie ~]# vim /etc/sysconfig/selinux# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is e...
关闭SELINUX
vi /etc/selinux/config
![](https://s1.51cto.com/images/blog/201902/20/999ad18c2fde13f6fe5e755746cef98b.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_...