How to solve the problem that Centos can't start

  
                

Linux users sometimes encounter centos startup errors during use. The error is as follows: prefdm main process (1235) terminated with status 1 information. So how do we solve this problem? Now Xiaobian will take a look at the solution to this problem.

Solution:

1. We tried a single user can log ah, how do not say, yeah you can log in, I thought it is not a hard problem , fsck fixed or not. Google.

From the error message, there is a problem when calling prefdm, then what is this? Online query, this is the startup of the X desktop, is a shell script, living in /Etc/X11/prefdm.

2. You can log in normally under a single user, but not in a single-user mode. Looked at the configuration of the runlevel is 5, we changed the next 3 found no problem, well, can start normally, the problem is solved, that is because of what reason, then look for.

3. After reading the /etc/X11prefdm script, I found two lines of key code:

exec gdm "$@" >/dev/null 2> &1 /dev/null 2>&1

4. Found that the gdm command does not. Yum install gdm -y Install it.

There should be no problem trying to install it.

You may also report other errors on the Internet. Here is an alternate

error message:

ait avahi-daemon[1102]: Service "localait" (/Services/ssh.service) successfully established.

Aug 11 17:45:41 localait kdm[1193]: X server "/usr/bin/X" cannot be executed

Aug 11 17:45:41 localait kdm[1174]: X server for display :0 cannot be started, session disabled

is because x cannot be executed.

The x11 server system execution order is: use startx first -- no use ~/.xserverrc -- no more execute /etc/X11/xinit/xserverrc -- not yet that is the last step, Execute /usr/bin/X.

Know the principle to see if the x11 server is installed, if not installed: yum -y install xorg-x11-server-Xorg

This is the centos startup error prefdm main process (1235) Terminated with status 1 solution, if you also encounter this problem, then try this method.

Copyright © Windows knowledge All Rights Reserved