手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux服务器关闭SeLinux的方法

[日期:2012-01-02] 来源:Linux社区  作者:bullbat [字体:大 中 小]

A 不需要重启Linux:

[root@localhost ~]# setenforce 0

B 需要重启Linux:

vi /etc/selinux/config 将SELINUX=enforcing 改成SELINUX=disabled

-------------

Ref:

SELinux介绍

不重启Linux服务器关闭SeLinux的方法

PS A:

man setenforce:

XXX

XXX WARNING: old character encoding and/or character set

XXX

setenforce(1)         SELinux Command Line documentation         setenforce(1)

NAME

       setenforce - modify the mode SELinux is running in.

SYNOPSIS

       setenforce [ Enforcing | Permissive | 1 | 0 ]

DESCRIPTION

       Use  Enforcing or 1 to put SELinux in enforcing mode.  Use Permissive or 0 to put SELinux in permissive mode.  You need to modify /etc/grub.conf

       or /etc/selinux/config to disable SELinux.

AUTHOR

       Dan Walsh, <dwalsh@RedHat.com>

SEE ALSO

       selinux(8), getenforce(8), selinuxenabled(8)

FILES

       /etc/grub.conf, /etc/selinux/config

dwalsh@redhat.com                7 April 2004                    setenforce(1)

linux
相关资讯       Linux服务器 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款