访问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