检查selinux状态

1 [root@controller0 ~]# getenforce
2 enforcing                                #disabled表示关闭状态   enforcing表示开启状

临时关闭selinux(不用重启机器,临时生效)

setenforce 0         ##设置selinux为permissive模式   临时生效
setenforce 1         ##设置SELinux为enforcing模式

永久关闭selinux

修改/etc/selinux/config 文件

将SELINUX=enforcing改为SELINUX=disabled

重启机器,完成

相关文章:

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