vnc运行报错 is taken because of /tmp/.X1-lock
运行sudo vncserver :1
时提示is taken because of /tmp/.X1-lock 导致无法启动vnc1
根据提示知道大概知道是以前的临时文件还存在,因此删除掉就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
再次尝试启动,发现成功了: