vncserver 启动失败的一种情况

#vncserver

Warning: localhost.localdomain:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server localhost.localdomain:1

Warning: localhost.localdomain:2 is taken because of /tmp/.X11-unix/X2
Remove this file if there is no X server localhost.localdomain:2

New 'localhost.localdomain:3 (root)' desktop is localhost.localdomain:3

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:3.log

 解决办法:

删除 / tmp/.X11-unix/的内容

重启vnvserver

# systemctl restart vncserver@:2.service

 

posted on 2014-10-30 16:20  lion382  阅读(4328)  评论(0编辑  收藏  举报