天天看點

apache啟動錯誤 AH00072

錯誤描述:

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

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

根據錯誤提示,應該是端口被占用:

1:查找端口占用

C:\Users\heliang>netstat -ano | findstr "443"      
apache啟動錯誤 AH00072

 2.檢視程序占用程式

C:\Users\heliang>tasklist | findstr "4124"
VisualSVNServer.exe           4124 Services                   0      5,264 K      
apache啟動錯誤 AH00072

 可見433由VisualSVNServer.exe占用,根據“先來後到”的原則,那麼隻有更改apache的這個端口了。

解決方法

進入Apache的安裝目錄,搜尋443,修改為444(或者其他可用端口)。

(我這裡借用了subLime text來搜尋文本中的433的。Apache24壓縮檔案放在我電腦的G盤)

我本地需要修改的檔案如下:

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的指令。

apache啟動錯誤 AH00072

作者:小烏龜

出處:http://www.cnblogs.com/music-liang/

【轉載請注明出處,歡迎轉載】 希望這篇文章能幫到你