建立开机启动coreseek服务,此处一定要加入–pidfile文件,以免shell自启动找不到进程pid。
vi /etc/rc.local(或者 vi /etc/rc.d/rc.local)
/usr/local/coreseek/bin/searchd –-c /usr/local/coreseek/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