lighttpd

維基百科,自由的百科全書
跳至導覽 跳至搜尋

lighttpd
File:Lighttpd logo.svg
開發者揚·克內施克英語Jan Kneschke
首次釋出2003年3月 (2003-03)
目前版本1.4.67(2022年9月17日,​3年前​(2022-09-17
原始碼庫
  • {{URL|example.com|可选的显示文本}}
Module:EditAtWikidata第29行Lua錯誤:attempt to index field 'wikibase' (a nil value)
程式語言C語言
引擎
    Module:EditAtWikidata第29行Lua錯誤:attempt to index field 'wikibase' (a nil value)
    作業系統跨平台
    語言英文
    類型網頁伺服器
    授權條款BSD授權條款
    網站www.lighttpd.net

    lighttpd(讀作lighty)[1] 是一款以BSD授權條款開源網頁伺服器,在確保相容常見標準、安全性及靈活性的情況下專為需要處理速度的環境最佳化。此軟體起初為揚·克內施克對c10k問題英語c10k problem(如何同時並列處理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][15][16][17]

    作業系統支援[編輯]

    lighttpd至少為下列平台定期構建和釋出:

    參考文獻[編輯]

    1. ^ lighttpd fly light. [2010-06-13]. (原始內容存檔於2006-07-07). all of these describe lighttpd (pron. lighty) .
    2. ^ Powered By lighttpd. lighttpd wiki. [22 December 2008]. (原始內容存檔於2006-10-08). 
    3. ^ Web Server Performance Comparison. [15 March 2012]. (原始內容存檔於2016-06-05). .
    4. ^ Gabriel Kerneis and Juliusz Chroboczek. Are events fast?頁面存檔備份,存於網際網路檔案館). PPS technical report, University of Paris 7. 2009.
    5. ^ Downloads @ WLMP Project. [2011-03-27]. (原始內容存檔於2011-03-24). 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]. (原始內容存檔於2012-06-29). 
    9. ^ lighttpd releases. lighttpd.net. [20 June 2010]. (原始內容存檔於2019-09-09). 
    10. ^ Memory usage increases when proxy+ssl+large file. lighttpd bug tracker. [2011-04-11]. (原始內容存檔於2011-04-20). 
    11. ^ lighty should buffer responses (after it grows above certain size) on disk. lighttpd bug tracker. [2016-07-16]. (原始內容存檔於2016-07-23). 
    12. ^ lighttpd Web Server Usage. WebTechster. [2014-03-26]. (原始內容存檔於2019-04-23). 
    13. ^ Fly Light With lighttpd Web Server. ServerWatch. [2008-02-12]. (原始內容存檔於2014-03-31). 
    14. ^ Brion Vibber. Apache mod_php in wikipedia. Wikimedia wikitech-l mailing list. 2008-08-26 [2008-08-27]. (原始內容存檔於2019-04-23). 
    15. ^ Tim Starling. Apache mod_php in wikipedia. Wikimedia wikitech-l mailing list. 2008-08-27 [2008-08-27]. (原始內容存檔於2019-04-23). 
    16. ^ Domas Mitzuas. Apache mod_php in wikipedia. Wikimedia wikitech-l mailing list. 2008-08-27 [2008-08-27]. (原始內容存檔於2019-04-23). 
    17. ^ 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. 

    另請參閱[編輯]

    延伸閱讀[編輯]

    外部連結[編輯]