首页 > 服务器 > 解决(nginx)504 Gateway Time-out

解决(nginx)504 Gateway Time-out

2009年04月09号
查看评论 发表评论 2,735次浏览

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;

类别服务器 标签
  1. mbt chapa
    发表于 2010年06月21号 15时18分22秒 | 1楼

    Many times I’ve read you and thought that I agree to many of your views and ways.

  2. world cup jerseys 2010
    发表于 2010年06月23号 01时27分55秒 | 2楼

    Cheers!

  3. lebron shoes
    发表于 2010年06月23号 10时45分07秒 | 3楼

    I love them! ;DDD

  4. mbt anti shoe
    发表于 2010年06月25号 04时38分56秒 | 4楼

    Thank you so much for this link.

  5. nike air force one low
    发表于 2010年06月29号 06时50分37秒 | 5楼

    This is truly the 2010 version.

  6. mbt anti shoe
    发表于 2010年06月30号 15时11分14秒 | 6楼

    Beautiful! And courageous to show heart! Thanks for sharing

  7. Cheap Nike Air Force 1
    发表于 2010年07月01号 16时05分19秒 | 7楼

    You’ll always have our support!

  8. nfl jerseys Washington Redskins
    发表于 2010年07月17号 17时11分00秒 | 8楼

    To say one word: BELIEVE.

  9. mulberry bag
    发表于 2010年07月17号 18时01分35秒 | 9楼

    niiiice

  10. louis vuitton bags online
    发表于 2010年07月19号 17时23分32秒 | 10楼

    Thanks for your post. I agree and i try be optimistic in my posts too…

  11. Designer Purses
    发表于 2010年07月19号 17时59分08秒 | 11楼

    I like your blog very much. Thank you for sharing.

  12. Christian Louboutin Shoes
    发表于 2010年07月22号 21时51分15秒 | 12楼

    i feel you . you seem like a very warmn guy. thank you

  13. christian louboutin shoes
    发表于 2010年07月22号 21时57分50秒 | 13楼

    Super post.

  14. christian louboutin shoes for sale
    发表于 2010年07月24号 15时26分43秒 | 14楼

    YOU. ARE. INSPIRATION.

  15. designer Hermes Handbags
    发表于 2010年07月24号 16时07分53秒 | 15楼

    i so agree with you! It’s great to good read how you conquered circumstance, dependency and laziness.

评论页数:
1 2 173
  1. 目前没有通告
你必需 登陆 才能发表评论.