xampp/apache启动失败解决方法
我的问题是:
9:15:53 AM [Apache] Error: Apache shutdown unexpectedly.
9:15:53 AM [Apache] This may be due to a blocked port, missing dependencies,
9:15:53 AM [Apache] improper privileges, a crash, or a shutdown by another method.
9:15:53 AM [Apache] Press the Logs button to view error logs and check
9:15:53 AM [Apache] the Windows Event Viewer for more clues
9:15:53 AM [Apache] If you need more help, copy and post this
9:15:53 AM [Apache] entire log window on the forums
根据log查找解决方案,
1.80端口冲突,解决方法:
打开目录C:\xampp\apache\conf(我的安装目录为C:\xampp)下的httpd.conf文件,将Listen 80和 ServerName localhost:80中的80改为8081或其它值(尽量不要使用0-1023端口,这个是系统保留端口),要保持一致。
2.监听端口443冲突,解决方法:
打开目录C:\xampp\apache\conf\extra (我的安装目录为C:\xampp)下的httpd-ssl.conf文件,将Listen 443这句注释掉:# Listen 443或将443改为4433或其它值(尽量不要使用0-1023)。
再修改了以上两个端口后,再次启动apache,it works!
9:18:03 AM [Apache] Problem detected!
9:18:03 AM [Apache] Port 80 in use by "D:\Program Files\Skype\Phone\Skype.exe" with PID 4808!
9:18:03 AM [Apache] Apache WILL NOT start without the configured ports free!
9:18:03 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
9:18:03 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
9:18:03 AM [Apache] Problem detected!
9:18:03 AM [Apache] Port 443 in use by "D:\Program Files\Skype\Phone\Skype.exe" with PID 4808!
9:18:03 AM [Apache] Apache WILL NOT start without the configured ports free!
9:18:03 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
9:18:03 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
9:18:03 AM [Apache] Attempting to start Apache app...
9:18:03 AM [Apache] Status change detected: running
本文来自博客园,作者:飞龙在生,转载请注明原文链接:https://www.cnblogs.com/flzs/p/10591895.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!