以php-fpm的方式运行时,日志一直提示

WARNING: [pool www] server reached pm.max_children setting (5), consider raising it

是因为默认max_children只有5,相当的低,所以进行调整

pm = dynamic
pm.max_children = 300
pm.start_servers = 20
pm.min_spare_servers = 5
pm.max_spare_servers = 35

重启即可