问题描述:

windows环境下启动apache报错如下:

C:\Users\Administrator>D:\e-office10\apache\bin\httpd.exe
AH00558: httpd.exe: Could not reliably determine the server's fully qualified do
main name, using fe80::1d:1313:53ef:ff9a. Set the 'ServerName' directive globall
y to suppress this message
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : AH00072: mak
e_sock: could not bind to address [::]:443
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : AH00072: mak
e_sock: could not bind to address 0.0.0.0:443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

C:\Users\Administrator>

疑惑:
可是在httpd.conf文件中apache listen的明明是http 80端口,为什么报https 443错误

解答1:
这个问题我自己解决了,我查了一下是因为我装了VM,所有有个vm的进程一直占用着443端口,

把这个进程干掉了,然后就可以启动apache了

回答2:
443 是开启了 https , 是https的端口
如果httpd加载了ssl模块,再在httpd.conf配置中将监听端口改为443,也会报这个错 ,
原因 是httpd.conf和ssl.conf中都 用了443 ,会冲突 。
将httpd.conf中的监听 端口修改为其他可用端口即可。

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。