1、mysql!/bin/shport=netstat -lnt|grep 3306|wc -lif [ $port -ne 1 ];thenecho "mysql is stop"/etc/init.d/mysqld startelseecho "mysql is starting"fi 2、监控N...
MySQL_PORT=netstat -an|grep "LISTEN"|grep "3306"|awk -F ' ' '{print $4}'|awk -F ':' '{print $4}'
Last stable version: 1.1.2, please update docker