我安装了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/