在使用Sphinx服務時,檢查到錯誤返回,類似: “failed to send client protocol version”.
什麼原因,Google了一下,找到下面的web:
sphinxsearch returns “failed to send client protocol version”
提問者的疑難得到解決,原因是sphinx服務未正常啓動.
可是,在我的使用中,sphinx服務是確實啓動了的.那麼可能就是客戶端使用服務不正常了.因此先檢查了服務進程,然後檢查配置文件.找到原因所在,客戶端代碼中指定的服務端口與配置文件中的不一致.