V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
passion336699
V2EX  ›  程序员

求各位帮忙分析下 php5-fpm connect failed..

  •  
  •   passion336699 · 2016-03-23 10:23:34 +08:00 · 2018 次点击
    这是一个创建于 2927 天前的主题,其中的信息可能已经有所发展或是发生改变。

    2016/03/22 18:36:46 [error] 10164#0: *167 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable)

    这种情况,是我 php5-fpm 的配置,还是 nginx 的配置优化问题? 访问量大了之后,就会小几率出现这种情况,有时候 reload nginx 就能恢复,有时候只能重启服务器了.. 我改怎么修复这个 error?

    2 条回复    2016-03-23 10:45:26 +08:00
    guoer
        1
    guoer  
       2016-03-23 10:39:07 +08:00
    调大 pm.max_children 试试?
    passion336699
        2
    passion336699  
    OP
       2016-03-23 10:45:26 +08:00
    @guoer 现在 max_children 值是 5,请问需要加到多少啊?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3391 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 11:15 · PVG 19:15 · LAX 04:15 · JFK 07:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.