!/bin/bash #监控的网页地址url="http://dev2.jwsmed.com" #fastcgi启动/重启/停止脚本路径PROG=/data/fistsoft/php/sbin/php-fpm #fastcgi重启记录日志文件LOG=/data/services/logs/php_5525/restart.log #返回结果正常记录日志LOG2=/data/services/logs/php_5525/check.log #时间time=`date` #取得http状态码status=$(curl -H "dev2.jwsmed.com" -m 5 -L -s -w %{http_code} http://127.0.0.1 -o /dev/null) #如果不是200,就写入...
#!/bin/bash #监控的网页地址url="http://dev2.jwsmed.com" #fastcgi启动/重启/停止脚本路径PROG=/data/fistsoft/php/sbin/php-fpm #fastcgi重启记录日志文件LOG=/data/services/logs/php_5525/restart.log #返回结果正常记录日志LOG2=/data/services/logs/php_5525/check.log #时间time=`date` #取得http状态码status=$(curl -H "dev2.jwsmed.com" -m 5 -L -s -w %{http_code} http://127.0.0.1 -o /dev/null) #如果不是200,就写...