有关SELinux设置错误不能够启动的一个解决方法

造成此次问题的原因:
我用的linux版本是CentOS5.2,在安装Oracle10g的时候,需要关闭SELinux,在修改配置文件/etc/selinux/config过程中,本来应该设置:
# SELINUX=enforcing
SELINUX=disabled
但是我粗心大意,设置了SELINUXTYPE参数:
#SELINUXTYPE=targeted
SELINUXTYPE=disabled

问题现象:
重启Centos的时候,提示:
unable to load selinux policy. machine is in enforcing mode. halting now. kernel panic-not syncing:attempted to kill init!

解决方法:
系统启动的时候,按下‘e’键进入grub编辑界面,编辑grub菜单,选择“kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet” 一栏,
按‘e’键进入编辑,在末尾增加enforcing=0,即:
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet enforcing=0
按‘b’键继续引导,OK顺利前进。

This entry was posted in 技术经验帖 and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Self-introduction

    @Alipay,计算机专业。

    喜欢互联网,崇尚网络自由和开放,旗帜鲜明的反对妄图扼杀自由的行为。

    喜欢看电影,国产大片、科幻片和鬼片例外,以前比较偏好喜剧和港产警匪片,比如周星驰系列喜剧和银河映像出品的电影;看过无数好莱坞电影后,现在比较喜欢美国的独立小电影和法国风味的电影,诸如《杯酒人生》和《天使爱美丽》等。

    喜欢听的一些歌:魔岩三杰、汪峰、王菲的大部分,郑钧、许巍的一些,左小祖咒以及其它歌手的小部分。

    现在看书的时间比较少,其中大部分又花费在技术书籍上,以后坚持少上豆瓣,多看书。

    经常使用的网站或服务:Google以及它的很多服务、Twitter、虾米、豆瓣。