shell共1篇
利用shell脚本监控MySQL进程-西瓜社

利用shell脚本监控MySQL进程

#!/bin/bash #/usr/bin/nmap localhost | grep 3306 #lsof -i:3306 MYSQLPORT=`netstat -na|grep 'LISTEN'|grep '3306'|awk -F[:' ']+ '{print $5}'` function checkMysqlStatus(){ /usr/bin/my...
西瓜苗的头像-西瓜社西瓜苗6年前
142720