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. 

另請參閱 編輯

延伸閱讀 編輯

外部連結 編輯