MySQL Enterprise Monitor是专门为MySQL数据库而设计的一款企业级监控,能非常好地与MySQL各方面特性相结合,包括:MySQL的关键性能指标、主机、磁盘、备份、新特性相关以及各种场景下的架构配置,并支持从单节点到海量节点部署的环境。它不仅能够全面地监控MySQL的运行状态,还能及时发现潜在的问题并给出优化建议。MySQL Enterprise Monitor的安装和卸载也属于轻量级,相当的简单易用。本文描述了MySQL Enterprise Monitor的卸载过程。
有关MySQL Enterprise Monitor的安装请参考:
安装MySQL Enterprise Monitor
1、检查当前MySQL Enterprise Monitor 的配置信息
###查看当前运行的进程,并获取安装路径
# ps -ef|grep mysqld|grep monitor
###查看配置信息,当前的安装路径如下:
# cd /dbdata/mysql/enterprise/monitor
# more configuration_report.txt
MySQL Enterprise Monitor (Version 3.0.15.3058 : 3.0.15.3058)
Here are the settings you specified:
Application hostname and port: https://127.0.0.1:18443
Tomcat Ports: 18080 - 18443 (SSL)
MySQL Port : 13306
Use the following command to login to the MySQL Enterprise Monitor database:
mysql -u**** -p**** -P13306 -hlocalhost
# ls
apache-tomcat configuration_report.txt images licenses mysqlmonitorctl.sh README_ja.txt uninstall version.txt
bin etc java mysql README_en.txt support-files uninstall.dat
# /etc/init.d/mysql-monitor-agent stop
Shutting down MySQL Enterprise Agent service...[ OK ]
###改变目录到agent安装位置
# cd /opt/mysql/enterprise/agent
# ls
bin configuration_report.txt doc etc java lib licenses logs spool uninstall uninstall.dat
###卸载agent客户端
# ./uninstall
Do you want to uninstall MySQL Enterprise Monitor Agent and all of its modules? [Y/n]: y
----------------------------------------------------------------------------
Uninstall Status
Uninstalling MySQL Enterprise Monitor Agent
0% ______________ 50% ______________ 100%
#########################################
Info: Uninstallation completed
# /etc/init.d/mysql-monitor-server stop
# pwd
/dbdata/mysql/enterprise/monitor
# ./uninstall
Do you want to uninstall MySQL Enterprise Monitor and all of its modules? [Y/n]: y
----------------------------------------------------------------------------
Uninstall Status
Do you also want to remove all data, logs and other files in the MySQL and Tomcat instances under
'/dbdata/mysql/enterprise/monitor'?
Caution, this will remove all user created files, even if they were present before installing MySQL Enterprise Monitor, including the data files of the bundled MySQL server. You will *not* be able to undo this action. Do not remove files if you plan to install an update.
Do you really want to remove ALL data and log files inside those directories?
[y/N]: y
Uninstalling MySQL Enterprise Monitor
0% ______________ 50% ______________ 100%
#########################################
Info: Uninstallation completed
Press [Enter] to continue :
###检查进程是否存在
# ps -ef|grep mysql-monitor
root 14572 6544 0 14:25 pts/4 00:00:00 grep mysql-monitor
有关MySQL Enterprise Monitor的安装请参考:
安装MySQL Enterprise Monitor
1、检查当前MySQL Enterprise Monitor 的配置信息
###查看当前运行的进程,并获取安装路径
# ps -ef|grep mysqld|grep monitor
###查看配置信息,当前的安装路径如下:
# cd /dbdata/mysql/enterprise/monitor
# more configuration_report.txt
MySQL Enterprise Monitor (Version 3.0.15.3058 : 3.0.15.3058)
Here are the settings you specified:
Application hostname and port: https://127.0.0.1:18443
Tomcat Ports: 18080 - 18443 (SSL)
MySQL Port : 13306
Use the following command to login to the MySQL Enterprise Monitor database:
mysql -u**** -p**** -P13306 -hlocalhost
# ls
apache-tomcat configuration_report.txt images licenses mysqlmonitorctl.sh README_ja.txt uninstall version.txt
bin etc java mysql README_en.txt support-files uninstall.dat
2、卸载Enterprise Monitor agent
###停止agent客户端进程# /etc/init.d/mysql-monitor-agent stop
Shutting down MySQL Enterprise Agent service...[ OK ]
###改变目录到agent安装位置
# cd /opt/mysql/enterprise/agent
# ls
bin configuration_report.txt doc etc java lib licenses logs spool uninstall uninstall.dat
###卸载agent客户端
# ./uninstall
Do you want to uninstall MySQL Enterprise Monitor Agent and all of its modules? [Y/n]: y
----------------------------------------------------------------------------
Uninstall Status
Uninstalling MySQL Enterprise Monitor Agent
0% ______________ 50% ______________ 100%
#########################################
Info: Uninstallation completed
3、卸载Enterprise Monitor
###停止Enterprise Monitor进程# /etc/init.d/mysql-monitor-server stop
# pwd
/dbdata/mysql/enterprise/monitor
# ./uninstall
Do you want to uninstall MySQL Enterprise Monitor and all of its modules? [Y/n]: y
----------------------------------------------------------------------------
Uninstall Status
Do you also want to remove all data, logs and other files in the MySQL and Tomcat instances under
'/dbdata/mysql/enterprise/monitor'?
Caution, this will remove all user created files, even if they were present before installing MySQL Enterprise Monitor, including the data files of the bundled MySQL server. You will *not* be able to undo this action. Do not remove files if you plan to install an update.
Do you really want to remove ALL data and log files inside those directories?
[y/N]: y
Uninstalling MySQL Enterprise Monitor
0% ______________ 50% ______________ 100%
#########################################
Info: Uninstallation completed
Press [Enter] to continue :
###检查进程是否存在
# ps -ef|grep mysql-monitor
root 14572 6544 0 14:25 pts/4 00:00:00 grep mysql-monitor