更新后MAMP无法启动求助:Mac升级至MAMP 4.5后启动即闪退
Hey there, sorry to hear MAMP's acting up right after your upgrade to 4.5—let's work through some tried-and-true fixes to get it back up and running:
Check for Port Conflicts
MAMP relies on ports 80 (Apache) and 3306 (MySQL) by default, and other apps (like Skype, or even macOS's built-in Apache) might be hogging them.
Open Terminal and run these commands to see what's using the ports:sudo lsof -i :80sudo lsof -i :3306
If you see a process listed, you can kill it withsudo kill -9 [PID](replace [PID] with the number from the output), or open MAMP's preferences and switch to unused ports (like 8888 and 8889).Reset MAMP Preferences
Outdated preference files often cause crashes after upgrades. Here's how to reset them:- Make sure MAMP is completely closed (check Activity Monitor if needed).
- Open Finder, press
Cmd + Shift + G, and paste~/Library/Application Support/appsolute/MAMP PRO/ - Rename the
MAMP PRO.conffile to something likeMAMP PRO.conf.old(this keeps a backup just in case). - Launch MAMP again—it'll generate fresh preference files.
Fix Folder Permissions
Upgrades can mess up file permissions, preventing MAMP from accessing necessary files. Run this Terminal command to reset permissions for the MAMP folder:sudo chown -R $(whoami) /Applications/MAMP/
Enter your Mac password when prompted, then try launching MAMP again.Dig Into Error Logs
If the above steps don't work, the logs will tell you exactly what's breaking. Navigate to/Applications/MAMP/logs/and openapache_error.logormysql_error.logwith TextEdit. Look for lines markedERROR—they'll give you specific clues (like a missing module or corrupted database).Reinstall MAMP (Last Resort)
If all else fails, a clean install might do the trick:- Back up your website files from
/Applications/MAMP/htdocs/ - Export your databases using MAMP's phpMyAdmin (if you can access it) or copy the database folders from
/Applications/MAMP/db/mysql/ - Drag the MAMP app from your Applications folder to the Trash, then empty it.
- Download the 4.5 version again and install it, then restore your backups.
- Back up your website files from
If none of these fix the crash, share a snippet from the error logs and I can help you narrow it down further!
内容的提问来源于stack exchange,提问作者Alessio Cammarata

