简体   繁体   English

使用Monit监控Solr

[英]Monitoring Solr using Monit

I'm new to Solr and Monit. 我是Solr和Monit的新手。 I have a Rails 3.2 app with Solr, how do you configure monit to handle Solr? 我有一个带有Solr的Rails 3.2应用程序,如何配置监控Solr的监视器?

Cheers, and Thanks, Zeck 干杯,谢谢,Zeck

To handle solr using monit you need to config it in the monitrc file which is present in /etc/monit/ directory. 要使用monit处理solr,您需要在/ etc / monit /目录中存在的monitrc文件中对其进行配置。

Go to the directory 转到目录

1) cd /etc/monit 1)cd / etc / monit

and edit the monitrc file using sudo. 并使用sudo编辑monitrc文件。

2) sudo nano monitrc 2)须藤纳米监控

At the end of the file past the code given in the link 在文件末尾经过链接中给出的代码

https://gist.github.com/SammyLin/cc367a8a2fe552bcbb1f https://gist.github.com/SammyLin/cc367a8a2fe552bcbb1f

Save the file and reload the monit using 保存文件并使用重新加载监视

3) sudo monit reload 3)sudo monit重新加载

Now monit will take care of the solr. 现在,monit将负责解决solr。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM