The default fastcgi process response buffer of nginx is too small, so the default fastcgi process response buffer of 504
is 8K. We set this item to be larger and add it to the http configuration item in nginx.conf:
fastcgi_buffers 8 128k;
astcgi buffer is 8 blocks of 128k size.
After modification, if there is still a problem,
you can continue to modify the timeout parameter of nginx, and increase the parameter a bit,
such as setting it to 60 seconds.
send_timeout 60;
After the adjustment of these two parameters, the result does not prompt the "504 Gateway Time-out" error again. , it shows that the effect is quite good, and the problem is basically solved.
Nginx504 error
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326178299&siteId=291194637
Ranking