我试图在我的ubuntu系统中运行monit。我按照链接的完整步骤进行了操作。即(https://www.tecmint.com/how-to-install-and-setup-monit-linux-process-and-services-monitoring-program/)每件事都很好我没有得到任何错误,但仍然当我尝试在浏览器上加载它(这个网站无法访问localhost拒绝连接)在浏览器上显示我没有得到任何解决方案。
[未注释的代码] [1]
set httpd port 2812 and
use address 10.0.4.115 # only accept connection from localhost
allow 10.0.4.115 # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
allow @monit
allow @users readonly
kundan@CHEALPHADT005:~$ sudo monit status
Monit 5.25.1 uptime: 2h 35m
System 'CHEALPHADT005'
status OK
monitoring status Monitored
monitoring mode active
on reboot start
load average [0.43] [0.45] [0.22]
cpu 0.7%us 0.4%sy 0.5%wa
memory usage 2.3 GB [29.6%]
swap usage 0 B [0.0%]
uptime 2h 35m
boot time Fri, 15 Feb 2019 12:21:56
data collected Fri, 15 Feb 2019 14:57:15
你似乎编辑了127.0.0.1并在两个地方用10.0.4.115替换它。阅读您在上面发布的前3行旁边的评论。
我建议你删除'使用地址'行并制作多个允许行。
set httpd port 2812
allow localhost
allow 10.0.3.115