apache 哪个 Linux 发行版最适合在虚拟机中运行,用于编程研究?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/726649/
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-09-13 17:28:21  来源:igfitidea点击:

Which Linux distro is best for running in a virtual machine, for programming research?

phplinuxapachevirtualization

提问by Dave Swersky

I'd like to learn LAMP development for my own personal edification.

我想学习 LAMP 的开发,为我自己的个人启迪。

I tried setting up Ubuntu 8.10 "Hardy Heron" in Microsoft VPC, but I can't get the video to work above 800x600. Played with xorg.conf a million times but no joy. Can anyone recommend a good distro to work with that plays well with VPC? Any guidance on getting started with Apache and Perl/PHP would also be welcome.

我尝试在 Microsoft VPC 中设置 Ubuntu 8.10“Hardy Heron”,但我无法让视频在 800x600 以上工作。用 xorg.conf 玩了一百万次但没有乐趣。任何人都可以推荐一个很好的发行版,可以与 VPC 一起使用吗?也欢迎任何有关 Apache 和 Perl/PHP 入门的指导。

回答by CountCet

I installed ubuntu 8.10 in a virtual machine on my Vista 64-bit laptop. I attempted the install with Virtual PC, VM Ware and Virtual Box from SUN. Virtual Box was the only vm software that I was successful with from the start. In the setup you choose that you are installing linux as your guest OS and everything works without spending your evening sifting through blogs trying to get install to work.

我在 Vista 64 位笔记本电脑的虚拟机中安装了 ubuntu 8.10。我尝试使用 SUN 的 Virtual PC、VM Ware 和 Virtual Box 进行安装。Virtual Box 是我从一开始就成功的唯一虚拟机软件。在设置中,您选择将 linux 安装为您的来宾操作系统,并且一切正常,而无需花费您晚上的时间来筛选博客试图让安装工作。

回答by easel

Firstly, if your goal is to learn LAMP development, I'd start by just downloading the WAMP stack for windows from http://www.wampserver.com/en/or one of it's competitors. The "Linux" part of LAMP programming isn't likely to be a major part of your learning experience. Avoiding running a VM will be much less resource intense on your development workstation and avoid having issues with suspend/resume and disk IO contention.

首先,如果您的目标是学习 LAMP 开发,我会首先从http://www.wampserver.com/en/或其竞争对手之一下载适用于 Windows 的 WAMP 堆栈。LAMP 编程的“Linux”部分不太可能成为您学习体验的主要部分。避免在您的开发工作站上运行虚拟机将减少资源密集度,并避免出现挂起/恢复和磁盘 IO 争用问题。

Secondly, any linux should work, under virtualbox or msvpc. All the modern desktop virtualization systems emulate a full system, so it's just a matter of configuration and getting the right drivers. Like others said, virtualbox is more open source friendly so give that a shot.

其次,任何 linux 都可以在 virtualbox 或 msvpc 下工作。所有现代桌面虚拟化系统都模拟一个完整的系统,所以这只是配置和获得正确驱动程序的问题。就像其他人说的那样,virtualbox 对开源更友好,所以试一试。

Finally, I don't usually run X on my development VM's, since it just eats unnecessary resources. Just use putty on the host and ssh in to a VM running in console mode.

最后,我通常不会在我的开发 VM 上运行 X,因为它只会消耗不必要的资源。只需在主机上使用 putty 并通过 ssh 连接到以控制台模式运行的 VM。

Not entirely the answer to your question, but I think it attacks your goal more directly.

不完全是你问题的答案,但我认为它更直接地攻击你的目标。

回答by runako

If you're not wedded to VPC, a quick way to start might be to download the free VMWare Player at

如果您不喜欢 VPC,一个快速入门的方法可能是下载免费的 VMWare Player,网址为

http://vmware.com/products/player/

http://vmware.com/products/player/

and then you can try any of many, many distros prepackaged for VMWare here:

然后您可以在此处尝试为 VMWare 预打包的许多发行版中的任何一个:

http://vmware.com/appliances/directory/cat/508

http://vmware.com/appliances/directory/cat/508

The appliances at the second link should work out of box, so you don't have to fiddle with X conf files, which is probably not the topic of your research. As a bonus, you may be exposed to distros you normally wouldn't know about.

第二个链接中的设备应该是开箱即用的,因此您不必摆弄 X conf 文件,这可能不是您研究的主题。作为奖励,您可能会接触到您通常不知道的发行版。

Edit: Here's an appliance with Ubuntu 8.10:

编辑:这是一个带有 Ubuntu 8.10 的设备:

http://www.vmware.com/appliances/directory/54735

http://www.vmware.com/appliances/directory/54735

回答by Jason Baker

This is largely a matter of preference. As has been mentioned, Ubuntu is a good choice. I tend to prefer debianas it is a bit less cutting edge (and therefor more stable). But it's not as easy a platform to learn as Ubuntu.

这在很大程度上是一个偏好问题。如前所述,Ubuntu 是一个不错的选择。我倾向于更喜欢debian,因为它的前沿性稍差(因此更稳定)。但它不像 Ubuntu 那样容易学习。

As has also been pointed out, I would recommend VirtualBox as Virtual PC doesn't support non-MS operating systems.

也有人指出,我会推荐 VirtualBox,因为 Virtual PC 不支持非 MS 操作系统。

回答by John Gietzen

I use Ubuntu 8.10 and Mono.

我使用 Ubuntu 8.10 和 Mono。

However, to get the graphics to work properly, you need the

但是,要使图形正常工作,您需要

noreplace-paravirt

kernel parameter.

内核参数。

回答by dagorym

I use Scientific Linux 5.2 (which is just a rebranded RedHat Enterprise Linux 5.2) and it works fine. I also have had success with many flavors of Ubuntu. I run all of my machines under VMWare Server and have successfully used them with both the 1.0.x versions and the 2.0.x versions of VMWare server.

我使用 Scientific Linux 5.2(它只是一个更名的 RedHat Enterprise Linux 5.2)并且它运行良好。我也成功使用了许多版本的 Ubuntu。我在 VMWare 服务器下运行我的所有机器,并且成功地将它们用于 1.0.x 版本和 2.0.x 版本的 VMWare 服务器。

回答by florin

Does it have to be Microsoft Virtual PC? Virtual Boxis much more open-source friendly and I used it with no problems to display higher resolutions of the guest OS.

它必须是 Microsoft Virtual PC 吗? Virtual Box对开源更加友好,我使用它可以毫无问题地显示客户操作系统的更高分辨率。

回答by florin

Check Bitnami stacks. They are ISO live disks images. You just need to attach the iso to the boot cd of the vistual machine. There is a LAMP stack based on Ubuntu. If you like how it works, there is an option to install to a virtual disk.

检查 Bitnami 堆栈。它们是 ISO 实时磁盘映像。您只需要将iso 附加到visual 机器的引导CD。有一个基于 Ubuntu 的 LAMP 堆栈。如果您喜欢它的工作方式,可以选择安装到虚拟磁盘。

回答by Colin

I was able to get VMWare Server (free) to work fine with Ubuntu without much hassle (display, etc works out of the box). Install VMWare tools on the VM (they make it for linux) and you'll get a more seamless experience. My specific configuration:

我能够让 VMWare Server(免费)与 Ubuntu 一起正常工作,没有太多麻烦(显示等开箱即用)。在 VM 上安装 VMWare 工具(它们用于 linux),您将获得更无缝的体验。我的具体配置:

  • VMWare Server 2.0
  • Host OS: Windows XP Pro, SP 3
  • Guest OS: KUbuntu 0804
  • 虚拟机服务器 2.0
  • 主机操作系统:Windows XP Pro,SP 3
  • 来宾操作系统:KUbuntu 0804