×

关闭SELinux的两种方法

hqy hqy 发表于2019-05-13 10:07:28 浏览2442 评论0

抢沙发发表评论

关闭SELinux的两种方法


1 永久方法 – 需要重启服务器

修改/etc/selinux/config文件中设置

SELINUX=disabled


2 临时方法 – 设置系统参数然后重启服务器。

使用命令setenforce 0

附:
setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式


打赏

本文链接:https://www.jingber.cn/post/696.html 转载需授权!

分享到:

群贤毕至

访客

您的IP地址是: