登录  /  注册
Apache shutdown unexpectedly启动错误如何解决?(方法介绍)
不言
发布: 2019-01-07 10:52:25
转载
7428人浏览过

本篇文章给大家带来的内容是关于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启动错误如何解决?(方法介绍)的详细内容,更多请关注php中文网其它相关文章!

相关标签:
来源:CSDN网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 技术文章
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2023 //m.sbmmt.com/ All Rights Reserved | 苏州跃动光标网络科技有限公司 | 苏ICP备2020058653号-1

 | 本站CDN由 数掘科技 提供

登录PHP中文网,和优秀的人一起学习!
全站2000+教程免费学