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”
),
( “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: Lighttpd
八月 10th, 2011 at 09:12
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 [...]………
九月 12th, 2011 at 02:50
Links…
[...]Sites of interest we have a link to[...]……