Chinaunix首页 | 论坛 | 博客
  • 博客访问: 108218
  • 博文数量: 31
  • 博客积分: 461
  • 博客等级: 一等列兵
  • 技术积分: 220
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-29 00:38
文章分类

全部博文(31)

文章存档

2012年(31)

分类: LINUX

2012-09-05 10:23:18

A 不需要重启:
[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,
 
 
SEE ALSO
       selinux(8), getenforce(8), selinuxenabled(8)
 
 
FILES
       /etc/grub.conf, /etc/selinux/config
 
 
dwalsh@redhat.com                7 April 2004                    setenforce(1)
阅读(1259) | 评论(0) | 转发(0) |
0

上一篇:mount unmount 命令

下一篇:chcon命令详解

给主人留下些什么吧!~~