运行时关闭,命令:

setenforce 0

实时生效,重启后失效

 

查看selinux状态:

getenforce

Enforcing:打开
Permissive:关闭

 

冷关闭:

编辑/etc/selinux/config

将SELINUX的值设为:permissive 或者 disabled ,然后重启以关闭

如果要打开可以改回 enforcing,再重启

相关文章:

  • 2021-08-29
  • 2021-06-02
  • 2021-10-12
  • 2021-11-30
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-21
  • 2021-10-26
  • 2022-01-12
  • 2021-09-12
相关资源
相似解决方案