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