Today, XAMPP was reinstalled. Due to the change of the installation directory, the XAMPP Control Panel opened and found that the Apache server was not started. So I clicked the "Start" button and found that the service could not be started normally, immediately think of opening the "service" Control Panel to check whether the apache service has been started. It is found that the apache service is not started, and then prompts that the relevant path cannot be found at startup, when I opened the property panel, I was surprised to find that the path of the executable file was still the previous path, but I couldn't find a place to modify it. So Google got the solution:
"Start" => "run" => type "Regedit" to open the Registry
InHKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \Find the required service apache2.2"ImagePath"Change the key value to the actual path.