kevent() reported about an closed connection (54: Connection reset by peer)报错的其中一种解决办法

如果报以下这种错(我的环境是mac10.15.7 php nginx php-fpm):

*18 kevent() reported about an closed connection (54: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:8080"

并且你其他方法都试过了,那很可能就是swoole的yasd和他冲突了,把php.ini的隐藏掉,唉,惊不惊喜,意不意外?

我是hyperf和php-fpm项目共存的,所以还是需要php-fpm

我也是查了很多网上教的方法都不行,最后有个网友,说sudo dtruss -a -n php-fpm查看调用栈,最后发现一个yasd设置断点提醒,才注意这个事情,坑啊!!!!!

同鞋,解决了,来个赞吧

你可能感兴趣的:(kevent() reported about an closed connection (54: Connection reset by peer)报错的其中一种解决办法)