apache启动错误 AH00072

 


错误描述:apache


make_sock: could not bind to address [::]:443bash

G:\Apache24\bin>httpd.exe -w -n "Apache2.4" -k start
(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网络


 

根据错误提示,应该是端口被占用:socket

1:查找端口占用spa

C:\Users\heliang>netstat -ano | findstr "443"

 

 2.查看进程占用程序3d

C:\Users\heliang>tasklist | findstr "4124"
VisualSVNServer.exe           4124 Services                   0      5,264 K

 

 可见433由VisualSVNServer.exe占用,根据“先来后到”的原则,那么只有更改apache的这个端口了。rest

解决方法
进入Apache的安装目录,搜索443,修改成444(或者其余可用端口)。code

(我这里借用了subLime text来搜索文本中的433的。Apache24压缩文件放在我电脑的G盘)blog

我本地须要修改的文件以下:进程

G:\Apache24\conf\extra\httpd-ahssl.conf
G:\Apache24\conf\extra\httpd-ssl.conf
G:\Apache24\conf\original\extra\httpd-ssl.conf
G:\Apache24\logs\install.log

接下来就能够正常启动Apache了。

启动 Apache
httpd.exe -w -n "Apache2.4" -k start 

中止 Apache
httpd.exe -w -n "Apache2.4" -k stop 

重启 Apache
httpd.exe -w -n "Apache2.4" -k restart

### 请将cmd窗口路径切换到在Apache的bin目录,而后执行bash命令。

例如,我这里把Apache24解压出来放在了G盘。须要进入 G:\Apache24\bin   以管理员权限执行运行Apache的命令。

相关文章
相关标签/搜索