server is already active for display 0

本文介绍了在CentOS系统中遇到startx命令导致的fatal server error问题及解决方案。当尝试通过startx启动图形界面时,遇到Server is already active for display 0错误提示。文章提供了具体的解决步骤,包括使用startx --:1命令绕过已存在的显示问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 今天在VMWare中安装了CentOS,在利用Ctrl+Alt+F3打开命令行面板时候,不知道是不是因为登录了太多次,最后在利用Clt+ALt+F7 下,一直没反应,利用startx时候却出现了一个fatal server error :

Server is already active for display 0 
If this server is no longer running, remove /tmp/.X0-lock and start again 

这好像是redhat graphic boot软件包的bug,试了网上的几个方法都不行,最后利用

startx -- :1
就OK了

Copyright: (C) 1999 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules OpenMP(4.5) Delegates (built-in): bzlib djvu fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png raw tiff webp wmf x xml zlib root@srv771551:~# #!/bin/bash # xorg_debug.sh export XORG_DEBUG=1 export XORG_LOG_VERBOSITY=3 cat > /etc/X11/xorg.conf.d/99-debug.conf <<'EOL' Section "ServerFlags" Option "Debug" "true" Option "AllowEmptyInput" "off" EndSection Section "Module" Load "glx" Load "dbe" Load "record" Disable "dri2" EndSection Section "Extensions" Option "DPMS" "disable" Option "GLX" "enable" EndSection EOL Xorg -configure :1 2>&1 | tee /var/log/Xorg.1.log (EE) Fatal server error: (EE) Server is already active for display 1 If this server is no longer running, remove /tmp/.X1-lock and start again. (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) root@srv771551:~# # 创建debugfs访问规则 echo 'SUBSYSTEM=="drm", ACTION=="add", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/99-drm-debug.rules # 重新加载udev规则 sudo udevadm control --reload sudo udevadm trigger # 验证debug接口访问 sudo mount -t debugfs none /sys/kernel/debug ls -l /sys/kernel/debug/dri/0/i915_* SUBSYSTEM=="drm", ACTION=="add", TAG+="uaccess" mount: /sys/kernel/debug: none already mounted or mount point busy. dmesg(1) may have more information after failed mount system call. ls: cannot access '/sys/kernel/debug/dri/0/i915_*': No such file or directory root@srv771551:~#
05-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值