分享一个Shell脚本监控Mysql数据库的脚本 2021年6月1日2022年10月24日乔伊Linux运维Leave a comment /etc/init.d/mysql start或systemctl start mysql crotab里面加入定时任务(5分钟检测一次) */5 * * * * bash /root/mysql-listen.sh