知乎专栏 |
max-worker 我一般设置为与处理器数目相同。
max-fds 最大连接数
server.max-worker = 24 server.max-fds = 4096
通过cronolog切割日志
#### accesslog module #accesslog.filename = "/www/logs/lighttpd.access.log" accesslog.filename = "| /usr/local/sbin/cronolog /www/logs/%Y/%m/%d/access.log"
disable etags
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) static-file.etags = "disable"