shell腳本之監控mysql數據庫。

1 #!/bin/bash 2 #grep -v grep 就是查找不含有 grep 字段的行 3 status=`/etc/init.d/mysql status | grep running | wc -l` 4 process=`ps -ef | grep mysql | grep -v grep | wc -l` 5 6 port=`lsof -i:3306 | gr
相關文章
相關標籤/搜索