一.安装lighttpd所需的库文件
1.安装 pcre
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.gz
tar -zxvf pcre-8.10.tar.gz
cd pcre-8.10
./configure
make
make install
2.安装zlib
wget http://zlib.net/zlib-1.2.5.tar.gz
tar -zxvf zlib-1.2.5.tar.gz
cd zlib-1.2.5
./configure
make
make install
3.安装bzip2
wget http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz
cd bzip2-1.0.5
make
make install
二.安装lighttpd
1.下载lighttpd
wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.28.tar.gz[......]