安装或启动apache时出现错误提示,无法正常启动,错误提示:

 

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

ould not bind to address 0.0.0.0:80

no listening sockets available, shutting down

Unable to open logs

 

原因分析:可能是80端口被占用引起。

解决方法:打开服务,禁用IIS Admin Service。停止IIS (net stop iisadmin)。记得重启。

     或者在apache配置文件中将apache端口改成其他端口:

 

Listen 8080

ServerName localhost:8080