nginx

关注公众号 jb51net

关闭
首页 > 网站技巧 > 服务器 > nginx > nginx Resource temporarily unavailable

nginx connect() to unix:/var/run/php-fpm.sock failed (11: Resource temporarily unavailable)

投稿:junjie

这篇文章主要介绍了nginx connect() to unix:/var/run/php-fpm.sock failed (11: Resource temporarily unavailable),需要的朋友可以参考下

网站常出现502 bad gateway,程序没有问题。

根据nginx日志:

复制代码 代码如下:

connect() to unix:/var/run/php-fpm.sock failed (11: Resource temporarily unavailable)

发现phpfpm的listen是unix sock方式运行的,问题可能出在php fpm上。php fpm配置文件里有backlog,backlog是linux服务器在socket处理连接数的定义,phpfpm默认为-1,将-1改为4096,重启php fpm问题解决。

您可能感兴趣的文章:
阅读全文