`

检测网站是否正常

 
阅读更多
#!/bin/sh

URL=” http://bbs.example.cn”
RETURN=`curl -o /dev/null -s -w “%{http_code}” “${URL}”`
if [ $RETURN != '200' ];then
#重启服务命令
./restart
fi
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics