php 报错 [error] 24656#0: *16 connect() to unix:/tmp/php-71-cgi.sock failed (11: Resource temporarily unavailable) while connecting to upstream

PHP · 2023-07-10

由于访问量过高导致问题,偶发。
查看nginx的error.log tac error.log|grep "error"|less
发现许多如下重复的错误内容

2023/07/10 09:54:35 [error] 24656#0: *14 connect() to unix:/tmp/php-71-cgi.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 101.xx.220.xxx, server: xxx.xx, request: "POST /xxx/xxx HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-71-cgi.sock:", host: "xxx.xx"
2023/07/10 09:54:35 [error] 24656#0: *14 connect() to unix:/tmp/php-71-cgi.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 101.xx.220.xxx, server: xxx.xx, request: "POST /xxx/xxx HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-71-cgi.sock:", host: "xxx.xx"
2023/07/10 09:54:35 [error] 24656#0: *14 connect() to unix:/tmp/php-71-cgi.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 101.xx.220.xxx, server: xxx.xx, request: "POST /xxx/xxx HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-71-cgi.sock:", host: "xxx.xx"

出现问题的大概原因为访问量过高
nginx之php-fpm优化
网站请求异常502 php-fpm.sock failed (11: Resource temporarily unavailable) while conne

运维
Theme Jasmine by Kent Liao