MAMP/LAMP 本机还是虚拟(Virtualbox/VMware)?

发布于 2024-07-14 13:21:05 字数 526 浏览 12 评论 0原文

您首选的开发环境是什么?

本机

  • Windows/MacOS/Linux 上的 WAMP/MAMP/LAMP (Apache、MySQL、PHP)
  • 本地工作副本、服务器上的 SVN/CVS
  • 同一系统上的 IDE/编辑器(Eclipse、Aptana、Zend.. .)

虚拟/本机(虚拟机上的服务器)

  • VirtualBox/VMware 上的 LAMP
  • 在主机上的虚拟机
  • IDE/编辑器中工作副本,通过 Samba、FTP、SFTP 访问虚拟机(最终使用 WebDrive 等工具进行映射) )

虚拟 (VM)

  • 在 VM 中运行的完整开发环境(服务器、工具、IDE)
  • 主机仅用于在 VM 中运行的操作系统上不可用的特殊工具

所有都有优点和缺点。

What is your preferred development environment ?

Native

  • WAMP/MAMP/LAMP (Apache, MySQL, PHP) on Windows/MacOS/Linux
  • Working copy local, SVN/CVS on server
  • IDE/Editor on the same system (Eclipse, Aptana, Zend...)

Virtual/Native (Server on VM)

  • LAMP on VirtualBox/VMware
  • working copy in the VM
  • IDE/Editor on host, access to the VM with Samba, FTP, SFTP (eventually mapping with tools like WebDrive)

Virtual (VM)

  • Complete development environment running in a VM (server, tools, IDE)
  • Host is only used for special tools not available on the OS running in the VM

All have pros and cons.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甲如呢乙后呢 2024-07-21 13:21:05

使用 BitNami 堆栈,您可以在本地或远程运行完全相同的 XAMP 环境(并确保团队中的每个人都运行完全相同的 XAMP 环境)相同的堆栈)。 它是免费的,可在 Windows、Linux、Mac 上运行。

With BitNami stacks you can run the exact same XAMP environment locally or remotely (and make sure everybody on your team is running the exact same stack). It is free and works on Windows, Linux, Mac.

停顿的约定 2024-07-21 13:21:05

我喜欢将 SVN 存储库放在 Web 服务器上的某个位置。

它相当安全(使用 Apache WebDAV),并且它给了我一个很好的机会从可能降临到我的主要开发机器上的任何灾难中快速恢复。 我可以控制自己的网络服务器,但是有很多便宜的主机可以以低成本完成这项工作。

关于虚拟机或无虚拟机:

虚拟机的优点 - 从搞砸的开发环境中快速恢复
能够快速尝试不同版本或升级
如果您有许多系统运行VM主机,则能够快速移动整个环境
可以选择任意主机

VM的缺点——性能影响; 额外的设置复杂性。

总的来说,如果我的主机系统上提供了所有工具,我会选择“无虚拟机”,但当我需要运行不同的操作系统时,我会使用虚拟机(主机系统是 Mac Pro,所以如果我需要 Visual Studio,我用 Parallels 来做)。

I like having the SVN repository somewhere on a web server.

It's reasonably secure (using Apache WebDAV), and it gives me a good chance of recovering quickly from any disasters that may befall my main development machine. I have the luxury of control over my own web server, but there are lots of cheap hosts that will do the job at low cost.

As regards VM or no VM:

Advantages of VM - very fast recovery from screwing up your development environment
Ability to try out different versions or upgrades quickly
If you have many systems running the VM host, ability to quickly move the whole environment
Can choose any Host

Disadvantages of VM - performance impact; extra setup complexity.

On balance, I go for "no VM" if all the tools are available on my host system, but I do use VM when I need to run a different OS (the host system is a Mac Pro, so if I need Visual Studio, I do it with Parallels).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文