VNC启动报错问题‘testdb:1 is taken because of’解决
程序员文章站
2022-06-05 20:42:12
...
遇到了启动桌面的VNC服务,收到报错的情况:
vncserver :1
错误:Warning: IDEACOM:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server IDEACOM:1
根据提示知道大概知道是以前的临时文件还存在,因此删除掉就OK:
执行:
rm -f /tmp/.X1-lock
此时再次启动又会收到如下错误:
Warning: IDEACOM:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server IDEACOM:1
再次根据错误提示执行:
rm -f /tmp/.X11-unix/X1
再次尝试启动,发现成功了:
vncserver :1
New 'IDEACOM:1 (root)' desktop is IDEACOM:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/IDEACOM:1.log