lighttpd

網路伺服器

lighttpd(读作lighty)[2] 是一款以BSD許可證开源網頁伺服器,在确保兼容常见标准、安全性及灵活性的情况下专为需要处理速度的环境优化。此软件起初为扬·克内施克对c10k问题英语c10k problem(如何同时并行处理10000条连接的问题)的概念验证,但随后受到了大众欢迎。[3]其名称是“light”(轻量)与httpd混成詞。相較於其他的網頁伺服器,lighttpd僅需少量的内存及CPU資源即可達到同樣的效能。

lighttpd
開發者扬·克内施克英语Jan Kneschke
首次发布2003年3月 (2003-03)
当前版本
  • 1.4.76 (2024年4月12日;穩定版本)[1]
編輯維基數據鏈接
源代码库 編輯維基數據鏈接
编程语言C语言
操作系统跨平台
语言英文
类型網頁伺服器
许可协议BSD许可证
网站www.lighttpd.net

前言 编辑

相比其他网页服务器软件而言,lighttpd的低内存占用、[4]CPU负载及速度优化[5]使其成为负载过重或提供静态媒体服务器的合适之选。lighttpd是一款自由及开放源代码软件,以BSD许可证发布。它可原生运行在类Unix系统操作系统及Microsoft Windows上。[6]

应用程序支持 编辑

lighttpd支持向外部程序开放FastCGISCGICGI,允许以任意编程语言编写的程序与服务器通信。 PHP作为一门特别流行的语言,其性能受到了广泛关注。lighttpd的FastCGI可配置为使用操作码缓存的方式来有效支持PHP(如Alternative PHP Cache)除此之外,lighttpd还获得了PythonPerlRubyLua社区的关注。lighttpd还支持WebDNA和弹性内存数据库系统。此软件是一款流行的、支持CatalystRuby on Rails网页框架的网页服务器,但并不支持ISAPI

特性 编辑

局限性 编辑

  • 低于1.4.40以下的版本不官方支持从CGI、FastCGI或代理发送大文件,[11]除非使用X-Sendfile。此问题已于lighttpd 1.4.40版中解决。[12]
  • 不支持SPDY或HTTP/2。此問題已於lighttpd 1.4.56版中解決。

用法 编辑

lighttpd被多个业务量极大的网站使用,如Bloglinesxkcd[13]在过去,MeeboYouTube也曾使用lighttpd。[14] 维基媒体基金会也在服务器上运行lighttpd。[15][16][17][18]

操作系统支持 编辑

lighttpd至少为下列平台定期构建和发布:

参考文献 编辑

  1. ^ 1.4.76. 2024年4月12日 [2024年4月12日]. 
  2. ^ lighttpd fly light. [2010-06-13]. (原始内容存档于2006-07-07). all of these describe lighttpd (pron. lighty) .
  3. ^ Powered By lighttpd. lighttpd wiki. [22 December 2008]. (原始内容存档于2006-10-08). 
  4. ^ Web Server Performance Comparison. [15 March 2012]. (原始内容存档于2016-06-05). .
  5. ^ Gabriel Kerneis and Juliusz Chroboczek. Are events fast?页面存档备份,存于互联网档案馆). PPS technical report, University of Paris 7. 2009.
  6. ^ Downloads @ WLMP Project. [2011-03-27]. (原始内容存档于2011-03-24). LightTPD webserver for Windows Systems .
  7. ^ Gammo, Louay; Brecht, Tim; Shukla, Amol; Pariag, David. Comparing and Evaluating epoll, select, and poll Event Mechanisms. Linux Symposium. University of Waterloo: 215. 2004.  |volume=被忽略 (帮助);
  8. ^ lighttpd - Bug #1101: SSI include virtual does not run cgi页面存档备份,存于互联网档案馆) – lighty labs
  9. ^ 存档副本. [2019-04-23]. (原始内容存档于2012-06-29). 
  10. ^ lighttpd releases. lighttpd.net. [20 June 2010]. (原始内容存档于2019-09-09). 
  11. ^ Memory usage increases when proxy+ssl+large file. lighttpd bug tracker. [2011-04-11]. (原始内容存档于2011-04-20). 
  12. ^ lighty should buffer responses (after it grows above certain size) on disk. lighttpd bug tracker. [2016-07-16]. (原始内容存档于2016-07-23). 
  13. ^ lighttpd Web Server Usage. WebTechster. [2014-03-26]. (原始内容存档于2019-04-23). 
  14. ^ Fly Light With lighttpd Web Server. ServerWatch. [2008-02-12]. (原始内容存档于2014-03-31). 
  15. ^ Brion Vibber. Apache mod_php in wikipedia. Wikimedia wikitech-l mailing list. 2008-08-26 [2008-08-27]. (原始内容存档于2019-04-23). 
  16. ^ Tim Starling. Apache mod_php in wikipedia. Wikimedia wikitech-l mailing list. 2008-08-27 [2008-08-27]. (原始内容存档于2019-04-23). 
  17. ^ Domas Mitzuas. Apache mod_php in wikipedia. Wikimedia wikitech-l mailing list. 2008-08-27 [2008-08-27]. (原始内容存档于2019-04-23). 
  18. ^ Powered by lighttpd. The official site. 2007-04-04 [2008-12-22]. (原始内容存档于2018-06-27). lighttpd is used by many well-known sites. The typical scenario is using lighttpd as off-load server to push out static content and leave the complex work to another server. 

另请参阅 编辑

延伸阅读 编辑

外部連結 编辑