“kernel panic - not syncing: Attempted to kill init”我的解決方法

故障現象:今天早上一開機,就碰到此提示:kernel panic - not syncing: Attempted to kill init,大概意思是內核不同步:試圖殺死init進程。

系統環境:Centos5.9。

後來在網上查了下,可能與selinux有關,我想了想,昨天好像配置了mysql好像是需要關閉selinux,然後我就從光盤引導,按F5進入rescue mode,中間一路OK,有個continue最後進入命令行後,要改變下鏡像文件位置:

chroot /mnt/sysimage

纔可以進入shell狀態,使用命令。

我先查了selinux的配置文件:

[root@server ~]# grep -i "selinux=" /etc/selinux/config
# SELINUX= can take one of these three values:
SELINUX=enforcing

我用sed將SELINUX值更改爲disable:

[root@server ~]# sed -i 's#SELINUX=enforcing#SELINUX=disable#g' /etc/selinux/config

[root@server ~]# grep -i "selinux=" /etc/selinux/config
# SELINUX= can take one of these three values:
SELINUX=disable

重啓系統後,正常啓動,故障解除!!!!



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章