安装monit后我做monit status myproc我得到“错误连接到monit守护进程”
我读到了某个地方
The status command won’t work in the
case that monit is running indaemon
mode without its http support – the
command ‘monit status’ in such case
tries to get the status from the
daemon via http/tcp. To start the http
interface you need to add the ‘set
httpd …’ statement to
theconfiguration.
这还是正确的吗?该帖子来自2005年
解决方法
我正努力在我的ubuntu服务器上设置monit,这里有几件事要检查:
>确保在/ etc / default / monit中设置startup = 1
>确保取消注释/ etc / monit / monitrc中的httpd参数
/ etc / monit / monitrc中的最后一个“gotcha”:
set daemon 120 # check services at 2-minute intervals # with start delay 240 # optional: delay the first check by 4-minutes (by # # default Monit check immediately after Monit start)
我首先没有注释“启动延迟240”行.如果使用此选项,httpd服务器似乎不会立即启动.我花了一段时间才意识到为什么monit正在运行但是httpd服务器没有运行.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。