sphinxsearch返回"无法发送客户端协议版本"

Pat*_*ick 5 sphinx

在我的一些服务器上,执行sphinx php查询会返回该错误.搜索谷歌我找不到任何东西,除了这是错误出现的部分原因:

// send my version
    // this is a subtle part. we must do it before (!) reading back from searchd.
    // because otherwise under some conditions (reported on FreeBSD for instance)
    // TCP stack could throttle write-write-read pattern because of Nagle.
    if (!$this->Send($fp, pack('N', 1), 4))
    {
      fclose($fp);
      $this->error = 'failed to send client protocol version';
      return false;
    }
Run Code Online (Sandbox Code Playgroud)

我发现的关闭是http://www.sphinxsearch.com/forum/view.html?id=4919

但是我不知道sphinxapi.php在哪里(我使用手动编译安装)并且不确定这是不是一个好主意.

任何人有任何想法?

小智 9

我在我的服务器上遇到了同样的问题,我意识到我根本没有启动searchd守护进程.

希望这可以帮助