想用vncserver,突然发现无法启动了。
开始遇到的问题:
[root@Lisp tmp]# vncserver
Warning: Lisp:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server Lisp:1
Warning: Lisp:2 is taken because of /tmp/.X11-unix/X2
Remove this file if there is no X server Lisp:2
Warning: Lisp:3 is taken because of /tmp/.X11-unix/X3
Remove this file if there is no X server Lisp:3
New 'Lisp:4 (root)' desktop is Lisp:4
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/Lisp:4.log
以为是.X11-unix和.X*-lock引起的,把它们都删除之后,错误信息变了。
[root@Lisp ~]# vncserver
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
Warning: Xalloc: requesting unpleasantly large amount of memory: 0 bytes.
Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
Warning: Xalloc: requesting unpleasantly large amount of memory: 0 bytes.
Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
按照网上说的检查了一遍*X11*和*fonts*,pixman*等,都装好了的,xstartup和vncserver配置正常。
没有更多精力折腾它,只能绕道通过5904端口访问VNC