各种服务器的比较:
� Software – 哪种 web 服务器
o Name
o Version
o Released – 什么时候发布的
o Active devel - 是否当前还在开发中。
� Features –一些关键服务器的特点
o Model - what kind of server it is. The models are:
▪ fork - start a new process for each request.
▪ pre-fork - pre-start a pool of processes which each handle multiple
requests.
▪ threads - use threads instead of processes.
▪ Java threads - this version of the Java runtime uses "Green threads"
instead of native threads, so it acts more like the select-based servers.
▪ select - use non-blocking I/O and the select() system call to handle
multiple requests in a single process, single thread.
从上面可以看到 thttpd、boa 都是使用 select 方式,apache 使用的是
pre-fork 方式,由于 apache 是多进程方式,thttpd、boa 是单进程方式,
所使用的内存要远小于 apache,且速度快于 apache。
o Auto-conf (自动配置)- whether there's a script to automatically configure the
build process for your OS.
o Basic auth (基本认证)- whether the server supports Basic Authentication, for
password-protected web pages.
o Chroot - whether the server lets you use the chroot() system call to enhance