开发者 | 扬·克内施克 |
---|---|
首次发布 | 2003年3月 |
稳定版本 | 1.4.67 (2022年9月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支持向外部程序开放FastCGI、SCGI及CGI,允许以任意编程语言编写的程序与服务器通信。 PHP作为一门特别流行的语言,其性能受到了广泛关注。lighttpd的FastCGI可配置为使用操作码缓存的方式来有效支持PHP(如Alternative PHP Cache)除此之外,lighttpd还获得了Python、Perl、Ruby和Lua社区的关注。lighttpd还支持WebDNA和弹性内存数据库系统。此软件是一款流行的、支持Catalyst和Ruby on Rails网页框架的网页服务器,但并不支持ISAPI。
特性
- 支持负载均衡、FastCGI、SCGI及HTTP代理服务器
- 支持
chroot
- 网页服务器事件机制性能优化 –
select()
、poll()
及epoll()
[6] - 支持更高效的事件通知
- 支持URL条件重写(mod_rewrite)
- 通过OpenSSL可提供支持SNI的TLS/SSL
- 透过LDAP服务器认证
- RRDtool状态输出
- 基于规则的下载
- 服务器端内嵌支持(不包括服务侧CGI)[7]
- 灵活的虚拟主机
- 模块支持
- 缓存元语言(现已被mod_magnet替代)[8] using the Lua programming language
- 对WebDAV最小支持
- Servlet(AJP)支持(1.5.x版后)
- 使用mod_compress及新版mod_deflate(1.4.42)的HTTP压缩
- 软件轻量(小于1MB)[9]
- 仅有若干线程的单进程设计。开始每条连接时不产生新进程或新线程。
局限性
- 低于1.4.40以下的版本不官方支持从CGI、FastCGI或代理发送大文件,[10]除非使用X-Sendfile。此问题已于lighttpd 1.4.40版中解决。[11]
- 不支持SPDY或HTTP/2。此问题已于lighttpd 1.4.56版中解决。
用法
lighttpd被多个业务量极大的网站使用,如Bloglines和xkcd。[12]在过去,Meebo和YouTube也曾使用lighttpd。[13] 维基媒体基金会也在服务器上运行lighttpd。[14]
操作系统支持
lighttpd至少为下列平台定期构建和发布:
- Linux(在Fedora Core、SuSE、OpenSUSE、Debian、Ubuntu、Gentoo、PLD-Linux、OpenWRT等发行版中可直接使用包包)
- 源代码安装(CentOS等)
- BSD(FreeBSD、NetBSD、OpenBSD)
- Mac OS X
- IRIX
- Windows(Cygwin、MinGW等)
- Solaris
- AIX
参考文献
- ↑ lighttpd fly light. [2010-06-13].
all of these describe lighttpd (pron. lighty)
. - ↑ Powered By lighttpd. lighttpd wiki. [22 December 2008].
- ↑ Web Server Performance Comparison. [15 March 2012]..
- ↑ Gabriel Kerneis and Juliusz Chroboczek. Are events fast? . PPS technical report, University of Paris 7. 2009.
- ↑ Downloads @ WLMP Project. [2011-03-27].
LightTPD webserver for Windows Systems
. - ↑ 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=
被忽略 (帮助); - ↑ lighttpd - Bug #1101: SSI include virtual does not run cgi – lighty labs
- ↑ 存档副本. [2019-04-23].
- ↑ lighttpd releases. lighttpd.net. [20 June 2010].
- ↑ Memory usage increases when proxy+ssl+large file. lighttpd bug tracker. [2011-04-11].
- ↑ lighty should buffer responses (after it grows above certain size) on disk. lighttpd bug tracker. [2016-07-16].
- ↑ lighttpd Web Server Usage. WebTechster. [2014-03-26].
- ↑ Fly Light With lighttpd Web Server. ServerWatch. [2008-02-12].
- ↑ 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.
另请参阅
延伸阅读
- Bogus, Andre. lighttpd 1st. Packt Publishing. October 29, 2008: 236 [2019-04-23]. ISBN 978-1847192103.
外部链接
- lighttpd forum,lighttpd的论坛。
- lighty's life ,lighttpd的博客。
- [1] , Open Source China 的介绍