Linux solr 启动命令,linux – 重启Solr的正确方法是什么
在
Websolr,我们使用自定义init.d脚本和
Monit的组合来启动Solr并确保它保持运行.
也就是说,对于更简单的自托管设置,如果您的系统具有Upstart可用,我建议使用Upstart启动和停止Solr. Upstart脚本具有相当简单的优点,Upstart可以在崩溃时重新启动进程.另外,启动和停止命令(分别为启动和停止)很容易记住,以便下次需要让Solr知道新的配置.
这是一篇很好的博客文章,涵盖了starting Solr with Upstart.我已经在下面复制了他们的新贵脚本;请务必更新相关路径以匹配您的系统:
description "Solr Search Server"
# Make sure the file system and network devices have started before
# we begin the daemon
start on (filesystem and net-device-up IFACE!=lo)
# Stop the event daemon on system shutdown
stop on shutdown
# Respawn the process on unexpected termination
respawn
# The meat and potatoes
exec /usr/bin/java -Xms128m -Xmx256m -Dsolr.solr.home=/path/to/solr/home -Djetty.home=/path/to/jetty -jar /path/to/jetty/start.jar >> /var/log/solr.log 2>&1
《新程序员》:云原生和全面数字化实践50位技术专家共同创作,文字、视频、音频交互阅读总结
以上是生活随笔为你收集整理的Linux solr 启动命令,linux – 重启Solr的正确方法是什么的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: linux中普通用户用友所有权限,lin
- 下一篇: linux中的jobs命令,Linux