php 是否有 MAMP PRO 的免费替代品?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1937282/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 04:21:31  来源:igfitidea点击:

Is there an free alternative to MAMP PRO?

phpmacosnetbeansmamp

提问by openfrog

NetBeans is recommending to use MAMP for Apache + MySQL + PHP on the Mac. There's a MAMP and a MAMP PRO. The MAMP is actually nothing more than a collection of open source libraries and stuff like PHP, MySQL, etc. in one big directory that goes to /Application/MAMP/. It comes with a little GUI to start/stop the server and to do some very basic settings. However, it is extremely limited. There's a MAMP PRO which does some more things but costs like $65. As I'm not making any money with my web dev I look for free solutions.

NetBeans 建议在 Mac 上使用 MAMP for Apache + MySQL + PHP。有 MAMP 和 MAMP PRO。MAMP 实际上只不过是一组开源库和诸如 PHP、MySQL 等内容的集合,位于一个位于 /Application/MAMP/ 的大目录中。它带有一个小的 GUI 来启动/停止服务器并进行一些非常基本的设置。然而,它是极其有限的。有一个 MAMP PRO 可以做更多的事情,但售价 65 美元。由于我没有通过我的网络开发人员赚钱,所以我寻找免费的解决方案。

So is there something else that's open source / free, which does the same thing like MAMP Pro? starting / stopping PHP / Apache / MySQL on the Mac, configuring hosts, ports, etc.?

那么有没有其他开源/免费的东西,它像 MAMP Pro 一样做同样的事情?在 Mac 上启动/停止 PHP/Apache/MySQL,配置主机、端口等?

采纳答案by Charles

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.

官方 MySQL 发行版包括一个图形启动/停止客户端。事实上,它是一个按钮。

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 PHPand you're set.

Apache的内置副本可以在文件共享设置区域启动和停止。将它与一个非古老版本的 PHP结合起来就可以了。

回答by Brandon McKinney

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,只需根据需要编辑我的配置文件。我的 MAMP Apache 配置位于 /Applications/MAMP/conf/apache/httpd.conf。该文件得到了很好的评论,您可以在其中搜索任何设置以了解有关它们的更多信息。GUI 工具是一种很好的奢侈品,但我们不应该完全依赖它们。

回答by Gordon Potter

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.

使用 Apache 等内置软件包的问题之一是它们考虑了系统软件,并且会定期通过苹果的软件更新进行更新。大多数情况下这很好,但有时如果您有很多自定义调整或版本更新,或者想要使用非常特定的版本,您有时会被软件更新绊倒。因此,这是 MAMP 等替代软件包的一个论据,它可以像生产环境一样进行更精确的管理。

Plus if one is "learning" apache and PHP administration it is less risk to bork an standalone package like MAMP or Macports.

另外,如果一个人正在“学习” apache 和 PHP 管理,那么使用像 MAMP 或 Macports 这样的独立软件包的风险较小。

As for alternatives to MAMP, macports it useful. But also there is the Bitnami project

至于 MAMP 的替代品,macports 很有用。但也有 Bitnami 项目

http://bitnami.org/

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.

他们为特定的应用程序包提供了很好的安装程序,以及一个普通的 LAMP 类型环境。还有一个干净的卸载程序,很好。所以尝试一下,您不必担心破坏系统软件或配置。

回答by Jonas Wouters

You can always use a package manager like MacPortsor Homebrewand follow their guides to getting set up.

您始终可以使用MacPortsHomebrew等包管理器,并按照他们的指南进行设置。

回答by bottleboot

There is a solid, open source, alternative to MAMP called MNPP. It has everything MAMP has, but updated.

有一个可靠的开源替代 MAMP 称为MNPP。它拥有 MAMP 所拥有的一切,但已更新。

回答by Frank L?mmer

There is Pow (well it's for Ruby) here is how to run it with PHP: https://github.com/37signals/pow/wiki/Running-Pow-with-Apache

有 Pow(它适用于 Ruby)这里是如何使用 PHP 运行它:https: //github.com/37signals/pow/wiki/Running-Pow-with-Apache

And there is a nice GUI as well: Anvil.

还有一个很好的图形用户界面:Anvil。

回答by sprugman

I'm pretty sure XAMPP works on the mac. But it's not as good as MAMP.

我很确定 XAMPP 可以在 mac 上运行。但它不如MAMP。