Today, our department has a powerful feedback server (CentOS 6.0) can not log on the crash, reboot after this guy will not start, error, such as:
PREFDM main process (1235) terminated with status 1
Information, the error screenshot is as follows:
It looks like the INIT program was executed during the boot process, and then Init called PREFDM the error.
Current network server, how to do, how to catch the urgent ah ... Finally finished, record the processing process.
First of all, we tried a single user can login Ah, how to do not say, yes can log in, think of the hard disk is not the problem, fsck repaired the next or not. Google it.
From the information of the error, it is called PREFDM when there is a problem, then what is this one thing? Online query, this is the start of the X desktop Dongdong, is a shell script, live in/ETC/X11/PREFDM.
Under the single user can log on normally, not single-user mode when but not. And looked at the configuration of the RunLevel is 5, and a reference to a blog, we changed the next 3 found that there is no problem, OK, you can start normal, the problem solved, that is because of what the reason, and then look for.
So I looked at what was written in the/ETC/X11PREFDM script and found two lines of key code:
EXEC GDM "$@" >/dev/null 2>&1/dev/null 2>&1
found that the GDM command did not. Yum Install gdm-y installation.
There should be no problem with the installation.
On the Internet can also report other mistakes, here record the spare
Error message:
AIT avahi-daemon[1102]: Service "localait" (/services/ssh.service) successfully established.
Aug 17:45:41 localait kdm[1193]: X Server "/usr/bin/x" cannot be executed
Aug 17:45:41 localait kdm[1174]: X server for display:0 cannot is started, session disabled
is because x cannot be executed.
X11 Server System Execution order is: priority to use STARTX--no use of ~/.XSERVERRC--no more execution/ETC/X11/XINIT/XSERVERRC--not yet that's the last step, execute/usr/bin/x.
Know the principle to see if X11 server installed, no words installed under: yum-y install xorg-x11-server-xorg