安裝xampp不能啓動apache

問題日誌:
無法啓動apache,顯示的log爲:

20:16:09 [Apache] Error: Apache shutdown unexpectedly.
20:16:09 [Apache] This may be due to a blocked port, missing dependencies,
20:16:09 [Apache] improper privileges, a crash, or a shutdown by another method.
20:16:09 [Apache] Press the Logs button to view error logs and check
20:16:09 [Apache] the Windows Event Viewer for more clues
20:16:09 [Apache] If you need more help, copy and post this
20:16:09 [Apache] entire log window on the forums
思路方向:
我建議首先 運行在cmd中運行 (安裝目錄)apache/bin/httpd.exe
通過運行apache/bin/httpd.exe 打印如下log:
(OS 10048)通常每個套接字地址(協議/網絡地址/端口)只允許使用一次。 : make_sock: could not bind to address 0.0.0.0:443

也就是443端口被佔用,apache無法監聽443端口,該如何解決呢?
解決方案
最直接的方法是關閉佔用443端口的進程:
1. netstat -ano 看看 443端口被佔用沒 –這裏端口被佔用
2.通過cmd中打印tasklist,查找佔用443端口的進程。
3.用taskkill /pid 進程id /f 命令殺掉此進程,XAMPP重啓apache即可。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章