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"

 

 2.查看進程占用程序

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

 

 可見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的命令。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM