查看

[root@dev-server ~]# getenforce
Disabled
[root@dev-server ~]# /usr/sbin/sestatus -v
SELinux status:                 disabled
  • 1
  • 2
  • 3
  • 4

临时关闭

##设置SELinux 成为permissive模式
##setenforce 1 设置SELinux 成为enforcing模式
setenforce 0
  • 1
  • 2
  • 3

永久关闭

vi /etc/selinux/config
  • 1

将SELINUX=enforcing改为SELINUX=disabled 
设置后需要重启才能生效

相关文章:

  • 2021-09-12
  • 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-08-29
相关资源
相似解决方案