sphinx基本操作

来自:互联网
时间:2018-08-09
阅读:

启动searchd服务

/usr/local/sphinx/bin/searchd

启动配置

/usr/local/sphinx/bin/searchd --config /usr/local/sphinx/etc/sphinx.conf

关闭searchd服务

/usr/local/sphinx/bin/searchd --stop

强制关闭searchd服务

killall -9 searchd

建立索引

/usr/local/sphinx/bin/indexer --all --rotate

检索(查找关键字keywords)

/usr/local/sphinx/bin/search keywords

更新索引

/usr/local/sphinx/bin/indexer --config /usr/local/sphinx/etc/sphinx.conf delta --rotate
返回顶部
顶部