介绍如何在UNIX、Linux和Mac平台上控制MySQL Enterprise Service Manager服务。Microsoft Windows支持几个额外的方法,将在在Windows上启动/停止MySQL Enterprise Monitor服务.
MySQL企业服务管理器安装了以下服务:
MySQL服务器
Tomcat服务器
使用脚本访问MySQL Enterprise Service Manager服务mysqlmonitorctl.sh
/mysqlmonitor.bat
它安装在MySQL Enterprise Service Manager安装目录的根目录中。要查看可用的选项,运行以下命令mysqlmonitorctl.sh帮助
.
的帮助
参数产生以下输出:
Shell >./mysqlmonitorctl.sh help ./mysqlmonitorctl.sh (start|stop|status|restart) ./mysqlmonitorctl.sh (start|stop|status|restart) mysql ./mysqlmonitorctl.sh (start|stop|status|restart) tomcat help - this screen start - start the service(s) stop - stop the service(s) restart - restart or start the service(s) status -报告服务状态
要自动启动所有Service Manager组件,请调用mysqlmonitorctl.sh开始
从您的启动脚本。
启动服务。
shell> ./mysqlmonitorctl.sh start ./mysqlmonitorctl.sh: mysql started nohup: redirect stderr to stdout启动mysqld守护进程,使用数据库从/opt/mysql/enterprise/monitor/mysql/data/ Using CATALINA_BASE: /opt/mysql/enterprise/monitor/apache-tomcat Using CATALINA_HOME: /opt/mysql/enterprise/monitor/apache-tomcat Using CATALINA_TMPDIR: /opt/mysql/enterprise/monitor/apache-tomcat Using JRE_HOME: /opt/mysql/enterprise/monitor/apache-tomcat
如果您试图启动服务,而它已经在运行,则会收到服务已经在运行的警告。
的重新启动
命令相当于执行停止
然后开始
操作。
重要的
服务管理器可能需要一段时间才能启动并在之后变得可用mysqlmonitorctl.sh开始
完成。
该脚本还可以检查Tomcat web服务器或MySQL存储库的状态。
shell> ./mysqlmonitorctl.sh status MySQL网络MySQL正在运行MySQL网络Tomcat正在运行
安装Service Manager后,可以配置MySQL Enterprise Monitor用户界面,详见第4.5节,“MySQL企业服务管理器配置设置”.