1.查看SELinux的状态
[root@localhost ~]# sestatus
SELinux status: enabled 为开启
暂时关闭 sudo setenforce 0
2.永久关闭SELinux
修改配置文件/etc/selinux/config,将其中的SELINUX=enforcing改为SELINUX=disabled
[root@localhost ~]# vi /etc/selinux/config
3.重启系统,再执行sestatus查看状态
reboot
1.查看SELinux的状态
[root@localhost ~]# sestatus
SELinux status: enabled 为开启
暂时关闭 sudo setenforce 0
2.永久关闭SELinux
修改配置文件/etc/selinux/config,将其中的SELINUX=enforcing改为SELINUX=disabled
[root@localhost ~]# vi /etc/selinux/config
3.重启系统,再执行sestatus查看状态
reboot