解决(nginx)504 Gateway Time-out
504 Gateway Time-out问题常见于使用nginx作为web server的服务器的网站
一般看来, 这种情况可能是由于nginx默认的fastcgi进程响应的缓冲区太小造成的, 这将导致fastcgi进程被挂起, 如果你的fastcgi服务对这个挂起处理的不好, 那么最后就极有可能导致504 Gateway Time-out
现在的网站, 尤其某些论坛有大量的回复和很多内容的, 一个页面甚至有几百K
默认的fastcgi进程响应的缓冲区是8K, 我们可以设置大点
在nginx.conf里, 加入:fastcgi_buffers 8 128k
这表示设置fastcgi缓冲区为8×128k
当然如果您在进行某一项即时的操作, 可能需要nginx的超时参数调大点, 例如设置成60秒:
send_timeout 60;
Many times I’ve read you and thought that I agree to many of your views and ways.
Cheers!
I love them! ;DDD
Thank you so much for this link.
This is truly the 2010 version.
Beautiful! And courageous to show heart! Thanks for sharing
You’ll always have our support!
To say one word: BELIEVE.
niiiice
Thanks for your post. I agree and i try be optimistic in my posts too…
I like your blog very much. Thank you for sharing.
i feel you . you seem like a very warmn guy. thank you
Super post.
YOU. ARE. INSPIRATION.
i so agree with you! It’s great to good read how you conquered circumstance, dependency and laziness.