临时关闭:

[root@localhost ~]# getenforce
Enforcing

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

 

永久关闭:

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

SELINUX=enforcing 改为 SELINUX=disabled

修改配置需要重启

[root@localhost ~]# reboot

相关文章:

  • 2022-12-23
  • 2021-09-11
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-09-15
猜你喜欢
  • 2022-12-23
  • 2021-05-22
  • 2021-10-12
  • 2022-03-04
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案