1. 程式人生 > >VNC啟動報錯問題‘testdb:1 is taken because of’解決

VNC啟動報錯問題‘testdb:1 is taken because of’解決

遇到了啟動桌面的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