欢迎来到天天文库
浏览记录
ID:35976201
大小:25.45 KB
页数:3页
时间:2019-04-29
《新增资源及索引表-王辉静项目8拓展资源_CentOS6.4永久关闭SELinux.docx》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、CentOS6.4永久关闭SELinux标签:controls systemSELinuxhttp://lujiesky.blog.51cto.com/332319/1217274[root@lujie~]#vim/etc/sysconfig/selinux#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:# enforcing-SELinuxsecuritypolicyisenforced.# permissive-SELinuxprintswarningsinstead
2、ofenforcing.# disabled-NoSELinuxpolicyisloaded.#SELINUX=enforcing#SELINUXTYPE=cantakeoneofthesetwovalues:# targeted-Targetedprocessesareprotected,# mls-MultiLevelSecurityprotection.#SELINUXTYPE=targeted设置方法:1 #SELINUX=enforcing #注释掉2 #SELINUXTYPE=targeted #注释掉3 SELINUX=disabled #增加4 :wq #
3、保存,关闭。5 shutdown-rnow #重启完整修改后如下:#SELINUX=cantakeoneofthesethreevalues:# enforcing-SELinuxsecuritypolicyisenforced.# permissive-SELinuxprintswarningsinsteadofenforcing.# disabled-NoSELinuxpolicyisloaded.#SELINUX=enforcing#SELINUXTYPE=cantakeoneofthesetwovalues:# targeted-Targetedprocessesarepro
4、tected,# mls-MultiLevelSecurityprotection.#SELINUXTYPE=targetedSELINUX=disabled~~~~~~~~~~~~:wq[root@lujie~]#shutdown-rnow查看SELinux的状态:getenforce[root@lujie~]#getenforceDisabled本文出自“CORE”博客,请务必保留此出处http://lujiesky.blog.51cto.com/332319/1217274
此文档下载收益归作者所有