# Fatal server error:Server is already active for display 0

1076人阅读 评论(0)

Fedora在启动过程中完全正常，未有任何错误提示。但会转到字符界面的登录提示下，而不是X Window的登录界面。

Fatal server error:

Server is already active for display 0

If this server is no longer running, remove /tmp/.X0-lock and start again

1. 检查是否只有一个X server在运行。

The number denotes the display number (in this case 0). This number needs to be unique on the system, so you cannot run two servers on one system with identical display numbers. This message indicates that there is already a server with this number running on the system.

You can verify this by running

ps aux | grep cat /tmp/.X0-lock

If you see an output like:

root  2283  0.5  5.1 27796 6536 ?    S  Apr21  59:03 [X]

it indicates that there is indeed an Xserver running under this PID.

To start a second server on the same system you have to give it a different dislay number.

If you start your servers using startx you can do：

startx -- :1

to start a server with display number 1.

2. 没有Xserver在运行时，删除tmp/.X0-lock文件，然后再startx

If you are sure there is no other server running on your system and above ps command indicates that no server with this PID is running, you should remove the file /tmp/.X0-lock by doing (as 'root'):

rm -rf /tmp/.X0-lock

0
0

* 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场
个人资料
• 访问：1911584次
• 积分：20511
• 等级：
• 排名：第382名
• 原创：182篇
• 转载：899篇
• 译文：2篇
• 评论：142条
阅读排行
最新评论