#!/bin/basha=`curl -o /dev/null -s -w %{http_code} "http://www.baidu.com"`if [ $a -eq 200 ]then echo okelse echo down| mail -s "mongod down" 825536458@qq.comfi
本文共 206 字,大约阅读时间需要 1 分钟。
#!/bin/basha=`curl -o /dev/null -s -w %{http_code} "http://www.baidu.com"`if [ $a -eq 200 ]then echo okelse echo down| mail -s "mongod down" 825536458@qq.comfi
转载于:https://blog.51cto.com/825536458/1908473