当:0
上的vncserver已经在:1
上启动而无需重启系统时,是否可以启动vncserver?
系统详情:
Gnome桌面管理器
[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/
答案 0 :(得分:4)
vncserver尝试创建一个完整的窗口管理器,所有这些,你的:0可能已经有了这些东西。
您正在寻找的是使用“x11vnc”。即使没有:0参数,我相信它会给你想要的效果。有一个独特的yum-package,“x11vnc。”
答案 1 :(得分:0)
只需终止所有VNC流程。您可以通过运行以下命令找到进程号:
ps -ef | grep vnc
答案 2 :(得分:0)
提出了更好的解决方案here。您必须首先使用Xorg
查找ps aux | grep Xorg
个进程,然后将其删除。