vnc 一直显示连接中。。。

表现:

vnc 一直显示连接中。。。

根源:

vnc server 进程出错,

解决:

重启 vnc server 进程:

 

[root@opentv ~]# ps -e |grep vnc
 1810 ?        3-10:49:42 Xvnc
 1818 ?        00:00:00 vncconfig <defunct>
[root@opentv ~]# kill -9 1810
[root@opentv ~]# ps -e |grep vnc
[root@opentv ~]# service vncserver restart
Shutting down VNC server:                                  [  OK  ]
Starting VNC server: 1:root
Warning: opentv.qa.gqyu:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server opentv.qa.gqyu:1
A VNC server is already running as :1
                                                           [FAILED]
[root@opentv ~]# service vncserver restart
Shutting down VNC server:                                  [  OK  ]
Starting VNC server: 1:root
Warning: opentv.qa.gqyu:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server opentv.qa.gqyu:1
A VNC server is already running as :1
                                                           [FAILED]
[root@opentv ~]# rm /tmp/.X1-lock
rm: remove regular file `/tmp/.X1-lock'? y
[root@opentv ~]# service vncserver restart
Shutting down VNC server:                                  [  OK  ]
Starting VNC server: 1:root
Warning: opentv.qa.gqyu:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server opentv.qa.gqyu:1
A VNC server is already running as :1
                                                           [FAILED]
[root@opentv ~]# rm /tmp/.X11-unix/X1
rm: remove socket `/tmp/.X11-unix/X1'? y
[root@opentv ~]# service vncserver restart
Shutting down VNC server:                                  [  OK  ]
Starting VNC server: 1:root
New 'opentv.qa.gqyu:1 (root)' desktop is opentv.qa.gqyu:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/opentv.qa.gqyu:1.log

2:gqyu
New 'opentv.qa.gqyu:2 (gqyu)' desktop is opentv.qa.gqyu:2

Starting applications specified in /home/gqyu/.vnc/xstartup
Log file is /home/gqyu/.vnc/opentv.qa.gqyu:2.log

                                                           [  OK  ]
[root@opentv ~]#

posted @ 2016-01-04 19:23  alxe_yu  阅读(2390)  评论(0)    收藏  举报