我有monit运行和工作(我设置了一个虚假的警告正在发送),但在进程列表中看不到任何称为“monit”的二进制文件。 此外,如果我用最新的进程对进程进行sorting,我所看到的唯一的事情就是有关monit发送电子邮件的过程 – 我没有看到monit二进制文件本身。
更多信息
我用apt-get monit安装了它
我开始service monit start
#ps -ef | grep monit 根29985 23882 0 02:07 pts / 0 00:00:00 grep --color = auto monit`
这听起来像你没有在后台启动它。 在/etc/monit/monitrc取消注释以下行:
## Start Monit in the background (run as a daemon): # set daemon 120 # check services at 2-minute intervals
运行它作为守护进程。 重新启动Monit并用psvalidation,你会看到类似这样的内容:
$ ps -ef | grep [m]onit root 8530 1 0 09:10 ? 00:00:00 /usr/bin/monit