Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
了解如何编辑 Apache 配置文件,然后您就可以做任何您想做的事情。您所需要的只是一个文本编辑器。我有免费的 MAMP,只需根据需要编辑我的配置文件。我的 MAMP 的 Apache 配置位于 /Applications/MAMP/conf/apache/httpd.conf。该文件有很好的注释,您可以通过 Google 搜索其中的任何设置以了解有关它们的更多信息。 GUI 工具是一种很好的奢侈品,但我们不应该完全依赖它们。
Learn how to edit the Apache config file, then you can do anything you want. All you'll need is a text editor. I have MAMP free and just edit my config file as necessary. My Apache config for MAMP is located at /Applications/MAMP/conf/apache/httpd.conf. The file is well commented and you can Google any of the settings in there to learn more about them. GUI tools are a nice luxury, but we shouldn't be completely dependent upon them.
使用 Apache 等内置软件包的问题之一是它们考虑了系统软件并且定期由苹果的软件更新进行更新。大多数时候这很好,但有时如果您有很多自定义调整或版本更新或想要使用非常特定的版本,您有时可能会被软件更新绊倒。因此,这是像 MAMP 这样的替代包的一个论点,它可以像生产环境一样进行更精确的管理。
另外,如果一个人正在“学习”apache 和 PHP 管理,那么使用 MAMP 或 Macports 这样的独立软件包的风险会更小。
至于 MAMP 的替代品,macports 很有用。而且还有 Bitnami 项目
http://bitnami.org/
他们为特定应用程序包提供了很好的安装程序,并且普通 LAMP 类型环境。还有一个干净的卸载程序,这很好。因此,尝试一下,您就不必担心破坏系统软件或配置。
One of the problems with using the built in packages of Apache etc is that they considered system software and are routinely updated by apple's software update. Most of the time this is fine, But sometime if you have a lot of custom tweaks or version updates or want to use a very specific version you can sometimes get tripped up by the software update. So that is one argument for alternative package like MAMP which can be more precisely managed like a production evironment.
Plus if one is "learning" apache and PHP administration it is less risk to bork an standalone package like MAMP or Macports.
As for alternatives to MAMP, macports it useful. But also there is the Bitnami project
http://bitnami.org/
They have nice installers for specific application bundles, and a vanilla LAMP type environments. There is also a clean uninstaller which is nice. So experiment away and you don't have to worry about break system software or configurations.
是不是已经内置的软件有问题?
官方 MySQL 发行版包含一个图形化启动/停止客户端。事实上,它只是一个按钮。
可以在文件共享设置区域中启动和停止Apache的内置副本。将其与 非古代版本的 PHP 结合起来就可以了。
Is there something wrong with the software already built-in?
The official MySQL distro includes a graphical start/stop client. It's a single button, in fact.
The built-in copy of Apache can be startted and stopped in the file sharing settings area. Combine it with a not-ancient version of PHP and you're set.
您始终可以使用包管理器,例如 MacPorts 或 Homebrew 并按照他们的指南进行设置。
You can always use a package manager like MacPorts or Homebrew and follow their guides to getting set up.
有一个可靠的、开源的 MAMP 替代品,称为 MNPP。它拥有 MAMP 拥有的一切,但已更新。编辑:7 年后,该项目看起来已被放弃,主域也消失了。该存储库仍然存在,但已经很久没有更新了,所以我不建议使用它。作为参考,这里是存储库网址:https://github.com/jyr/MNPP
There is a solid, open source, alternative to MAMP called MNPP. It has everything MAMP has, but updated.Edit: 7 years later the project looks to be abandoned and the main domain is gone. The repo is still around but hasn't been updated in ages, so I would not recommend using it. For reference here's the repo url: https://github.com/jyr/MNPP
我很确定 XAMPP 在 Mac 上可以工作。但它不如MAMP。
I'm pretty sure XAMPP works on the mac. But it's not as good as MAMP.