Windows启动Apache时报错
he requested operation has failed
有可能80端口被占或者项目路径不存在等

首先找到问题原因
cmd--命令端--切换到apache的bin目录,这里是D:/ApacheServer/Apache/bin
执行如下命令
d:
cd ApacheServer\Apache\bin
httpd.exe -w -n "apache2.4" -k start
apache2.4为apache服务名称,有的为apache,以实际的为准。

报错为
AH00526: Syntax error on line 245 of D:/ApacheServer/Apache/conf/httpd.conf:
DocumentRoot must be a directory
项目路径不存在,修改配置文件项目路径就好

如果为OS 10013错误,则说明问题是80端口被占用

 

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2021-11-07
  • 2021-07-19
  • 2021-08-05
  • 2022-12-23
  • 2021-09-21
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2021-04-01
  • 2021-07-06
  • 2021-06-08
  • 2021-05-15
  • 2021-09-11
相关资源
相似解决方案