【发布时间】:2012-07-25 16:44:22
【问题描述】:
今天我更新到 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
我的 httpd.conf 文件中确实定义了 ServerName。
我还注意到“网络共享”不再出现在“设置”窗格中……很奇怪。
有什么想法吗?
谢谢!
【问题讨论】:
-
OS X Mountain Lion 仍包含 Apache,但“Web 共享”首选项已消失! (参考 Apple 支持:OS X Mountain Lion: Options for web sharing)。如果您正在运行 PHP 应用程序,那么值得研究 MAMP 作为更好的替代品(它包括 MySQL、phpMyAdmin 和一些相关的程序和库)。
标签: macos apache localhost mamp osx-mountain-lion