10bet网址
MySQL Enterprise Monitor 8.0手册
相关的文档10bet官方网站 下载本手册
PDF(美国Ltr)- 6.1 mb
PDF (A4)- 6.1 mb


4.4启动/停止MySQL Enterprise Monitor服务

介绍如何在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企业服务管理器配置设置”

在Windows上启动/停止MySQL Enterprise Monitor服务

您可以通过以下其他方式停止或启动MySQL Enterprise Service Manager服务:

  • 开始/停止Windows开始菜单上的MySQL Enterprise Monitor Services项。

  • 服务方格微软管理控制台.的任意一个右键单击MySQL企业服务来显示可用选项。

  • Windows命令行,使用sc命令。

    从命令行中,服务名称为mysqlenterprisetomcat而且mysqlenterprisemysql

    例如:

    Shell > sc start mysqlenterprisemysql
    请注意

    命令行终端必须使用以管理员身份运行选择。