Thttpd

来自开放百科 - 灰狐
2013年1月28日 (一) 05:52Allen (讨论 | 贡献)的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到: 导航, 搜索
Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Thttpd Thanks, Wikipedia.

目录

thttpd简介

thttpd是一个非常小巧的轻量级web server,它非常非常简单,仅仅提供了HTTP/1.1和简单的CGI支持,在其官方网站上有一个与其他web server(如Apache, Zeus等)的对比图+Benchmark,可以参考参考。此外,thttpd 也类似于lighttpd,对于并发请求不使用fork()来派生子进程处理,而是采用多路复用(Multiplex)技术来实现。因此效能很好。

thttpd支持多种平台,如FreeBSD, SunOS, Solaris, BSD, Linux, OSF等。对于小型web server而言,速度快似乎是一个代名词,通过官方站提供的Benchmark,可以这样认为:thttpd至少和主流的web server一样快,在高负载下更快,因为其资源占用小的缘故。

thttpd还有一个较为引人注目的特点:基于URL的文件流量限制,这对于下载的流量控制而言是非常方便的。象Apache就必须使用插件实现,效率较thttpd低。

基本特色

Web Server Comparisons
  • Simple: It handles only the minimum necessary to implement HTTP/1.1. Well, maybe a little more than the minimum.
  • Small: See the comparison chart. It also has a very small run-time size, since it does not fork and is very careful about memory allocation.
  • Portable: It compiles cleanly on most any Unix-like OS, specifically including FreeBSD, SunOS 4, Solaris 2, BSD/OS, Linux, OSF.
  • Fast: In typical use it's about as fast as the best full-featured servers (Apache, NCSA, Netscape). Under extreme load it's much faster.
  • Secure: It goes to great lengths to protect the web server machine against attacks and breakins from other sites.

安装指南

wget http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz
tar zxvf thttpd-2.25b.tar.gz
cd thttpd-2.25b
./configure
make
addgroup www // 需创建 www 组
make install 
/usr/local/bin/thttpd 
http://localhost/ :)

相关链接

精彩图片

Thttpd powered 1.gif Thttpd powered 2.gif

成功应用

Comment-32x32.png

<discussion>characters_max=300</discussion>

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱