lighttpd

本页使用了标题或全文手工转换,现处于中国大陆简体模式
本页使用了标题手工转换,涉及首字符小写
求闻百科,共笔求闻
lighttpd
开发者扬·克内施克
首次发布2003年3月 (2003-03)
稳定版本
1.4.67
(2022年9月17日,​20个月前​(2022-09-17
编程语言C语言
操作系统跨平台
语言英文
类型网页服务器
许可协议BSD许可证
网站www.lighttpd.net

lighttpd(读作lighty)[1] 是一款以BSD许可证开源网页服务器,在确保兼容常见标准、安全性及灵活性的情况下专为需要处理速度的环境优化。此软件起初为扬·克内施克对c10k问题(如何同时并行处理10000条连接的问题)的概念验证,但随后受到了大众欢迎。[2]其名称是“light”(轻量)与httpd混成词。相较于其他的网页服务器,lighttpd仅需少量的内存及CPU资源即可达到同样的性能。

前言

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

应用程序支持

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

特性

局限性

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

用法

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

操作系统支持

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

参考文献

  1. lighttpd fly light. [2010-06-13]. all of these describe lighttpd (pron. lighty) .
  2. Powered By lighttpd. lighttpd wiki. [22 December 2008]. 
  3. Web Server Performance Comparison. [15 March 2012]. .
  4. Gabriel Kerneis and Juliusz Chroboczek. Are events fast? . PPS technical report, University of Paris 7. 2009.
  5. Downloads @ WLMP Project. [2011-03-27]. LightTPD webserver for Windows Systems .
  6. 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=被忽略 (帮助);
  7. lighttpd - Bug #1101: SSI include virtual does not run cgi – lighty labs
  8. 存档副本. [2019-04-23]. 
  9. lighttpd releases. lighttpd.net. [20 June 2010]. 
  10. Memory usage increases when proxy+ssl+large file. lighttpd bug tracker. [2011-04-11]. 
  11. lighty should buffer responses (after it grows above certain size) on disk. lighttpd bug tracker. [2016-07-16]. 
  12. lighttpd Web Server Usage. WebTechster. [2014-03-26]. 
  13. Fly Light With lighttpd Web Server. ServerWatch. [2008-02-12]. 
  14. Powered by lighttpd. The official site. 2007-04-04 [2008-12-22]. 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. 

另请参阅

延伸阅读

外部链接