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
是不是路径名是中文,然后命令行的解码格式不同
从报错信息看是配置文件的路径不对。
可能是win下的路径和Linux下的路径不一致。
终于发现是建立服务的时候错了,正确的是
但原来我是网上copy的,少了一个下引号,而上引号还是中文的,即:
就报了问题中的错误。在管理员权限下打开cmd,
sc delete apache2.4
删除原来的服务再新建正确的服务就可以启动了