安装好coreseek,建了索引,启动了服务,用php建了一个test.php,用于测试;<?phpinclude_once('sphinxapi.php');//向搜索引擎发起请求

$cl = new SphinxClient ();
$cl->SetServer ( '10.10.10.10', 9312);
//$cl->getLastError();
//$cl -> getLastWarning();
print_r($cl);
$cl->SetConnectTimeout ( 3 );
$cl->SetArrayResult ( true );
$cl->SetMatchMode ( SPH_MATCH_ANY);
$cl->SetSortMode ( SPH_SORT_ATTR_ASC,'rank' ); //以排名rank升序排列
$cl->SetLimits(0,2);
$query_data = $cl->Query ( '小米', "*" );
?>

在A台机器执行的结果如下

SphinxClient Object
(
[_host] => 10.10.10.10
[_port] => 9312
[_offset] => 0
[_limit] => 20
[_mode] => 0
[_weights] => Array
(
) [_sort] => 0
[_sortby] =>
[_min_id] => 0
[_max_id] => 0
[_filters] => Array
(
) [_groupby] =>
[_groupfunc] => 0
[_groupsort] => @group desc
[_groupdistinct] =>
[_maxmatches] => 1000
[_cutoff] => 0
[_retrycount] => 0
[_retrydelay] => 0
[_anchor] => Array
(
) [_indexweights] => Array
(
) [_ranker] => 0
[_maxquerytime] => 0
[_fieldweights] => Array
(
) [_overrides] => Array
(
) [_select] => *
[_error] =>
[_warning] =>
[_connerror] =>
[_reqs] => Array
(
) [_mbenc] =>
[_arrayresult] =>
[_timeout] => 0
[_path] =>
[_socket] =>
)

在B台机器执行的结果如下:

SphinxClient Object
(
[error] =>
[warning] =>
)

通过PHP的调试信息,根本没有发现任何错误输出;请教了一个大神,他用 strace -s 1000 -f -o test.log php test.php ,分析 test.log ,发现了如下的错误

google了一番,通过在A,B 两台执行php --ini ,php -m 发现A机器中有php的sphinx扩展,而B机器中没有,终于找到具体的原因了。将A机器中的sphinx扩展去掉,重启php-fpm,就ok 了。

service php-fpm restart

client version is higher than daemon version (client is v.1.29 daemon is v.1.22)的更多相关文章

  1. coreseek 提示 client version is higher than daemon version 解决办法

    安装好coreseek,开启了服务之后,通过 sphinx php扩展去请求数据,提示:client version is higher than daemon version (client is ...

  2. docker报Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.19)

    docker version Client: Version: 17.05.0-ce API version: 1.24 (downgraded from 1.29) Go version: go1. ...

  3. adb server version (31) doesn't match this client (36)

    运行adb 命令的时候报错: C:\Users\Administrator>adb devices List of devices attachedadb server version (31) ...

  4. appium+python自动化45-夜神模拟器连不上(adb server version (36) doesn't match this client (39); killing...)

    前言 最新下了个最新版的夜神模拟器,然后adb devices发现连不上模拟器了,报adb server version (36) doesn't match this client (39); ki ...

  5. appium===报错adb server version (31) doesn’t match this client (39); killing…的解决办法

    当使用在cmd窗口调用adb shell命令的时候 提示如下: adb server version (31) doesn't match this client (39); killing...er ...

  6. adb server version (31) doesn’t match this client (36); killing…

    版权声明:蜜蜂采花酿蜂蜜,奶牛吃草产牛奶. https://blog.csdn.net/codehxy/article/details/52175186 案例1 报错信息如下 C:\Users\lin ...

  7. 关于ADB 执行报错问题-db server version (31) doesn't match this client (40); killing...

    D:\ADB>adb devicesList of devices attachedadb server version (31) doesn't match this client (40); ...

  8. Android Studio - Unable to create Debug Bridge: Unable to start adb server: adb server version (32) doesn't match this client (40)

    错误提示:Unable to create Debug Bridge: Unable to start adb server: adb server version (32) doesn't matc ...

  9. adb shell 运行时报错"adb server version (26) doesn't match this client (39); killing..."的解决方案

    adb即 Android Debug Bridge 是一个通用的命令行工具,可用于通过PC端对连接的Android模拟器设备或连接至电脑的真实物理设备进行命令行操作.目前,许多软件均会借助 adb 工 ...

随机推荐

  1. MS SQL Server查询优化方法 查询速度慢的原因很多,常见如下几种

    1.没有索引或者没有用到索引(这是查询慢最常见的问题,是程序设计的缺陷) 2.I/O吞吐量小,形成了瓶颈效应. 3.没有创建计算列导致查询不优化. 4.内存不足 5.网络速度慢 6.查询出的数据量过大 ...

  2. Mapped Statements collection does not contain value for com.xxxx.dao.impl.AreaDAOImpl.findByCode

    org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.Persiste ...

  3. CSS的Class以及ID选择器

    9.CSS的Class以及ID选择器 id和class的不同指出在于一个页面同一个ID只能只有一次,而class可以无限制使用. 同样,你可以在html选择器后面使用一个选择器来指定特殊HTML元素, ...

  4. Cg入门11:Vertex Shader - 几何变换 —MVP矩阵变换(旋转、缩放)

    旋转.缩放demo C# Code: Shader Code: watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize ...

  5. 【转载】centos7.3 防火墙配置

    firewalld介绍原文:https://www.cnblogs.com/moxiaoan/p/5683743.html 一. centos7 默认有一个防火墙 firewalld,具体使用如下: ...

  6. [转]Java 变量和常量

    变量和常量 在程序中存在大量的数据来代表程序的状态,其中有些数据在程序的运行过程中值会发生改变,有些数据在程序运行过程中值不能发生改变,这些数据在程序中分别被叫做变量和常量. 在实际的程序中,可以根据 ...

  7. Android studio的一些常用快捷键

    Alt+回车 导入包,自动修正 Ctrl+N 查找类 Ctrl+Shift+N 查找文件 Ctrl+Alt+L 格式化代码 Ctrl+Alt+O 优化导入的类和包 Alt+Insert 生成代码(如g ...

  8. 针对MSHFlexGrid的一系列通用方法-项目中实践代码分享

    1.给MSHFlexGrid填充数据通用方法 '自定义报表填充程序 fgrid Public Function ShowformfData(Resultset As ADODB.Recordset, ...

  9. nmap 端口扫描工具

    nmap工具介绍 一.简介 nmap :也就是Network Mapper,最早是Linux下的网络扫描和嗅探工具包. nmap是一个网络连接端扫描软件,用来扫描网上电脑开放的网络连接端.确定哪些服务 ...

  10. MySql(十七):MySql架构设计——高可用设计之思路及方案

    前言: 数据库系统是一个应用系统的核心部分,要想系统整体可用性得到保证,数据库系统就不能出现任何问题.对于一个企业级的系统来说,数据库系统的可用性尤为重要.数据库系统一旦出现问题无法提供服务,所有系统 ...