在哪里设置“PHP_FCGI_MAX_REQUESTS”(lighttpd)

前端之家收集整理的这篇文章主要介绍了在哪里设置“PHP_FCGI_MAX_REQUESTS”(lighttpd)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想设置最大请求,以便在发生内存泄漏时保持系统RAM不会填满.

但我不知道它在哪里.

/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" 
      ))
  )

这对我来说可以.

Lighttpd – Docs:PerformanceFastCGI – lighty labs

原文链接:https://www.f2er.com/php/139180.html

猜你在找的PHP相关文章