简体   繁体   中英

Monit daemon - error connecting to the monit daemon

I installed monit and tried to check the status using below command.

monit status

But end up with below error.

monit: error connecting to the monit daemon

How can I fix this?

edit vim /etc/monit/monitrc , starting from line 118 and uncomment below lines

 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 to take affect

Read more

Sometimes the problem appears because loopback interface is down . We should bring up the lo interface as follow

root@server:~# ifup lo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM