linux startx错误,Linux startx命令错误:

错误:startx命令错误:

Server is already active for display 0:

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

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]

解决方法:

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

没有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 表示强制删除。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值