1. Simulate kill the VNC service that is already started
1) Start the Desktop 1 service
[[email protected] ~]# vncserver:1new ' testdb:1 (root) ' Desktop is testdb:1starting applications specified in/root/.vnc/ Xstartuplog file Is/root/.vnc/testdb:1.log
2) manually kill the VNC service process that has started
[[email protected] ~]# ps -ef | grep -i vnc | grep -v greproot 1178 1 0 11:07 pts/2 00:00:00 xvnc :1 - desktop testdb:1 (Root) -httpd /usr/share/vnc/classes -auth /root/. xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/ .vnc/passwd -rfbport 5901 -pnroot 1182 1 0 11:07 pts/2 00:00:00 vncconfig -iconic[[ email protected] ~]# kill -9 1178
3) Confirm that the process has been killed
[Email protected] ~]# Ps-ef | Grep-i VNC | Grep-v grep
4) Start the Desktop 1 VNC service again, you can see the error
[Email protected] ~]# vncserver:1warning:testdb:1 is taken because of/tmp/. X1-lockremove This file if there are no X server testdb:1a VNC server is already running as:1
2. Process
Quite simply, follow the error message and you need to remove/tmp/. X1-lock file
[Email protected] ~]# rm-f/tmp/. X1-lock
Startup attempt, still error
[Email protected] ~]# vncserver:1warning:testdb:1 is taken because of/tmp/. X11-unix/x1remove This file if there are no X server testdb:1a VNC server is already running as:1
Similarly, follow the prompts for the error to further remove the/tmp/. X11-UNIX/X1 file
[Email protected] ~]# rm-f/tmp/. X11-unix/x1
Start the attempt again, OK, start successfully!
[[email protected] ~]# vncserver:1new ' testdb:1 (root) ' Desktop is testdb:1starting applications specified in/root/.vnc/ Xstartuplog file Is/root/.vnc/testdb:1.log
3. Problem-handling Experience Summary
once again, the key to solving the technical problems is
1) Face the problem, full of confidence, like to solve problems, even if the task of time is heavy
2) Stay away from impetuous
3) Carefully analyze the error message and find the breakthrough Point
4) Last but not least to the best teacher Google Consulting
--The End- -
This article from "Nicol Lock Silk Sorrow" blog, please make sure to keep this source http://smoke520.blog.51cto.com/9256117/1925957
"VNC" Manually kill the VNC process fault handling