在OS X 10.8(Mountain Lion)更新后,MAMP Apache无法启动

Rya*_*ith 4 apache macos mamp localhost osx-mountain-lion

今天我更新了OS X Mountain Lion.我注意到Apache不会在MAMP中启动.apache日志文件中似乎没有新内容.sudo apachectl -k start在终端运行给我这个:

httpd: Could not reliably determine the server's fully qualified domain name, using Ryan-Smiths-MacBook.local for ServerName
Run Code Online (Sandbox Code Playgroud)

我的httpd.conf文件中定义了ServerName .

我还注意到"Web共享"不再出现在"设置"窗格中了......很奇怪.

有任何想法吗?

谢谢!

Ric*_*kew 17

嗨Ryan,我们遇到了这个问题

事实证明系统自己的apache正在运行.我们在这里记录了http://support.servertastic.com/mamp-not-starting-after-upgrade-to-mountain-lion/

干杯

理查德


bmi*_*kie 10

要解决问题,并启动MAMP apache,您现在可以参考:(上面的链接现在已经破了.)

https://support.servertastic.com/mamp-not-starting-after-upgrade-to-mountain-lion/

或者只需运行以下命令:

sudo apachectl stop
Run Code Online (Sandbox Code Playgroud)

另外如果遇到mysql不再启动的问题,请尝试通过执行以下操作来终止可能已经运行的mysql进程:

  1. 在Mac上打开名为"Activity Monitor"的程序.
  2. 搜索名为"mysqld"的进程.
  3. 点击该流程并"退出流程"

致谢:http : //eliteeternity.com/mysql-server-wont-start-mamp-red-light-mac/ http://forum.mamp.info/viewtopic.php?f=6&t=6149