Order:
Go to the bin directory of Apache and enter httpd.exe -k start (if there is no -k start, no information will pop up and it will not end)
error message:
(20024)The given path is misformatted or contained invalid characters: AH00532: Inval
id config file path \xe2\x80\x9cC:\apache24\conf\httpd.conf
Is the path name in Chinese, and the decoding format of the command line is different
From the error message, it appears that the path to the configuration file is incorrect.
It may be that the path under win is inconsistent with the path under Linux.
Finally I found out that I was wrong when setting up the service and the right thing is
But it turns out that I copied it online, and there is a lower quotation mark missing, while the upper quotation marks are still in Chinese, that is:
I reported the error in the question. Open cmd with administrator rights,
sc delete apache2.4
delete the original service and create a new correct service to start