相争不足 共享有余

sphinx 配置、常用命令

PHP moonygao 147℃ 0评论

sphinx 安装到本地电脑的D盘

本地window电脑生成索引
cd D:\sphinx\bin
indexer -c sphinx.conf –rotate –all

 

搜索sphinx的进程

ps aux |grep searchd
ps aux |grep indexer

 

Sphinx进程在linux直接杀死

lsof -i:9312  查看9312端口信息,获得pid

ps aux
kill pid数字 杀死sphinx进程

重新生成索引 第一次不加–rotate,第二次后可以
/usr/local/sphinx3.0/bin/indexer -c /usr/local/sphinx3.0/bin/sphinx.conf –rotate –all

sphinx 启动命令

/usr/local/sphinx3.0/bin/searchd -c /usr/local/sphinx3.0/bin/sphinx.conf
/usr/local/sphinx3.0/bin/searchd –config /usr/local/sphinx3.0/bin/sphinx.conf

sphinx停止

/usr/local/sphinx3.0/bin/searchd –config /usr/local/sphinx3.0/bin/sphinx.conf –stop

转载请注明:IT起义 » sphinx 配置、常用命令

喜欢 (0)or分享 (0)