linux-在0而不是:1上启动vncserver

如果vncserver已在:1上启动,是否可以在:0上启动vncserver,而不必重新启动系统?

系统细节:
侏儒桌面管理器

[root@server ~]# uname -a
Linux server.com 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed May 15 10:48:38 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 6.4 (Santiago)

上运行:1

[root@server ~]# vncserver :1
A VNC server is already running as :1

想要改用:0,但出现以下错误:

[root@server ~]# vncserver :0

WARNING: The first attempt to start Xvnc failed, possibly because the font
catalog is not properly configured.  Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc.

_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running

/ tmp下的文件列表

[root@server ~]# ls /tmp/.
./         ../        .esd-0/    .esd-500/  .ICE-unix/ .X11-unix/

解决方法:

vncserver尝试创建一个完整的窗口管理器以及所有其他内容,您的:0可能已经拥有了这些功能.

您正在寻找的是使用“ x11vnc”.我相信,即使不使用:0参数,它也能为您带来理想的效果.有一个独特的yum包“ x11vnc”.

上一篇:解决ubuntu 18更换wifi vnc 连接不了的问题


下一篇:linux-通过命令行自动执行VNC授权过程