sphinx 安装到本地电脑的D盘
本地window电脑生成索引
cd D:\sphinx\bin
indexer -c sphinx.conf –rotate –all
/usr/local/sphinx/bin/indexer -c /usr/local/sphinx/etc/sphinx.conf products
搜索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