centos 6.3中coreseek 定时重建索引方法

作者:简简单单 2014-08-26

建立开机启动coreseek服务,此处一定要加入–pidfile文件,以免shell自启动找不到进程pid。

 代码如下 复制代码

 vi /etc/rc.local(或者 vi /etc/rc.d/rc.local)
/usr/local/coreseek/bin/searchd –-c /usr/local/coresee
k/etc/csft.conf --pidfile /usr/local/coreseek/var/log/searchd.pid

每半小时重建索引

 vi /usr/local/coreseek/bin/build_index.sh
/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/csft.conf --rotate --all --quiet

修改文件执行权限

 代码如下 复制代码

chmod +x /usr/local/coreseek/bin/build_index.sh

修改crontab

crontab -e
*/30 * * * * /bin/bash /usr/local/coreseek/bin/build_index.sh


coreseek无法索引中文

原来是因为配置index时没有加入charset_type那一句
 
 

 代码如下 复制代码
charset_dictpath = /usr/local/mmseg3/etc/
charset_type        = zh_cn.utf-8

相关文章

精彩推荐