外观
http心跳检测
http心跳检测
URL="http://192.168.22.191/index.html"
THHP_CODE=`curl -o /dev/null -s -w "%{http_code}" "${URL}"`
if [ $HTTP_CODE != 200 ]
then
echo -e "apache code:"$HTTP_CODE""
fi外观
46字小于1分钟
2024-10-26
http心跳检测
URL="http://192.168.22.191/index.html"
THHP_CODE=`curl -o /dev/null -s -w "%{http_code}" "${URL}"`
if [ $HTTP_CODE != 200 ]
then
echo -e "apache code:"$HTTP_CODE""
fi