Centos 7 安装并配置monit

Monit 是一个开源的linux 程序,用来监控程序,并且在必要的时候重启.


首先需要安装epel repo:

yum install epel-release


yum install monit

将monit加入开机自启动并且start monit进程:

systemctl enable monit
systemctl start monit

查看monit 状态:

systemctl status monit






check process named with pidfile /var/run/named/named.pid
start program "/usr/bin/systemctl start named.service"
stop program "/usr/bin/systemctl stop named.service"
if failed host port 53 type tcp protocol dns then restart
if failed host port 53 type udp protocol dns then restart



Leave a Reply

Your email address will not be published. Required fields are marked *

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.