centos 7 failed to load SELinux policy

大城市里の小女人 提交于 2020-02-26 04:19:40

不正常关机 开起一直进不了系统登陆界面
几次后看见提示(才开始学习,见谅)
提示:failed to load SELinux policy

上网查了一些,对于自己这个问题得到解决的办法(转到这里,让自己以后不用再网上查相同的问题,对以后学习复习还是有帮助)

解决办法

1.、重启时按 E,进入 grub 页面。

2、在大约 16 行,language 后,也就是 LANG=_.UTF-8后加入空格,再加上

selinux=0
3、按 ctrl + x 启动,即看到录界面,再执行

vim /etc/selinux/config
4、修改文件内容如下,主要是非注释行。

This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

SELINUX=disabled

SELINUXTYPE= can take one of three two values:

targeted - Targeted processes are protected,

minimum - Modification of targeted policy. Only selected processes are protected.

mls - Multi Level Security protection.**

SELINUXTYPE=targeted
5、修改完 按vim 命令 :wq! 保存,重启机器。

上面转载。

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!