vps交流

4G内存的动态PHP的 php-fpm.conf参数设置


pm = dynamic
pm.max_children = 50
pm.start_servers = 30
pm.min_spare_servers = 20
pm.max_spare_servers = 50
pm.max_requests = 1000
pm.process_idle_timeout = 10s
request_terminate_timeout = 10s
request_slowlog_timeout = 0

这样设置会网页打开偶尔会502,需要修改哪个数值调大啊⠀4G内存的动态PHP的 php-fpm.conf参数设置

pm.max_children = 100
pm.min_spare_servers = 50
pm.max_spare_servers = 100
502可能是你nginx的单IP连接数限制太小了。

jekyll 发表于 2021-11-30 10:11
pm.max_children = 100
pm.min_spare_servers = 50
pm.max_spare_servers = 100

谢谢,我试试4G内存的动态PHP的 php-fpm.conf参数设置4G内存的动态PHP的 php-fpm.conf参数设置