安装Redhat出现 Kernal panic的解决

【问题描述】手动安装Redhat6.6,做完“修改SELINUX配置”后重启系统,系统起不来,卡在了Kernal panic 界面

安装Redhat出现 Kernal panic的解决

【解决】进入系统,做如下操作(原因是手残把SELINUX设置错了)

(1)重新启动系统看到如下界面迅速按“e”

安装Redhat出现 Kernal panic的解决

(2)看到下图界面按“e”编辑

安装Redhat出现 Kernal panic的解决

(3)选择第二个按“e”

安装Redhat出现 Kernal panic的解决

(4)最末加上enforcing=0 回车保存

安装Redhat出现 Kernal panic的解决

(5) 回到(3)的界面按“b” Boot,之后能成功进入操作系统

进入操作系统后查看SELINUX配置

[[email protected] ~]# getenforce

Disabled    -> 这个是刚才改的

 

再来查看一下手残的证据……

[[email protected] ~]# cat /etc/sysconfig/selinux

# 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=enforcing  -> 应该是SELINUX=disabled,本来想把这个enforcing改成disabled,错改成下面的SELINUXTYPE

# SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes are protected,

#     mls - Multi Level Security protection.

SELINUXTYPE=disabled -> 应该是SELINUXTYPE=targeted