在Vmware Esxi 6.0下安装CentOS 6.8,开始时正常启动图形界面,但是优化后无法启动,一直报
Jan 20 09:10:02 ora224 init: prefdm main process ended, respawning
Jan 20 09:10:02 ora224 init: prefdm main process (1395) terminated with status 1
Jan 20 09:10:02 ora224 init: prefdm main process ended, respawning
Jan 20 09:10:02 ora224 init: prefdm main process (1409) terminated with status 1
Jan 20 09:10:02 ora224 init: prefdm main process ended, respawning
Jan 20 09:10:02 ora224 init: prefdm main process (1423) terminated with status 1
Jan 20 09:10:02 ora224 init: prefdm main process ended, respawning
Jan 20 09:10:02 ora224 init: prefdm main process (1437) terminated with status 1
Jan 20 09:10:02 ora224 init: prefdm respawning too fast, stopped
网上找了很多说是未安装相关软件
yum -y install gdm xorg-x11-server-Xorg
但是我已经都安装了,因为我开始是可以正常启动的,于是怀疑要么是有关服务关掉了,要么就是yum -y update软件版本的问题
经过检查发现是我messagebus服务没做开机启动,所以才会出现不能启动图形界面的问题。
执行
chkconfig messagebus on chkconfig haldaemon on
正常启动图形界面
只开机启动messagebus,可以打开图形界面,但是会发现进去之后键盘和鼠标都不能动,那是因为要开启haldaemon服务