账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    求助: yaf 中使用Yaf_Session::getInstance(); 时会导致php-fpm崩亏
    38
    0

    1.我使用的是mac 系统,安装了php5.4, yaf2.3.4。 代码运行到Yaf_Session::getInstance();时会崩溃。
    2.查看nginx 错误日志返回upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: localhost,
    3.查看php-fpm日志显示 child 64297 exited on signal 6 (SIGABRT) after 45.184201 seconds from start
    4.没有并发,只发出了条请求,php-fpm 配置为动态。不存在进程等待情况。
    5.其他的yaf 方法可以正常使用如 $loader = Yaf_Loader::getInstance();
    $dispatcher = Yaf_Dispatcher::getInstance();
    6.只有运行到Yaf_Session::getInstance(); 时会出现PHP-fpm崩溃,导致nginx直接返回502.
    使用session_start() php方法操作session可以正常工作,保存路径有权限。
    求大佬帮助,各种方式都试了快2天了。

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 米醋诗人 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部