下载地址:https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.53.tar.gz
若服务器可以访问网络,则可以直接在服务器上使用wget命令下载源码。
1 | cd /home |
1 | wget https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.53.tar.gz --no-check-certificate |
1 | cd /home/ |
1 | tar -zxvf lighttpd-1.4.53.tar.gz |
1 | cd /home/lighttpd-1.4.53/ |
1 | ./configure --prefix=/usr/local/lighttpd --with-fam |
1 | make -j60 && make install |
1 | cd /usr/local/lighttpd/ && mkdir log webpages cache config |
Lighttpd安装后的安装路径下只有三个文件夹lib,sbin和share,其他文件需要自己拷贝和创建。
1 | cp /home/lighttpd-1.4.53/doc/config/lighttpd.conf /usr/local/lighttpd/config |
1 | cp /home/lighttpd-1.4.53/doc/config/modules.conf /usr/local/lighttpd/config |
1 | cp -r /home/lighttpd-1.4.53/doc/config/conf.d /usr/local/lighttpd/config |
1 | ls /usr/local/lighttpd
|