遇到了启动桌面的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
————————————————
版权声明:本文为CSDN博主「Sanlings」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/li06359147/article/details/78984996