本篇文章给人人带来的内容是关于Apache shutdown unexpectedly启动毛病怎样处置惩罚?(要领引见),有肯定的参考价值,有须要的朋侪能够参考一下,愿望对你有所协助。
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即可。
综上所述第一种要领引荐运用,第二种每次启动都或多或少的再次碰到。
以上就是Apache shutdown unexpectedly启动毛病怎样处置惩罚?(要领引见)的细致内容,更多请关注ki4网别的相干文章!