MySQL Enterprise Service Manager には次のサービスが含まれます。
MySQL Server。
Apache/Tomcat Server。
MySQL Enterprise Service Manager を停止、起動、再起動するには、/opt/mysql/enterprise/monitor/ ディレクトリ(UNIX)または /Applications/mysql/enterprise/monitor/ ディレクトリ(Mac OS X)にある スクリプトを、start、stop、または restartオプションをつけて、コマンドラインでから実行します。 利用可能なオプションは、 mysqlmonitorctl.sh help コマンドで確認できます。
help パラメータは次の出力を表示されます。
usage: ./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 - report the status of the service
すべてのService Managerのコンポーネントを自動開始するには、スタートアップスクリプトから mysqlmonitorctl.sh startを呼び出します。
サービスを実行するには、次のようにします。
shell> ./mysqlmonitorctl.sh start ./mysqlmonitorctl.sh : mysql started nohup: redirecting stderr to stdout Starting mysqld daemon with databases from /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/temp Using JRE_HOME: /opt/mysql/enterprise/monitor/java
すでに実行しているサービスを起動しようとすると、サービスがすでに実行していることが警告されます。
restart コマンドは、stop と start 操作を続けて実行する効果があります。
このスクリプトを使用して、Tomcat Web サーバまたは MySQL リポジトリのステータスをチェックできます。
shell> ./mysqlmonitorctl.sh status MySQL Network MySQL is running MySQL Network Tomcat is running
MySQL Enterprise Service Manager のインストール後、「MySQL Enterprise Service Manager 構成の設定とアドバイザのインストール」で説明されるとおり、ダッシュボードを設定することができます。
