安装好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. 【sql】CHARINDEX

    语法:CHARINDEX ( expressionToFind ,expressionToSearch [ , start_location ] ) 参数: 1)expressionToFind 包含 ...

  2. 如何快速学会android的四大基础----Service篇

    很多人都以为,只要学过一点java就可以马上写android应用了,这种想法的产生非常自然,因为现在网上有那么多的android开源实例,只要跟着来,也能够自己写一个播放器.但是,只有去写一个真正投入 ...

  3. [转]Jackson 解析json数据之忽略解析字段注解@JsonIgnoreProperties

    以前解析json用的惯的就是Google的gson了,用惯了基本就用它了,一直也没发现什么大问题,因为都是解析简单的json数据.但是最近学习springboot,要解析一个比较复杂的json数据.就 ...

  4. Atitit 快速开发的推荐技术标准化 规范 大原则

    Atitit 快速开发的推荐技术标准化 规范 大原则 1. 如何评估什么样的技术适合快速开发??1 1.1. (重要)判断语言层次..层次越高开发效率越高  4gl  dsl> 3.5gl &g ...

  5. [na]tcpdump非常实用的抓包实例

    基本语法篇 常用应用: 过滤物理口 过滤某个port/ip/mac 过滤协议 显示ip/mac/port不解析等 过滤mac tcpdump -i eth0 ether host 24:DF:6A:F ...

  6. yum 卸载 error: %preun(tengine-2.1.0-1.el6.x86_64) scriptlet failed, exit status 6

    error: %preun(tengine-2.1.0-1.el6.x86_64) scriptlet failed, exit status 6 Error in PREUN scriptlet i ...

  7. lua -- 商店的数据管理类

    module (..., package.seeall) local ShopM = {} local SystemPrompt = require(__APP_PACKAGE_NAME__ .. & ...

  8. Booleans

    两个取值false和true.但要注意Lua中所有的值都可以作为条件.在控制结构的条件中除了false和nil为假,其他值都为真.所以Lua认为0和空串都是真.

  9. pandas数组(pandas Series)-(1)

    导入pandas import pandas as pd countries = ['Albania', 'Algeria', 'Andorra', 'Angola', 'Antigua and Ba ...

  10. django中celery的使用

    1.什么是celery celery是一个异步任务框架,当我们的程序中存在一个比较耗时的操作时,可以启动这个异步任务框架, 将耗时操作,交给它来完成,这样节省了程序的执行时间. 2.celery的原理 ...