lighttpd控制fastcgi进程数

一月 12th, 2010 Posted in Lighttpd | 阅读次数: 360 次

lighttpd默认的fastcgi产生数是8
如果要增加或者减少fastcgi进程数
就需要修改配置文件,进行定制

fastcgi.server             = ( “.php” =>
( “localhost” =>
(
“socket” => “/var/run/lighttpd/php-fastcgi.socket”,
“bin-path” => “/usr/local/php/bin/php-cgi”,
“min-procs” => 1,
“max-procs” => 1,
“bin-environment” => (
“PHP_FCGI_CHILDREN” => “3″,
),
“bin-copy-environment” => (
“PATH”, “SHELL”, “USER”
),

“idle-timeout” => 20
)
)
)

就是PHP_FCGI_CHILDREN参数.控制fastcgi进程的产生数
有一点要注意
如果使用ea,xcache或者APC等等OPCODE加速器
一定要将max-procs设置为1
否则可能会产生问题.

相关日志:

Tags:

2 Responses to “lighttpd控制fastcgi进程数”

  1. hotel in paris Says:

    You should check this out……

    [...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]………


  2. Saints Tickets Says:

    Links…

    [...]Sites of interest we have a link to[...]……


留下您的脚印