首页 > 系统服务 > 详细

CentOS7开机无法启动,报 Failed to load SELinux policy. Freezing错误

时间:2021-04-19 11:16:37      阅读:16      评论:0      收藏:0      [点我收藏+]

起因

因设备停机,重启系统后报错无法进入系统

Failed to load SELinux policy. Freezing

处理

看报错原因是selinux配置错了,于是重启系统

  • 在选择内核的地方按E,进入grub页面,修改linux16
  • 在language后面也就是LANG=zh_CN.UTF-8后,加上空格,然后加selinux=0 或者 enforcing=0
  • ctrl+x启动系统
  • 进入系统后,重新修改selinux配置文件
vim /etc/selinux/config

修改配置如下

# 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

最后在重启一次系统,看是否报错.

CentOS7开机无法启动,报 Failed to load SELinux policy. Freezing错误

原文:https://www.cnblogs.com/GYoungBean/p/14675199.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!