我正在尝试执行以下操作:
monit stop mysqld monit: Cannot connect to the monit daemon. Did you start it with http support?
它只有当我停止monit服务时才起作用。
你有什么build议吗?
确保您已启用embedded式Web服务器。 这个monit stop ...命令在内部使用它。
# Monit has an embedded web server which can be used to view status of # services monitored and manage services from a web interface. See the # Monit Wiki if you want to enable SSL for the web server. set httpd port 2812 and use address localhost # only accept connection from localhost allow localhost # allow localhost to connect to the server and allow admin:monit # require user 'admin' with password 'monit'
如果您省略此“使用地址本地主机”行,请更改密码。
请张贴您的监视configuration。 monit stop进程引用configuration节中定义的进程的名称。 所以,如果你有一个MySQL的configuration条目,它应该看起来像check process mysql with pidfile...
您的monit stop命令应该使用与configuration文件中“process”之后的单词相同的名称。