一对一免费咨询: 18215660330

索引

/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/zhanqun_mysql.conf  –all

/usr/local/coreseek/bin/search -c /usr/local/coreseek/etc/zhanqun_mysql.conf

sudo /usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft_python_ssdb.conf –all

sudo /usr/local/coreseek/bin/searchd -c /usr/local/coreseek/etc/csft_python_ssdb.conf–console

sudo /usr/local/coreseek/bin/search -c /usr/local/coreseek/etc/csft_python_ssdb.conf

/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft_mysql.conf  –all –rotate  ( –rotate 存在更新用)

/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft_mysql.conf videokey

1、执行增量索引

/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft_mysql.conf delta –rotate

2、合并索引

/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft_mysql.conf –merge sell delta –rotate –merge-dst-range deleted 0 0

3、执行更新索引

/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft_mysql.conf –all –rotate

—调试搜索

/usr/local/coreseek/bin/search -c /usr/local/coreseek/etc/csft_mysql.conf 女装

其次,启动搜索

/usr/local/coreseek/bin/searchd -c /usr/local/coreseek/etc/csft_mysql.conf –console  开启搜索

/usr/local/coreseek/bin/searchd -c /usr/local/coreseek/etc/csft_mysql.conf –stop 停止搜索

开机启动coreseek脚本

方法一:

echo “/usr/local/coreseek/bin/searchd -c  /usr/local/coreseek/etc/csft_mysql.conf” >> /etc/init.d/rc.local

方法二:

sudo vi /home/sphinx_start.sh

#!/bin/bash

/usr/bin/printf “\n—– —– %s —– —–\n\n” $(date “+%Y-%m-%d_%H:%M:%S”)

/usr/local/coreseek/bin/searchd -c /usr/local/coreseek/etc/csft_mysql.conf >> /var/log/searchd.log 2>&1

先设置此文件可执行:

chmod +x /home/sphinx_start.sh

再加入自动执行脚本:

sudo vi /etc/rc.local

在exit 0的上面新起一行,写入/home/sphinx_start.sh

liunx定时任务命令 crontab -e

*/1 * * * * /bin/sh /usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft_mysql.conf delta –rotate

*/5 * * * * /bin/sh /usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft_mysql.conf –merge main delta –rotate –merge-dst-range deleted 0 0

30 1 * * *  /bin/sh /usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft_mysql.conf –all –rotate

任务计划的意思是:每隔一分钟执行一遍增量索引,每五分钟执行一遍合并索引,每天1:30执行整体索引。

查看进程

ps -aux |grep 9312

ps auxww | grep searchd

成都软件开发 最好的成都软件定制开发公司
18215660330