您的位置:首页 > 其它

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

2013-10-20 09:19 417 查看
故障现象:今天早上一开机,就碰到此提示: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
重启系统后,正常启动,故障解除!!!!

本文出自 “Linux天地” 博客,请务必保留此出处http://tianbright.blog.51cto.com/6682167/1312212
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: