5

nginx php-fpm环境下YIi2中GridView::widget使用后,nginx报错502.

电脑是mac系统
查看nginx error_log 如下

[error] 5945#0: *31 kevent() reported about an closed connection (54: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /manager/index HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:8070"

把YIi2中的GridView::widget()注释掉就恢复正常,网上说Connection reset by peer是因为php执行时间过长,然后我也改过那个request_terminate_timeout=10但是并没有用,然后把代码原封不动放到服务器上运行就不报错了。求大佬解答

查看全部
qq_35370923
qq_35370923
2019/04/26 15:55
  • nginx
  • php
  • 点赞
  • 收藏
  • 回答
    私信

2个回复