如何关闭selinux.docx
上传人:sy****28 上传时间:2024-09-13 格式:DOCX 页数:7 大小:19KB 金币:14 举报 版权申诉
预览加载中,请您耐心等待几秒...

如何关闭selinux.docx

如何关闭selinux.docx

预览

在线预览结束,喜欢就下载吧,查找使用更方便

14 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

如何关闭selinux2010-09-2117:33:00标签:HYPERLINK"http://blog.51cto.com/tagindex.php?keyword=setlinux"\t"_blank"setlinuxHYPERLINK"http://blog.51cto.com/tagindex.php?keyword=%B9%D8%B1%D5"\t"_blank"关闭HYPERLINK"http://blog.51cto.com/tagindex.php?keyword=%BF%AA%C6%F4"\t"_blank"开启RedHat的/etc/sysconfig/selinux在新版本中的RedHat和Fedora上,修改档案HYPERLINK"http://wiki.debian.org.hk/wiki/index.php?title=Filesystem:/etc/sysconfig/selinux&action=edit"\o"Filesystem:/etc/sysconfig/selinux"/etc/sysconfig/selinux:#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyisenforced.#permissive-SELinuxprintswarningsinsteadofenforcing.#disabled-SELinuxisfullydisabled.SELINUX=enforcing#SELINUXTYPE=typeofpolicyinuse.Possiblevaluesare:#targeted-Onlytargetednetworkdaemonsareprotected.#strict-FullSELinuxprotection.SELINUXTYPE=targeted把SELINUX设定为disable,下次启动系统后将会停止SElinux。Linux核心参数(KernelParameter)或者可以在核心参数后加上:selinux=0(停止)或selinux=1(开启)参数档案HYPERLINK"http://wiki.debian.org.hk/wiki/index.php?title=Filesystem:/boot/grub/menu.lst&action=edit"\o"Filesystem:/boot/grub/menu.lst"/boot/grub/menu.lsttitleFedoraCore(2.6.18-1.2798.fc6)root(hd0,0)kernel/vmlinuz-2.6.18-1.2798.fc6roroot=LABEL=/rhgbquietselinux=0initrd/initrd-2.6.18-1.2798.fc6.img检查SELinux现时况态要知到你现在是否使用SELinux:#getenforceEnforcing===========执行命令:setenforce0就可以不重启关闭selinux了,不过关闭selinux而使zendoptimizer生效毕竟不是完美的解决办法,继续关注中。附selinux的资料:selinux简介SElinux在linux内核级别上提供了一个灵活的强制访问控制系统(MAC),这个强制访问控制系统是建立在自由访问控制系统(DAC)之上的。DAC是指系统的HYPERLINK"http://action.utops.cc/click.jsp?adsId=411&adsLeagueId=5&adsUserId=1&siteId=657&siteLeagueId=5&siteUserId=564&scId=2&adsType=98&prices=1.51&checkCode=ce4c41dd4194fab0e7c62f6713b269a9_222.73.161.237&click=1&url=http%3A//bbs.52totole.com/forum-175-1.html&v=0&keyword=%u5B89%u5168&s=http%3A//www.linuxidc.com/Linux/2008-01/10679.htm&rn=849717---2010-7-18-16:59:30"\o"%u9C9C%u9E21%u6C41"\t"_blank"安全访问控制都是由系统管理员root自由管理的,不是系统强制行为MAC运