linux - Monit 守护程序 - 连接到 monit 守护程序时出错

我安装了monit并尝试使用以下命令检查状态。

monit status

但最终会出现以下错误。

monit: error connecting to the monit daemon

我该如何解决这个问题?

最佳答案

编辑 vim /etc/monit/monitrc,从第 118 行开始并取消注释以下行

 set httpd port 2812
    use address localhost  # only accept connection from localhost
    allow localhost        # allow localhost to connect to the server and
    allow admin:monit

sudo monit reload生效

Read more

https://stackoverflow.com/questions/28187786/

相关文章:

linux - ufw Linux防火墙拒绝和拒绝的区别

linux - 更改/etc/profile 后,我需要做什么来重置我的 shell?

linux - 使用 PDFtk 删除 pdf 文件的最后一页?

c - 使用 LD_PRELOAD 指定多个文件

ssh - 从 PPK 文件创建 PEM

linux - 从 Linux 命令行写入串行端口

javascript - 如何在没有 IDE 的情况下构建和部署三星 SmartTV 应用程序(例如

linux - 使用 iconv 将 UTF-16LE 转换为 UTF-8

c - 结构中零长度数组的目的是什么?

c - malloc 期间内核中发生了什么?