访问nginx提示gateway timeout 504 ,发现总是当调用时间超过30s时提示504错误

解决办法:

需要修改php-fpm的配置文件

request_terminate_timeout=30s

参考文档:

http://baike.baidu.com/view/641394.htm

http://stackoverflow.com/questions/19403885/504-gateway-time-out-upstream-timeout

http://baike.baidu.com/link?url=aV2TNYlJdOYcQBDOCqNQ6mU7ibL_o-rKjOBsxs_f2BqXKpd6JgnI0wp2nCNhQfpogzK2QqsAFjZuBjeu4r6AOa

http://baike.baidu.com/view/641394.htm

http://blog.csdn.net/zhangxinrun/article/details/28656687

http://www.nginx.cn/896.html

 

posted @ 2015-08-23 19:22  唾手可得的树  阅读(470)  评论(0编辑  收藏  举报