在 Ubuntu 12(可能还有其他地方)上,该pm.max_children
值在配置文件中设置/etc/php5/fpm/pool.d/www.conf
。在文件中搜索该字符串并增加值。使用以下命令重新启动 PHP 以使更改生效:
sudo service php5-fpm restart
Run Code Online (Sandbox Code Playgroud)
如果您使用 Apache,您可能需要先重新启动该服务。
Tan*_*Tat -6
配置您的池pm.*
指令并重新加载/重新启动 PHP - http://www.php.net/manual/en/install.fpm.configuration.php
pm.max_children int
The number of child processes to be created when pm is set to static and the maximum number of child processes to be created when pm is set to dynamic. This option is mandatory.
This option sets the limit on the number of simultaneous requests that will be served. Equivalent to the ApacheMaxClients directive with mpm_prefork and to the PHP_FCGI_CHILDREN environment variable in the original PHP FastCGI.
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
10018 次 |
最近记录: |