You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows下MAMP端口80连接失败,修改配置后闪退求助

Fixing MAMP Port 80 Connection Failure & Crash on Windows

Hey there, let’s work through this MAMP issue together—you’ve already tried the basics, so let’s dig into some targeted fixes that often resolve port 80 errors and sudden crashes:

  • Check if Port 80 is being used by another program
    Windows often reserves port 80 for built-in services like IIS, or even apps like old versions of Skype/Teams. Here’s how to track it down:

    1. Open Command Prompt as Administrator
    2. Run this command: netstat -ano | findstr ":80"
    3. Note the PID number at the end of the line, then open Task Manager → Details tab, find that PID, and end the process. Restart MAMP after this.
  • Manually verify Apache config files (don’t rely on "restore defaults")
    Sometimes the "restore default ports" button misses a setting. Navigate to your MAMP installation folder (usually C:\MAMP\conf\apache):

    • Open httpd.conf and look for the line Listen 80—make sure it’s set to 80 (or change it to 8080 if you want to avoid port conflicts entirely)
    • Open httpd-vhosts.conf and check any VirtualHost entries to ensure they’re using the same port as above. Save changes, then try launching MAMP again.
  • Run MAMP with Administrator privileges
    Old Windows systems often restrict app access to system ports like 80. Right-click the MAMP icon and select "Run as administrator" before trying to change ports or start the server. This can fix the sudden crash after applying config changes.

  • Clean up MAMP cache and free system resources
    If your old PC is low on memory, MAMP might crash when trying to start services:

    • Close any unnecessary background apps (browser tabs, antivirus scans, etc.)
    • Navigate to C:\MAMP\tmp and delete all files in the cache, mysql, and php folders (don’t worry—these will regenerate when MAMP starts)
  • Reinstall MAMP (as a last resort)
    If none of the above works, your MAMP installation might be corrupted. Uninstall it via Control Panel, then delete any leftover folders (like C:\MAMP and C:\Users\[YourName]\AppData\Roaming\MAMP). Download a version compatible with your Windows OS and reinstall.

I’ve seen most users fix this with either the port check or admin privileges—give those a go first!

内容的提问来源于stack exchange,提问作者juanddiaz13

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 08:03:50