电脑是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但是并没有用,然后把代码原封不动放到服务器上运行就不报错了。求大佬解答