(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。

一开始报的是80端口被占用,然后我修改了\Apache24\conf下的httpd.conf文件里改成了81

# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:81
Listen 81

#

后来运行httpd.exe操作,又出现了下面的情况

(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

意思是使用443端口被占用,那么就修改端口,
仔细翻阅了别人的博客,没有解决,发现大家改端口改的都不是一个地方,不知道为什么?
我就在是在
\Apache24\conf\extra下的httpd-ahssl.conf的改成了442

# Required modules: mod_log_config, mod_setenvif, mod_ssl,
#          socache_shmcb_module (for default value of SSLSessionCache)


Listen 442 https

##
##  SSL Global Context

就可以了,在网页访问的时候要加上你改的端口号访问

http://localhost:81
http://localhost:442/

版权声明:本文为qq_40834643原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。