几种Web服务器比较 (Apache、IIS、Lighttpd、Nginx、LiteSpeed、Zeus) <转>

注意到有这款服务器nginx。没听过,一查有了下文。其中有一个还是听过的。对照翻译了下文。

ApacheandIISarethemostcommonwebserversinusetoday,buttheyarefarfromalone.Thereisahugeamountofwebserversoftwareoutthere,bothfreeandcommercial.

到目前,Apache和IIS是用的最为普遍的Web服务器,但是它们太过单一,在此之外这里还有许多Web服务器软件,或是免费的或是商业的。

Inthisarticlewepresentfourpopularalternativewebservers:Lighttpd,Nginx,LiteSpeedandZeus.Thefirsttwoarefreeandopensourcewhiletheothertwoarecommercial,closed-sourcealternatives.Whattheyallhaveincommonisthattheyfocusonhighperformance.

本文我们介绍四种最受欢迎的Web服务器:Lighttpd,Nginx,LiteSpeed和Zeus。前两个都是免费且开源的,而另两种都是商业的,闭源的。它们的共同点在于都着重于高性能上。

Wewillalsotakealookathowmanywebsitesareactuallyusingthesewebservers.

我们看看有多少网站实际上在使用它们。

Butfirstabriefpresentationofeachofone:

首先一个简短的介绍其中之一:

Lighttpd

Brief info: Pronounced “Lighty”, Lighttpd is as the name implies a small, lightweight web server which has a low memory footprint and light CPU load. Lighttpd is a good alternative to serve static content but it has also gained recognition in the Ruby on Rails and PHP communities.

Lighttpd 的名称暗示小,轻量级web服务器,占用内存小且cpu负荷低。Lighttpd 是服务于静态内容的不错选择。然而它更被公认为是用在Ruby 和 PHP 上。

Usedby:Wikimedia(Wikipedia),Sourceforge,YouTube,ThePirateBay,Meebo,Imageshack,Sendspace,Mininova.

Cost:Free

OpenSource:Yes

OSplatforms:Linux,freeBSD,Solaris,MacOSX,Windows(underCygwin)

Homepage:http://www.oschina.net/p/lighttpd

Nginx

Brief info: Pronounced “engine X”, Nginx is a lightweight web server and reverse proxy. originally written by Igor Sysoev for Rambler.ru (Russia’s second most visited website). Nginx is known for stability and simple configuration in addition to its low resource consumption. It can also act as an IMAP/POP3 proxy.

Nginx 是一款轻量级web服务器和反向代理。最初由Igor Sysoev 编写。它的出名在于其稳定性和简单的配置,除此之外低资源消耗。 还有它可以作为IMAP/POP3协议。

Usedby:YellowPages,Hulu,Zimbra,theFriendsforSaleFacebookapp,Rambler,anditalsoseemsthatWordpress.comjuststartedusingitinsteadofLiteSpeed.

Cost:Free

OpenSource:Yes

OSplatforms:Linux,FreeBSD,Solaris,MacOSX

Homepage:http://www.oschina.net/p/nginx

LiteSpeed

Brief info: LiteSpeed is a commercial web server designed specifically for large websites. One of LiteSpeed’s advantages is that it can read Apache configurations directly which makes it easy to integrate with existing products to replace Apache. The server is lightweight and as the name implies very fast.

LiteSpeed 一种被特别设计用作大型网站的商业web服务器。 其中一个优势就是它能直接读取Apache 的配置信息。并轻易将它现有的产品结合在一起来代替Apache 。这种服务器是轻量级的就如它的名字暗示出非常快。

Usedby:Wordpress(untilrecentlyatleast,butnowWordpress.comappearstobeusingnginx),Twitter,GigaOm,Bravenet.

Cost:Freeto$1,299dependingontheedition.

OpenSource:No

OSplatforms:Linux,FreeBSD,Solaris,MacOSX

Homepage:http://www.ruanku.com/p/litespeedtech-web-server

Zeus

Brief info: Zeus web server is a high performance web server. It has received PC Magazine Editors’ Choice award and also the eWeek/PC Magazine Innovation in Infrastructure award. Zeus is a highly flexible enterprise product.

Zeus web server 是一个高性能的web服务器。它曾被PC Magazine Editors’ Choice 授过奖并且eWeek/PC Magazine Innovation 也授予过它奖项。Zeus 是一种高度灵活的企业产品。

Usedby:Sony,Telefónica,Virginmedia,phpBB.

Cost:$1,700uptotwophysicalCPUs;$850peradditionalCPU.

OpenSource:No

OSplatforms:Linux,FreeBSD,Solaris,HP-UX

Homepage:http://www.ruanku.com/p/zeus-web-server

How many websites are using these web servers?

According to Netcraft, Lighttpd is currently the most common of these four web servers. On April 1, the numbers of websites for each were as follows:

有多少网站在使用它们?

根据Netcraft统计,Lighttpd是当前这四种服务器中最普遍的。在4月1日统计到的网站数字。

Lighttpd:1,495,308

Nginx:1,018,503

LiteSpeed:668,030

Zeus:420,477

Thesepositionswerenotalwaysthesame,though.Asyoucanseebythefollowinggraph,whichshowsthenumbersfromJanuary2006toApril2008,thesituationhaschangedsignificantlyovertime.

然而这个形势并不一直是一样的。通过下图你可以看到从2006年1月到2008年4月,形势随着时间而改变着。

The graph is based on data from Netcraft (their web server survey archives).

ThehugeleapforLighttpdinJanuary-Marchof2007ismostlikelyduetooneormorewebhostingordomainregistrationcompaniesswitchingovertoLighttpdeitherfortheirregularpages,orforparkedpages,orboth.Ifanyoneknowswhathappenedthereinmoredetail,pleasefeelfreetoletusknowinthecomments.

2007年1月到3月,很可能归咎于一个或多个web服务商或域名注册公司转变使用Lighttpd。发生了什么如果有人知道的更详细些……

Interestingly,thenumberofserversusingtheZeuswebserverhasremainedquiteconstantoverthelasttwoyears,andevendecreasedalittle.Thatsaid,itismainlyanenterprisesolution,sothisisperhapsnotsosurprising.

非常有趣的是,过去两年使用Zeus作为服务器的数量维持在一个非常恒定的状态。而且减少了一点点。可以说,它主要是针对企业解决方案。所以从这点上是不值得惊讶的。

ThetwowebserversthathavebeengrowingthefastestlatelyareNginxandLiteSpeed.Nginxrecentlypassedtheone-million-websitesmark.

Nginx和LiteSpeed这两种服务器增长速度很快。近来Nginx已经超过了一百万个站点

ThesenumbersofcoursestillpalenexttoApache’sroughly83millionwebsites,butthereisnodoubtthatthesealternativewebserversaregaininginpopularity.Whoknows,oneofthemmaybejustrightforyou?

当然这些数字对于Apache的大概8300万来说不值一提。但仍无置疑的是这些可供选择的服务器越来越受欢迎。有谁知道,其中之一很可能是非常适合你的?

相关推荐