XAMPP Error:Apache shutdown unexpectedly 解决方案

XAMPP启动apache时显示如下错误

上午 12:33:52  [Apache] Error: Apache shutdown unexpectedly.
上午 12:33:52  [Apache] This may be due to a blocked port, missing dependencies, 
上午 12:33:52  [Apache] improper privileges, a crash, or a shutdown by another method.
上午 12:33:52  [Apache] Press the Logs button to view error logs and check
上午 12:33:52  [Apache] the Windows Event Viewer for more clues
上午 12:33:52  [Apache] If you need more help, copy and post this
上午 12:33:52  [Apache] entire log window on the forums


查到这个问题一般因为80端口被占用,于是在htttp.conf中改为监听8080端口,但是仍然报错。可能443端口也被占用。

解决方案:

1. 在命令行中netstat -ano 查看端口是否被占用。果不其然,被PID为2276的进程战勇。


2. 继续tasklist,根据PID发现占用443端口的原来是Vmware。(安装 Vmware 虚拟机的100%中招)

3. 解决方案有两个,一是和端口80修改httpd.conf一样,在httpd-ssl.conf中修改把Listen 443修改为444或者其他;二是在cmd中 taskkill /PID 端口号 将进程直接杀掉,在XAMPP中重启Apache即可。

  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值