Fatal server error:Server is already active for display 0
来源:互联网 发布:心动网络股份有限公司 编辑:程序博客网 时间:2024/05/09 09:44
使用startx命令启动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`
如果有类似的输出,则表明确实有一个Xserver正在运行
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
需要用root权限才能删除,其中-f 表示强制删除。
- Fatal server error:Server is already active for display 0
- Fatal server error:Server is already active for display 0
- server error:Server is already active for display 0
- server is already active for display 0
- 【转】Fatal server error:Server is already active
- startx无法进图形,错误Fatal server error:Server is already active for display0(终端转图形界面)
- centos下提示Sever is already active for display 0
- A server is already running.
- Homebrew error: Another active Homebrew process is already in progress
- Mastering Active Directory for Windows Server 2008
- XAMPP: Another web server is already running
- Port 8080 required by Tomcat v6.0 Server at localhost is already in use. The server may already be r
- Port 8080 required by Tomcat v7.0 Server at localhost is already in use. The server may already be
- Fatal server error: no screens found
- Fatal server error: no screens found
- x0vncserver Fatal server error: no screens found
- Jboss Server Error:Server already running on localhost
- Error validating server certificate for
- vc 实现垂直滚动条对话框
- typedef struct与struct
- Linux命令使用技巧
- 这些题目,来测试一下你的C语言水平
- hdu 3991 Harry Potter and the Present II //最小路径覆盖
- Fatal server error:Server is already active for display 0
- java5中的可变参数
- CentOS(with XEN)&Ubuntu双系统引导的问题
- ubuntu下声音的控制方法
- ARM汇编伪指令介绍
- session与cookie的解说
- WEB开发学习之基础
- 用GDB调试程序
- Perl and CGI Tutorial