【轉載】Apache shutdown unexpectedly啓動錯誤解決方法

 

http://blog.csdn.net/dong123dddd/article/details/21372179apache

 

xampp啓動時顯示的錯誤爲:app

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

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.net

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

 


cmd 經過運行apache/bin/httpd.exe 打印以下log: blog

或者後面是80端口被佔用進程

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

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

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


端口被佔用,apache沒法監聽80端口,該如何解決呢? 

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

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

若是配置了vhosts的話請把httpd-vhosts.conf 中端口改成88(同上端口號)

 

2、 經過cmd中netstat -ano 看看本機80、 443端口被佔用沒               ----- --這裏 可能會被其餘程序佔用如iis、虛擬機等
2.經過cmd中打印tasklist,查找佔用80、443端口的進程名稱。 
3.taskkill /pid 端口號 殺掉此進程名稱,XAMPP重啓apache便可。

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

相關文章
相關標籤/搜索