我想設定最大請求數,以防止系統 RAM 在出現記憶洩漏時被填滿。
但我不知道它在哪裡。
答案1
/etc/lighttpd/mod_fastcgi.conf:
fastcgi.server = ( ".php" =>
(( "socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"max-procs" => 10,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "1000"
),
"broken-scriptfilename" => "enable"
))
)
這對我來說可以。