nginx 502 bad gateway

请求时间长,出现502

vim /usr/local/php/etc/php-fpm.conf

request_terminate_timeout

这个值是max_execution_time,就是fast-cgi的执行脚本时间。

0s为关闭,就是无限执行下去。

修改后重启lnmp。

lnmp restart
原文地址:https://www.cnblogs.com/jiqing9006/p/10011217.html