CentOS 启动解决 failed to load SELin
2022-03-13 本文已影响0人
Robin92
问题现象
VMware 中启动 CentOS 7.4 时出现以下错误信息,然后迅速进入长时间 Load 的界面


按 F1 按键后,重新出现错误,显示“Failed to load SELinux policy, freezing”

这是因为最近一次在改动 SELinux 的时候配置错误导致的。
解决方法
重启 CentOS,在启动界面选择系统的时候按 e 按键(提示是“Press 'e' to edit the selected item”),将会进入编辑界面

在编辑页面的行为 linux16 ... LANG=en_US.UTF-8
的最末添加空格 selinux=0
,然后按 ctrl+x 启动运行。

之后将正常进入系统登陆页面。
进入系统后检查下 selinux 的配置 vim /etc/selinux/config
,发现是 SELINUXTYPE 配置错误了,解决之后重启——问题解决。
