首页 > 代码库 > vncserver 启动失败的一种情况

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

 

vncserver 启动失败的一种情况