为什么我无法访问 2812 端口上的 Gui 面板

为什么我无法访问 2812 端口上的 Gui 面板

我关注了http://fosscasts.com/screencasts/6-System-Monitoring-With-Monit

set daemon 20
set logfile /var/log/monit.log

set mailserver smtp.gmail.com port 587
        username "myemail" password "mypswd"
        using tlsv1
        with timeout 30 seconds

set alert myemail

set httpd port 2812 and
        use address myurldns.net
        allow myurldns.net
        allow admin:monit


check system localhost
        if loadavg (1min) > 4 then alert
        if loadavg (5min) > 2 then alert
        if memory usage > 75% then alert
        if cpu usage (user) > 70% then alert
        if cpu usage (system) > 30% then alert
        if cpu usage (wait) > 20% then alert

check process apache2 with pidfile /var/run/apache2.pid
        group www
        start program = "/etc/init.d/apache2 start"
        stop program  = "/etc/init.d/apache2 stop"
        if children > 250 then restart
        if loadavg(5min) greater than 10 for 8 cycles then stop
        if 3 restarts within 5 cycles then timeout

当我跑步时

 sudo /etc/init.d/monit start

启动守护进程,但我无法访问 2812 端口上的 GUI 面板

答案1

错误日志也可以显示通知。即使出现此消息,预期任务是否真的按预期工作?例如,Apache 显示“Apache 在端口 80 上启动”和“启动子线程”等内容。没什么大不了的,因为它只是通知您。

相关内容