项目

概览

个人资料

操作

server.event-handler

设置事件处理器。

默认值:选择 lighttpd 支持的、系统中可用的最先进的事件处理器
在 Linux 上:epoll
在 *BSD 上:kqueue

可用事件处理器:

操作系统 方法 配置值
所有 select select
Unix poll poll
Linux 2.6+ epoll linux-sysepoll
Solaris /dev/poll solaris-devpoll
FreeBSD,... kqueue freebsd-kqueue
NetBSD kqueue kqueue
不适用 libev libev

备注

  • libev 要求 lighty 使用 --with-libev 编译(自 1.4.27 版本可用),但 libev 已不再推荐使用。建议使用 lighttpd 支持的原生事件处理器(例如在 Linux 上:epoll,在 *BSD 上:kqueue)

示例

server.event-handler = "kqueue"

另请参阅

更新者:gstrauss 大约 5 年前 · 16 次修订