0
点赞
收藏
分享

微信扫一扫

系统找不到指定的文件。 : AH00436: No installed service named “Apache2.4“.报错解决【杂记】(保姆级图文)

一只1994 2022-02-23 阅读 46

目录


『杂记』分享一些实用的技巧方法 安装环境,配置环境教程,推荐实用软件 软件的使用问题。

错误效果

在这里插入图片描述


解决方法

安装Apache服务

我自己一开始就算能用Apache服务,但是还是没有安装,建议检查一下,下图表示已经安装成功了

安装Apache服务
httpd.exe -k install
  • 安装成功
    在这里插入图片描述
Installing the 'Apache2.4' service
The 'Apache2.4' service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
  • 说明已经安装过了,你可以卸载了重装一遍
    在这里插入图片描述
  • httpd.exe -k uninstall
    在这里插入图片描述

其他可能的原因排查

1.防火墙

2.端口占用。查询80端口,使用netstat-ano查询本地是否用80端,经查询无80端口占用。
在这里插入图片描述
3.apache的SRVROOT配置。

测试服务

1) 启动已安装的Apache服务
httpd.exe -k start
2) 停止已安装的Apache服务
httpd.exe -k stop || httpd.exe -k shutdown
3) 重启已安装的Apache服务(迫使服务重读配置文件,适用于修改配置文件后)
httpd.exe -k restart
  • 出现下方页面表示成功!
访问本机地址,检查是否成功启动
http://127.0.0.1/

在这里插入图片描述

  • 启动
    在这里插入图片描述
  • 停止
    在这里插入图片描述
  • 重启
    在这里插入图片描述

总结

大家喜欢的话,给个👍,点个关注!给大家分享更多有趣好玩的计算机知识!

版权声明:

发现你走远了@mzh原创作品,转载必须标注原文链接

Copyright 2022 mzh

Crated:2022-2-1


举报

相关推荐

0 条评论