为什么我无法创建 VNC 会话?

为什么我无法创建 VNC 会话?

当我输入时vncserver,出现以下错误。

谁能告诉我为什么我会收到此消息?我没有发现任何问题xstartup

/home/tello/.vnc>vncserver

Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xvnc process.

_XSERVTransSocketCreateListener: failed to bind listener
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for
unix
_XSERVTransNAMEDOpenServer: Can't open /tmp/.X11-pipe/X21
_XSERVTransOpen: transport open failed for named/spider:21
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for
named

Fatal server error:
Failed to establish all listening sockets
_XSERVTransSocketCreateListener: failed to bind listener
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for
unix
_XSERVTransNAMEDOpenServer: Can't open /tmp/.X11-pipe/X21
_XSERVTransOpen: transport open failed for named/spider:21
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for
named

Fatal server error:
Failed to establish all listening sockets

我没有看到 /tmp/.X11-pipe/X21,而是 /tmp/.X11-pipe/X0。目前我有以下内容:

total 8
drwxrwxr-x   2 root     root          96 May 19 07:56 .
drwxrwxrwt  37 sys      sys         4096 Jun  7 09:52 ..
-rw-rw-rw-   1 root     root           0 May 19 07:56 X0

答案1

似乎您对 有访问错误。这可能是、或/tmp/.X11-pipe/X21的所有权或权限。尝试对每个命令使用命令以查看它们是否存在,以及您是否有权访问它们。如果存在,您可能已在该端口上有一个 VNC 服务器,或者失败的运行可能未正确清理。/tmp/tmp/.X11-pipe/tmp/.X11-pipe/X21ls -ld/tmp/.X11-pipe/X21

相关内容