1、增加children的数量
vi /usr/local/php/etc/php-fpm.conf
pm.max_children = 40
request_terminate_timeout = 100
修改成:
pm.max_children = 400
request_terminate_timeout = 1000
2、增加缓冲区容量
vi /usr/local/nginx/conf/nginx.conf
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
修改成:
fastcgi_buffer_size 128k;
fastcgi_buffers 4 128k;