怎样安装轻量级服务器Lighttpd

2019年3月19日 | 分类: 【技术】

尚未实证。

【介绍】

Lighttpd 是一款开源 Web 服务器软件。Lighttpd 安全快速,符合行业标准,适配性强并且针对高配置环境进行了优化。相对于其它的 Web 服务器而言,Lighttpd 占用内存更少;因其对 CPU 占用小和对处理速度的优化而在效率和速度方面从众多 Web 服务器中脱颖而出。而 Lighttpd 诸如 FastCGI、CGI、认证、输出压缩、URL 重写等高级功能更是那些面临性能压力的服务器的福音。

【安装(yum)】

参考:https://www.cnblogs.com/linuxprobe/p/5664176.html

由于 CentOS 7.0 官方仓库中并没有提供 Lighttpd,所以需要在系统中安装额外的软件源 epel 仓库。

yum install epel-release
yum update
yum install lighttpd

【安装(编译)】

参考:https://www.linuxidc.com/Linux/2012-08/68205.htm

下载:http://download.lighttpd.net/lighttpd/releases-1.4.x/

wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.53.tar.xz && tar -xvf lighttpd-1.4.53.tar.xz && cd lighttpd-1.4.53
./configure --prefix=/usr/local/lighttpd --with-pcre
make
make install

注意:其他拓展功能,如对 SSL 的支持,modrewrite,modredirect 等,需自行配置。