打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Linux服务器关闭SeLinux的方法
Linux服务器关闭SeLinux的方法
2012-01-04 20:55:51     我来说两句 
收藏    我要投稿    [字体: ]
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)

摘自 Simba's
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Linux 关闭 selinux
SELinux 的启动、关闭与查看
Linux 防火墙和SELinux的开启和关闭
2017-10-17 回顾linux第三章 Centos 6 连接管理及优化
How to Disable SELinux
如何在CentOS 5.X中安装OpenVZ
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服