您的位置:首页 > 运维架构 > Apache

XAMPP启动Apache失败

2017-03-27 18:20 399 查看

xampp/apache启动失败解决方法

22:11:47 
[Apache]     
Error:Apache shutdown unexpectedly.
22:11:47 
[Apache]     
Thismay be due to a blocked port, missing dependencies,

22:11:47 
[Apache]     
improperprivileges, a crash, or a shutdown by another method.
22:11:47 
[Apache]     
Checkthe "/xampp/apache/logs/error.log" file
22:11:47 [Apache]
     and the Windows Event Viewer for more clues

 

1.80端口冲突,解决方法:
打开目录C:\xampp\apache\conf(我的安装目录为C:\xampp)下的httpd.conf文件,将Listen 80和 ServerName localhost:80中的80改为8088或其它值(尽量不要使用0-1023端口,这个是系统保留端口),要保持一致。
2.监听端口443冲突,解决方法:
打开目录C:\xampp\apache\conf\extra(我的安装目录为C:\xampp)下的httpd-ssl.conf文件,将Listen 443这句注释掉:# Listen 443或将443改为4431或其它值(尽量不要使用0-1023)。
1.2步骤中的文件在启动XAMPP后的界面中也可以快速找到并按照步骤进行修改.



3.修改系统的端口



 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: