[转载]误将SELINUXTYPE看成SELINUX后,将其值改为disabled。导致操作系统服务启动,无法进入单用户模式

原文地址:http://www.2cto.com/os/201504/395229.html

环境:Redhat 6.4

ORACLE11g RAC

在安装ORACLE11g之前需要关闭操作系统的防火墙和SELinux

1、关闭防火墙:iptables -F————————————清除防火墙策略

service iptables stop———————关闭防火墙服务

chkconfig iptables off—————— 禁止防火墙服务开机自启动

2、关闭SELinux

应修改配置文件/etc/selinux/config中的“SELINUX”参数的值,
# SELINUX=enforcing
SELINUX=disabled
但是误将“SELINUXTYPE”看成“SELINUX”,设置了SELINUXTYPE参数:
#SELINUXTYPE=targeted
SELINUXTYPE=disabled 
问题现象:

重启时提示:
unable to load selinux policy. machine is in enforcing mode. halting now. kernel panic-not syncing:attempted to kill init! 
解决方法:

系统启动的时候,按下‘e’键进入grub编辑界面,编辑grub菜单,使用上下键选择“kernel ” 一行,按‘e’键进入编辑,在末尾增加“enforcing=0”,按“enter”保存设置并退到上一层,按‘b’键继续引导后正常开机。收到恢复“/etc/selinux/config”中的配置信息。再按需求修改“SELINUX=disabled”。

原文地址:https://www.cnblogs.com/yl-2016/p/5161068.html