我安装了monit,并try 使用下面的命令判断状态.
monit status
但最终会出现以下错误.
monit: error connecting to the monit daemon
我该怎么解决这个问题?
我安装了monit,并try 使用下面的命令判断状态.
monit status
但最终会出现以下错误.
monit: error connecting to the monit daemon
我该怎么解决这个问题?
编辑vim /etc/monit/monitrc
,从第118行开始,并在第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
美元才能生效