apache bench安装问题:出现 AH00072: make_sock: could not bind to address [::]:443

一、更改apache/conf/httpd.conf文件

首先把解压后的文件放在根目录下,如G:\Apache24
首要更改httpd.conf文件:

1、更改srvrroot,设置成当前的根目录

Define SRVROOT "G:/Apache24"
ServerRoot "${SRVROOT}"

2、更改端口号,80端口号已经被占用,更改成8088,注意listen 80 和ServerName localhost两个地方都需要改

Listen 8088

ServerName localhost:8088

3、检查一个地方 保证DocumentRoot路径下文件必须存在

DocumentRoot "${SRVROOT}/htdocs"

参考链接:https://blog.csdn.net/w405722907/article/details/86235418

二、 出现 AH00072: make_sock: could not bind to address [::]:443

参考链接:https://blog.csdn.net/mist99/article/details/80762612

三、启动Apache24.exe

如果问题2没解决,那么Apache24处在安装成功,但不能启动的状态。
解决问题2后,cmd->services.msc->启动Apache24.exe服务,就可以使用ab测试了

猜你喜欢

转载自blog.csdn.net/vainfanfan/article/details/90169966