查看selinux与关闭方法

Posted 小咔嚓

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了查看selinux与关闭方法相关的知识,希望对你有一定的参考价值。

查看当前用户selinux 状态

[[email protected]09 ~]# getenforce 
Disabled
[[email protected]-09 ~]# setenforce 
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
            允许     开启|关闭

当前用户临时修改命令为:setenforce 0   

永久关闭方法为:编辑/etc/selinux/config  (需要重启服务器后生效)

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled         
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

  



以上是关于查看selinux与关闭方法的主要内容,如果未能解决你的问题,请参考以下文章

有没有办法关闭代码片段中的命名建议?

为 Blogger 上的博客格式化代码片段 [关闭]

Python 自动化 - 浏览器chrome打开F12开发者工具自动Paused in debugger调试导致无法查看网站资源问题原因及解决方法,javascript反调试问题处理实例演示(代码片段

如何在片段中使用按钮[关闭]

在导航抽屉关闭之前加载片段

解决方案电影标题中缺少代码的片段,完成挑战更多[关闭]