在nginx 的错误日态中有这样的记录 2020/08/03 07:01:27 [error] 18332#0: *25 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 117.136.40.55, server: m.wudimei.com, request: "GET /yangqingrong/blog/item/467.html HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "m.wudimei.com" 找了半天,原来是我把yaf路电参数搞错了。 routes.blog_detail.route.module=Blog routes.blog_detail.route.controller=Blog routes.blog_detail.route.action=item routes.blog_detail.map.1=space_name routes.blog_detail.map.2=id public function itemAction($name,$id){ //echo $name . $id; } 其中space_name 要与$name同名。 $name改为$space_name 即可