临时关闭:

[root@localhost ~]# getenforce
Enforcing

[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive

 

永久关闭:

[root@localhost ~]# vim /etc/sysconfig/selinux

SELINUX=enforcing 改为 SELINUX=disabled

重启服务reboot

相关文章:

  • 2022-12-23
  • 2021-08-29
  • 2022-02-23
  • 2021-12-26
  • 2022-12-23
  • 2021-05-20
  • 2021-09-19
  • 2022-12-23
猜你喜欢
  • 2021-05-26
  • 2021-11-05
相关资源
相似解决方案