Apache无法正常启动Error: Apache shutdown unexpectedly.443端口冲突

报错信息如下:

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

在这里插入图片描述
首先win+r打开cmd中断,运行 (安装目录)apache/bin/httpd.exe,我的是D:\Software\xampp\apache\bin\httpd.exe
在这里插入图片描述
根据打印日志make_sock: could not bind to address 0.0.0.0:443。可知443端口冲突,也就是443端口被占用,apache无法监听443端口

解决方案:最直接的方法是关闭占用443端口的进程:

  1. netstat -ano 看看 443端口被占用没
    在这里插入图片描述
    由上面的命令行可以看出,占用443端口的为PID为16768的进程
    继续在命令行输入命令:tasklist|findstr “16768”,找到占用443端口的进程,如本机的vmware-hostd.exe
    在这里插入图片描述
    要关闭这个进程,可以在显示器下方空白区域单击右键,进入 “任务管理器”界面,选中这个进程右键单击选择“结束任务”可以关闭掉这个进程。重新启动Apache,配置完成。

启动成功
在这里插入图片描述

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值