百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>数据库> Apacheshutdownunexpectedly启动差错怎样解决?(办法介绍)
分享文章到:

Apacheshutdownunexpectedly启动差错怎样解决?(办法介绍)

发布时间:08/01 来源:未知 浏览: 关键词:
?本篇文章给大家带来的内容是对于Apacheshutdownunexpectedly启动差错怎样解决?(办法介绍),有一定的参照 价值,有需要的伴侣可以参照 一下,但愿对你有所帮忙。

本篇文章给大家带来的内容是对于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启动差错怎样解决?(办法介绍)的细致内容,更多请关注 百分百源码网 其它相干文章!

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有153人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板