VNC启动报错问题‘testdb:1 is taken because of /tmp/’解决【转】

遇到了启动桌面的VNC服务,收到报错的情况:

vncserver :1
 


错误:

  1.  
    Warning: IDEACOM:1 is taken because of /tmp/.X1-lock
  2.  
    Remove this file if there is no X server IDEACOM:1
 


根据提示知道大概知道是以前的临时文件还存在,因此删除掉就OK:
执行:

rm -f /tmp/.X1-lock
 


此时再次启动又会收到如下错误:

  1.  
    Warning: IDEACOM:1 is taken because of /tmp/.X11-unix/X1
  2.  
    Remove this file if there is no X server IDEACOM:1
 


再次根据错误提示执行:

rm -f /tmp/.X11-unix/X1
 


再次尝试启动,发现成功了:

  1.  
    vncserver :1
  2.  
     
  3.  
    New 'IDEACOM:1 (root)' desktop is IDEACOM:1
  4.  
     
  5.  
    Starting applications specified in /root/.vnc/xstartup
  6.  
    Log file is /root/.vnc/IDEACOM:1.log
 

转自

https://blog.csdn.net/yimenren/article/details/121944050

 

posted @ 2025-07-15 16:48  paul_hch  阅读(32)  评论(0)    收藏  举报