简体   繁体   English

我应该安装什么Web服务器?

[英]What web server should I install?

I have Windows 7 Enterprise and I want to run a web server on this computer and I wander what is the best web server would be in my case. 我有Windows 7企业版,我想在这台计算机上运行一个Web服务器,我想在我的情况下最好的Web服务器。 I have several requirements to the web server. 我对Web服务器有几个要求。

  1. It should be easy to install and set up the server. 应该很容易安装和设置服务器。 Just "click", "accept" and that's it. 只需“点击”,“接受”即可。

  2. It should support MySQL and PHP (with GET, POST, SESSION, and cookies). 它应该支持MySQL和PHP(使用GET,POST,SESSION和cookie)。

  3. I want to be able to install the server from CD or memory stick. 我希望能够从CD或记忆棒安装服务器。 In other words, I want to be able to download something on my CD and than use this CD to install the web server. 换句话说,我希望能够在我的CD上下载某些内容,而不是使用此CD来安装Web服务器。

  4. The server (software) should not occupy a lot of memory. 服务器(软件)不应占用大量内存。

  5. It should be possible to install the web server on Linux, Windows and MAC. 应该可以在Linux,Windows和MAC上安装Web服务器。

Install Z-WAMP . 安装Z-WAMP It has the latest versions of Apache, MySQL and PHP (with APC and phyMyAdmin). 它有最新版本的Apache,MySQL和PHP(带APC和phyMyAdmin)。 It's also portable so you can have it installed on a mem stick. 它也是便携式的,所以你可以把它安装在记忆棒上。

XAMPP安装和使用非常简单。

Quoting: 引用:

Zend Server Community Edition is a fast and reliable PHP application stack. Zend Server Community Edition是一个快速可靠的PHP应用程序堆栈。 It is completely free, and you can use it in development, testing and production. 它是完全免费的,您可以在开发,测试和生产中使用它。

Further: 进一步:

Eliminate wasted time spent on putting together your PHP stack piece by piece. 消除浪费在拼凑PHP堆栈上花费的时间。 Zend Server Community Edition includes everything you need, whether you're using Windows, Linux or Mac OS X. The simple, native installers will set you up in minutes with: 无论您使用的是Windows,Linux还是Mac OS X,Zend Server Community Edition都包含您需要的一切。简单的本机安装程序将在几分钟内为您安排:

  • Bytecode accelerator (Optimizer+) 字节码加速器(优化器+)
  • Zend Data Cache Zend数据缓存
  • A certified PHP distribution 经过认证的PHP发行版
  • Zend Framework Zend框架
  • Apache (or IIS integration) Apache(或IIS集成)
  • MySQL (on Windows and Mac OS X) MySQL(在Windows和Mac OS X上)
  • Out-of-the-box connectivity to all common databases 与所有常见数据库的开箱即用连接
  • Java code connectivity Java代码连接
  • Web-based PHP administrator console 基于Web的PHP管理员控制台

不太确定这是不是你的意思,但看看AppServ它会为你安装一个安装文件的Apache,PHP和MySQL。

If you combine requirement 1, 3 and 5 you make it extremely difficult. 如果将要求1,3和5结合起来,那就太难了。

There is not just one package that you can install on boot *nix and windows. 您可以在boot * nix和windows上安装一个软件包。 Simply because they use a different Operating System with other drive mappings, libraries, etc. 仅仅因为他们使用不同的操作系统与其他驱动器映射,库等。

But for Windows I recommend one of the XAMP/WAMP implementation (I'm not a Windows User). 但对于Windows,我推荐一个XAMP / WAMP实现(我不是Windows用户)。 For Mac there is MAMP. 对于Mac,有MAMP。 On other *nix based systems I always used predefined packages or a manualy compiled amount of packages which does not meet your requirements. 在其他基于* nix的系统上,我总是使用预定义的软件包或不符合您要求的手工编译的软件包数量。

Latest OSX has buildin PHP and Apache. 最新的OSX已经构建了PHP和Apache。 You only have to enable Apache in your system pref panel. 您只需在系统首选面板中启用Apache。 MySQL can be installed. 可以安装MySQL。

It's also possible to use XAMPP for osx. 也可以将XAMPP用于osx。 Can be installed from CD 可以从CD安装

As for Windows you can use WAMP or XAMPP . 对于Windows,您可以使用WAMPXAMPP This package includes Apache, PHP and MySQL. 该软件包包括Apache,PHP和MySQL。 Can be installed from CD. 可以从CD安装。

Most Linux distro's have apache build in. And it's easy to configure PHP and MySQL for it. 大多数Linux发行版都内置了apache。而且很容易为它配置PHP和MySQL。 You can also use XAMPP for linux: 你也可以使用XAMPP for linux:

LAMP for linux 适用于Linux的LAMP
XAMPP for mac XAMPP for mac
and WAMP for win 和WAMP获胜
Different gui almost the same thing easy to setup and configure. 不同的gui几乎相同的东西易于设置和配置。

The big advantages with WAMP are that you can easily switch PHP/Apache/MySQL version and toggle PHP settings + extensions, directly from the taskbar. WAMP的最大优点是您可以直接从任务栏轻松切换PHP / Apache / MySQL版本并切换PHP设置+扩展。

That's why I'm using it. 这就是我使用它的原因。

Note: Even though you can't download the latest PHP version from their site, it's very easy to install it yourself . 注意:即使您无法从其站点下载最新的PHP版本, 也可以自行安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM