日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Apache shutdown unexpectedly启动错误解决方法

發布時間:2025/3/19 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Apache shutdown unexpectedly启动错误解决方法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

轉載地址:http://blog.csdn.net/dong123dddd/article/details/21372179

xampp啟動時顯示的錯誤為:

9:52:41 ?[Apache] Attempting to start Apache app...

9:52:41 ?[Apache] Status change detected: running
9:52:42 ?[Apache] Status change detected: stopped
9:52:42 ?[Apache] Error: Apache shutdown unexpectedly.
9:52:42 ?[Apache] This may be due to a blocked port, missing dependencies,?
9:52:42 ?[Apache] improper privileges, a crash, or a shutdown by another method.
9:52:42 ?[Apache] Check the "/xampp/apache/logs/error.log" file

9:52:42 ?[Apache] and the Windows Event Viewer for more clues


這個問題比較常見, 通常是80、443端口被占用

cmd 通過運行apache/bin/httpd.exe 打印如下log:?

(OS 10048)通常每個套接字地址(協議/網絡地址/端口)只允許使用一次。 : make_sock: could not bind to address 0.0.0.0:443?
或者后面是80端口被占用

(OS 10048)通常每個套接字地址(協議/網絡地址/端口)只允許使用一次。 : make_sock: could not bind to address 0.0.0.0:80 ?或[ : : ]:80?

一、最快的處理方法就是修改端口號:

1、443端口被占用,apache無法監聽443端口,該如何解決呢??

在/xampp/apache/conf/extra/httpd-ssl.conf?

把Listen 443 修改為 444(可自定義)


2、80
端口被占用,apache無法監聽80端口,該如何解決呢??

在/xampp/apache/conf/extra/httpd.conf?

把Listen 80 修改為 88 (可自定義)

如果配置了vhosts的話請把httpd-vhosts.conf 中端口改為88(同上端口號)


二、最直接的方法是關閉占用80、443端口的進程:?
1.通過cmd中netstat -ano 看看本機80、 443端口被占用沒 ? ? ? ? ? ? ? ----- --這里 可能會被其他程序占用如iis、虛擬機等
2.通過cmd中打印tasklist,查找占用80、443端口的進程名稱。?
3.taskkill /pid 端口號 殺掉此進程名稱,XAMPP重啟apache即可。

綜上所述第一種方法推薦使用,第二種每次啟動都或多或少的再次遇到。

與50位技術專家面對面20年技術見證,附贈技術全景圖

總結

以上是生活随笔為你收集整理的Apache shutdown unexpectedly启动错误解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。