XAMPP--Apache服务无法启动问题定位及处理

一、问题简述:

  XAMPP 在使用一段时间后,Apache服务无法启动。

二、详细描述:

  安装Xampp服务器套件之后,部署使用正常。一段时间未使用,再次打开时,Apache服务无法启动。错误提示如下:

11:28:29  [Apache]     Status change detected: running
11:28:30  [Apache]     Status change detected: stopped
11:28:30  [Apache]     Error: Apache shutdown unexpectedly.
11:28:30  [Apache]     This may be due to a blocked port, missing dependencies,
11:28:30  [Apache]     improper privileges, a crash, or a shutdown by another method.
11:28:30  [Apache]     P

ress the Logs button to view error logs and check
11:28:30  [Apache]     the Windows Event Viewer for more clues
11:28:30  [Apache]     If you need more help, copy and post this
11:28:30  [Apache]     entire log window on the forums

三、分析与定位:

  界面提示:可能是Port Blocked,详细日志可以打开日志文件查看。点击“Logs”——》“Apache(error.log)”查找到如下错误信息:

  

四、处理步骤:

  进入DOS控制台,查看443端口是否被占用。netstat -nao,查找到占用些PORT的进程的PID,然后使用ListTask 命令找到PID对应的进程名,Kill掉它,或从根本上解决这个问题(如不能并存,卸载它或Config文件中更换Port)。

  图一:使用netstat -nao | findstr ":443"

  

 

  图二:使用tasklist | findstr "2652" 找出使用此进程号的软件

  

 

  任务管理器中,结果些进程。(当然这里是我已经处理好后的截图,已经是HTTPD进程了)

 

五、结果:

  重启一次Apache,正常启动。

转载于:https://www.cnblogs.com/MrCandy/p/4035270.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值