介绍
运行 lighttpd2
lighttpd 需要两个配置文件,通常位于以下两个位置
-
/etc/lighttpd2/lighttpd.conf
:主配置文件,参见主配置。它可以拆分为多个文件,参见包含。 -
/etc/lighttpd2/angel.conf
:angel 配置文件,参见Angel 配置。
源代码中的contrib/
目录包含示例配置文件。
然后使用以下命令启动 lighttpd2
/usr/sbin/lighttpd2 -c /etc/lighttpd2/angel.conf
该进程不会分叉到后台运行,如果需要,您需要自行操作。
我们推荐使用runit来运行 lighttpd2(请查看contrib/service
目录)。