sphinx搜索引擎使用-liunx

sphinx

一.安装

apt-get install sphinxsearch

二.配置

1.添加配置文件

cp /etc/sphinxsearch/sphinx.conf.sample /etc/sphinxsearch/sphinx.conf

2.修改默认配置

sql_url = test

sql_pass =

sql_db  = test

# compa_sphinxql_magice = 1

扫描二维码关注公众号,回复: 3233886 查看本文章

调整为

sql_user = root

sql_pass = root

sql_db = app_db

compat_sphinxql_magics = 0

3.开启

vi /etc/default/sphinxsearch

START=no 调整为 START=yes

4.建立全文搜索引擎Sphinx的索引

indexer --all

5.启动全文搜索引擎Sphinx服务

service sphinxsearch start

6.验证

/usr/bin/search test


链接

1.http://portal.digitser.cn/article-179-1.html

2.https://blog.csdn.net/lgm252008/article/details/5373436






猜你喜欢

转载自blog.csdn.net/u010433315/article/details/80619766
今日推荐