补充selinux相关命令
      查看getenforce或sestatus
      临时关闭
            ##设置SELinux 成为permissive模式
            ##setenforce 1 设置SELinux 成为enforcing模式
            setenforce 0 关闭
      永久关闭
            vi /etc/selinux/config
            将SELINUX=enforcing改为SELINUX=disabled 
            设置后需要重启才能生效

查看:getenforce

关闭:setenforce 0

永久关闭:vi /etc/sysconfig/selinux

SELINUX=enforcing改为SELINUX=disabled

 

相关文章:

  • 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-11-19
  • 2021-11-05
相关资源
相似解决方案