1. Analog kill has started VNC service 1) Start 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.log2) manually kill the started VNC service process [[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 11783) Confirm that the process has been killed [[email protected] ~]# PS -ef | Grep-i VNC | Grep-v GREP4) again starts the Desktop 1 VNC service, where 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:12. The process is simple, follow the error message and you need to remove the/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 errors to further remove/tmp/. x11-unix/x1 file [[email protected] ~]# rm-f/tmp/. X11-unix/x1 again start the attempt, OK, start success! [[email protected] ~]# vncserver:1new ' testdb:1 (root) ' Desktop is testdb:1starting applications specified in/root/ . vnc/xstartuplog file Is/root/.vnc/testdb:1. Log3. Problem-solving experience summary once again proves that the key to solve the technical problem is 1) facing the problem, full of confidence, like to solve the problem, even if the time of the Task 2) away from impetuous 3) seriously analyze the error information, find the breakthrough 4) last but not least Ask the best teacher Google--the End--
Failure handling of manual kill VNC process