apache 工具安装无法使用

# 问题1
D:\Work\httpd-2.4.43\Apache24\bin>httpd -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: Syntax error on line 40 of D:/Work/httpd-2.4.43/Apache24/conf/httpd.conf: ServerRoot must be a valid directory
C:\Users\ThinkPad>sc delete Apache2.4
[SC] DeleteService 成功
#问题2
D:\Work\httpd-2.4.43\Apache24\bin>httpd -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.
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : AH00072: make_sock: could not bind to address 0.0.0.0:443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
启动apache服务并且测试apache服务
1、运行cmd后执行net start Apache2.4;
D:\apache\Apache24\bin>net start Apache2.4
Apache2.4 服务正在启动 ..
Apache2.4 服务已经启动成功。
2、浏览器输入:http://localhost/

办法一: 用sc.exe这个Windows命令
  开始–运行–cmd.exe,然后输入sc就可以看到了。使用办法很简单:
  sc delete “服务名” (如果服务名中间有空格,就需要前后加引号)
  如针对上面的: sc delete Apache2.2(这个方法我已经试过了可以的)
  方法二:直接进行注册表编辑
  打开注册表编辑器,找到下面的键值:
  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services 一般服务会以相同的名字在这里显示(类似Apache2.2)一个主健,直接删除相关的键值便可。
————————————————
版权声明:本文为CSDN博主「公众号【架构师也是人】」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/johnstrive/article/details/12561227
实在没法:
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_39286483/article/details/105915745