• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 自動監控Web服務進程的shell腳本(2)

    發表于:2013-01-04來源:ITEYE作者:gaozhonghui點擊數: 標簽:web測試
    #status: 0,http down 1,http ok 2,http down but ping ok if nc -vv -z -w 2 $server_ip $server_port /dev/null 21;then status=1 else if nc -vv -z -w 3 $server_ip $server_port /dev/null 21;then status=1 el

      #status: 0,http down 1,http ok 2,http down but ping ok

      if nc -vv -z -w 2 $server_ip $server_port > /dev/null 2>&1;then

      status=1

      else

      if nc -vv -z -w 3 $server_ip $server_port > /dev/null 2>&1;then

      status=1

      else

      if ping -c 1 $server_ip > /dev/null 2>&1;then

      status=2

      else

      status=0

      fi

      fi

      fi

      if [ x$status != x"1" ];then

      PID=`function_getPID ${server_name}`

      if [ x$PID != x ];then

      function_jstackinfo ${server_name}

      function_restart ${server_name}

      else

      function_startup ${server_name}

      fi

      fi

      done

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>