Ubuntu16+lighttpd-1.4.67
https://redmine.lighttpd.net/projects/lighttpd/wiki/InstallFromSource
lighttpd-1.4.67
./configure
//默认安装/usr/local/sbin/
//指定安装路径,./configure -C --prefix=/usr/local
报错
configure: error: pcre2-config not found, install the pcre2-devel package or build with --without-pcre2
需要依赖安装
官网下载 pcre2-10.40.tar.gz
https://github.com/PCRE2Project/pcre2/releases
解压
tar -zxvf pcre2-10.40.tar.gz
编译安装
cd pcre2-10.40
./configure
make
库libpcre2-8.so 默认安装路径/usr/local/lib/
sudo ldconfig
make
make install
运行
sudo /usr/local/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
有行输出
(configfile.c.566) Warning: “mod_compress” is DEPRECATED and has been replaced with “mod_deflate”. A future release of lighttpd 1.4.x will not contain mod_compress and lighttpd may fail to start up
不影响运行,先这样