Sphinx 中 --rotate 的时间配置放在哪里?
我想在 sphinx 中使用 --rotate 每 5 分钟更新一次索引,该数字放在哪里?
例如,
indexer --rotate --config /home/myuser/sphinx.conf --all
我在这个命令中搜索了这里但没有运气,提前致谢
I want to use --rotate in sphinx for updating my index every 5 minutes, where is that number placed?
I this command for example
indexer --rotate --config /home/myuser/sphinx.conf --all
I have searched here without luck, thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
sphinx 打包的索引器程序不是守护进程,也不会自行定期运行。相反,您需要使用调度程序来执行此操作。
对于大多数 Unix 版本,您只需使用 cron 运行索引器即可。
The indexer program packaged with sphinx is not a daemon, nor will it run regularly on its own. Instead, you need to use a scheduling program to do that.
For most flavors of Unix, you can just run the indexer using cron.