阅读背景:

linux 编写定时任务,查询服务是否挂掉

来源:互联网 

shell 脚本

#!/bin/bash

a=`netstat -unltp|grep fdfs|wc -l`

echo "$a"
if [ "$a" -ne "1" ];then
    `fdfs_storaged /etc/fdfs/storage.conf start`
fi
#!/bin/bash

a=`netstat -unltp|gr



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: