【转载】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便可。

综上所述第一种方法推荐使用,第二种每次启动都或多或少的再次遇到。

相关文章
相关标签/搜索