博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年5月6日

摘要: shpinx.php 引入类 SphinxClient.php 输出结果: 阅读全文

posted @ 2016-05-06 10:58 红与黑hyh 阅读(287) 评论(0) 推荐(0) 编辑

摘要: cd /home/packages wget http://sphinxsearch.com/files/sphinx-0.9.9.tar.gz tar xzvf sphinx-0.9.9.tar.gz cd sphinx-0.9.9/api/libsphinxclient vim sphinxcl 阅读全文

posted @ 2016-05-06 10:16 红与黑hyh 阅读(178) 评论(0) 推荐(0) 编辑

摘要: 配置实例 3.1、数据源。 这里我们采用 mysql的数据源。具体情况如下: Mysql server:192.168.1.10 Mysql db :test Mysql 表:test.sphinx_article mysql> desc sphinx_article; ———– ——————— —— —– ——— —————- | Field | Type | Null | Key | De... 阅读全文

posted @ 2016-05-06 09:46 红与黑hyh 阅读(242) 评论(0) 推荐(0) 编辑

摘要: sphinx的配置文件是在配置的时候最容易出错的了: 基本概念: source:数据源,数据是从什么地方来的。 index:索引,当有数据源之后,从数据源处构建索引。索引实际上就是相当于一个字典检索。有了整本字典内容以后,才会有字典检索。 searchd:提供搜索查询服务。它一般是以deamon的形 阅读全文

posted @ 2016-05-06 09:39 红与黑hyh 阅读(221) 评论(0) 推荐(0) 编辑

2016年5月4日

摘要: 官网下载 :http://sphinxsearch.com/downloads/sphinx-2.2.10-release.tar.gz/thankyou.html 安装sphinx 解压 libsphinxclient 安装(PHP模块需要) 安装PHP的Sphinx模块 安装好后,在安装目录下e 阅读全文

posted @ 2016-05-04 17:46 红与黑hyh 阅读(352) 评论(0) 推荐(0) 编辑

摘要: php代码操作redis 1、连接 输出结果 pong 则成功 2、Redis PHP String(字符串) 实例 执行脚本,输出结果为: 3、Redis PHP List(列表) 实例 执行脚本,输出结果为: 4、Redis PHP Keys 实例 执行脚本,输出结果为: 阅读全文

posted @ 2016-05-04 11:27 红与黑hyh 阅读(153) 评论(0) 推荐(0) 编辑

摘要: 连接控制 连接: redis-cli -h 127.0.0.1 -p 6379 QUIT 关闭连接 AUTH (仅限启用时)简单的密码验证 适合全体类型的命令 EXISTS key 判断一个键是否存在;存在返回 1;否则返回0; DEL key 删除某个key,或是一系列key;DEL key1 k 阅读全文

posted @ 2016-05-04 11:07 红与黑hyh 阅读(255) 评论(0) 推荐(0) 编辑

摘要: phpredis 下载地址 http://pan.baidu.com/s/1dFFK0gh 提取码:见评论,(~。。)亲身试验,可行 1、下载到目录 2、解压 3、进入 4、编译 如果找不到可以命令 : whereis 或则locate 5、安装 6、配置 找到php.ini 在最后一行添加 7、重 阅读全文

posted @ 2016-05-04 10:28 红与黑hyh 阅读(164) 评论(1) 推荐(0) 编辑

2016年5月3日

摘要: myeclipse,断点调试,debug 1、双击 2、debug 3、f6 阅读全文

posted @ 2016-05-03 16:43 红与黑hyh 阅读(246) 评论(0) 推荐(0) 编辑

摘要: system32中存在3个java*.exe文件,分别是: 阅读全文

posted @ 2016-05-03 14:43 红与黑hyh 阅读(332) 评论(0) 推荐(0) 编辑