tar -xzvf lighttpd-1.4.8.tar.gz
mv lighttpd-1.4.8 /usr/local/lighttpd
./configure --prefix=/usr/local/lighttpd
make
make install
cd /usr/local/lighttpd
mkdir conf
cp doc/lighttpd.conf /usr/local/lighttpd/conf/
vi conf/lighttpd.conf #修改配置文件
sbin/lighttpd -f conf/lighttpd.conf #后台启动运行