zoukankan      html  css  js  c++  java
  • CentOS7开机无法启动,报 Failed to load SELinux policy. Freezing错误

    起因

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

    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
    

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

  • 相关阅读:
    每周学算法/读英文/知识点心得分享 1.28
    ARTS 1.21
    ARTS 1.14
    ARTS 1.7
    ARTS 12.31
    ARTS 12.24
    Leetcode : Median of Two Sorted Arrays
    我是怎样改善遗留系统的
    《大话重构》免费送书活动开始啦
    我的新书终于要出来啦
  • 原文地址:https://www.cnblogs.com/GYoungBean/p/14675199.html
Copyright © 2011-2022 走看看