
突然之間,我能夠啟動 X 伺服器,但在 CentOS 上出現許多警告,然後我試圖透過進入 /usr/bin 來確保它已關閉,gdm stop
但有一個錯誤日誌,其中指出:
[2148293.861] _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
[2148293.861] _XSERVTransMakeAllCOTSServerListeners: server already running
[2148293.861]
Fatal server error:
[2148293.862] Cannot establish any listening sockets - Make sure an X server isn't already running
[2148293.862] (EE)
Please consult the CentOS support
at http://wiki.centos.org/Documentation
for help.
[2148293.862] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[2148293.862] (EE)
[2148293.862] Server terminated with error (1). Closing log file.
我gdm stop
得到:
** (gdm-binary:25390): WARNING **: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or director
答案1
要回答上述問題,您可以透過發出命令來確定 Xserver 是否正在執行:
ps -C Xorg