sphinx 安装配置 and 使用方法

来源:互联网 发布:电棍淘宝 编辑:程序博客网 时间:2024/06/14 10:02

1,去官网下载对应的sphinx安装包 

http://sphinxsearch.com/

2,查看安装使用文档 

Home » Resource>documetntation  安装sphinx

http://sphinxsearch.com/docs/

3,目录介绍

/ect/sphinx/sphinx.config  sphinx 配置文件

/usr/share/sphinx    sphinx api 目录

/usr/bin  目录下生成两个工具  indexer   和  searched  

4,sphinx  如何工作的 

1,利用 indexer 工具生成索引数据

命令:/user/bin/indexer --config /etc/shpinx/sphinx.config --all

2,searched :后台进程,使用 indexer 生成的数据做查询 

5, 官网查看sphinx.config 文件个配置项的意义 

http://sphinxsearch.com/docs/latest/conf-reference.html


6,查看sphinx 数据

mysql -h0 -P9306



0 0