php systemd interval
This commit is contained in:
parent
87098a72ed
commit
beb4a88bd2
|
@ -568,6 +568,7 @@ function install_web_server {
|
||||||
# limit the number of php processes
|
# limit the number of php processes
|
||||||
sed -i 's/; process.max =.*/process.max = 32/g' /etc/php/7.0/fpm/php-fpm.conf
|
sed -i 's/; process.max =.*/process.max = 32/g' /etc/php/7.0/fpm/php-fpm.conf
|
||||||
#sed -i 's/;process_control_timeout =.*/process_control_timeout = 300/g' /etc/php/7.0/fpm/php-fpm.conf
|
#sed -i 's/;process_control_timeout =.*/process_control_timeout = 300/g' /etc/php/7.0/fpm/php-fpm.conf
|
||||||
|
sed -i 's|;systemd_interval.*|systemd_interval = 10|g' /etc/php/7.0/fpm/php-fpm.conf
|
||||||
|
|
||||||
if ! grep -q "pm.max_children" /etc/php/7.0/fpm/php-fpm.conf; then
|
if ! grep -q "pm.max_children" /etc/php/7.0/fpm/php-fpm.conf; then
|
||||||
echo 'pm.max_children = 10' >> /etc/php/7.0/fpm/php-fpm.conf
|
echo 'pm.max_children = 10' >> /etc/php/7.0/fpm/php-fpm.conf
|
||||||
|
|
Loading…
Reference in New Issue