apache 監控腳本

#! /bin/bash curl -I  192.168.1.121 2> /dev/null | head -1 |grep -q "200 ok" if [ $? -eq 0 ]; then echo "apache ok" else /usr/bin/killall -9 httpd &> /dev/null /usr/local/aapache/bin/apachectl start fi
相關文章
相關標籤/搜索