Dockerhub地址:​​https:///repository/docker/hcymysql/mysql_monitor​

​Github地址:​​https:///hcymysql/mysql_monitor​

mysql_monitor提供podman镜像_mysql

OS: Cenots7/8

shell> yum install podman* container* -y


1) 拉取镜像

shell> podman pull /hcymysql/mysql_monitor:2022-02-05_GA


2) 运行容器mysql_monitor_v1

shell> podman run -itd  --name mysql_monitor_v1  -p 80:80 -p 3306:3306 hcymysql/mysql_monitor:2022-02-05_GA


3) 进入容器mysql_monitor_v1

shell> podman exec -it mysql_monitor_v1 /bin/bash


4)开机自启动

shell> chmod +x /etc/rc.d/rc.local
shell> echo '/usr/bin/podman start mysql_monitor_v1' >> /etc/rc.local


5) 页面访问

http://yourIP/mysql_monitor/mysql_status_monitor.php
http://yourIP/mysql_monitor/mysql_repl_monitor.php

加一个超链接,可方便地接入你们的自动化运维平台里。 

mysql_monitor提供podman镜像_mysql_02