摘要: vim mysql.sh #/bin/bash num=$(mysql -e "show slave status \G" grep yes |awk -F ':' ' {print $2}'|wc -l) echo $num if [ $num -eq 2 ]; then echo "mysql 阅读全文
posted @ 2020-06-30 17:28 yunwei 阅读(4) 评论(0) 推荐(0)