在上一篇文章中,我们进行了Apache 2.4的安装,在安装过程中出现 “无法启动遇到OS10048 通常每个套接字地址(协议/网络地址/端口)只允许使用一次”的问题,现在给出相关解决方法。
G:\web service\httpd-2.4.37-x64-vc11-r2\Apache24\bin>httpd -k install "Y_ApacheService"
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 [::]:443
(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
解决:
1、执行G:\web service\httpd-2.4.37-x64-vc11-r2\Apache24\bin>httpd -k uninstall "Y_ApacheService"
2、找到G:\web service\httpd-2.4.37-x64-vc11-r2\Apache24\conf\extra中的httpd-ahssl.conf和httpd-ssl.conf,将有443的地方改为442就可以了。