debian 上安装monit 来监控 Mr9SM

因为目前V6 稍微有点小bug,会造成程序无规律的宕机,因此考虑安装monit 来监控mr9sm 主程序

安装

apt-get install monit

安装完毕,配置文件是

/etc/monit/monitrc

你可以在monitrc 上修改你的监测频率以及web 端口

在最下面添加(如果你用的是debian):

check process mr9sm with pidfile /var/run/mr9sm.pid
start program = “/usr/sbin/service mr9sm start”
stop program = “/usr/sbin/service mr9sm stop”

保存后运行monit -t 检查语法,如果没有问题,直接monit restart既可以

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.