zoukankan      html  css  js  c++  java
  • 呕心沥血,nginx自动重启脚本唯一值

    呕心沥血,nginx自动重启脚本唯一值

    #!/bin/bash
    while true
    do
    A=`systemctl status nginx.service|grep running|awk '{print $3}'|tr -d '[()]'`
    if [ -z "$A" -a "$A" != "running" ];then
    echo $(date +%F%n%T) "nginx1.18不健康需要重启nginx..."
    /usr/bin/systemctl restart nginx.service
    sleep 10
    else
    echo $(date +%F%n%T) "nginx1.18正在运行健康状态running..."
    fi
    sleep 10
    done

    魅力男神
  • 相关阅读:
    Codeforces 526D Om Nom and Necklace (KMP)
    HDU
    HDU
    Codeforces 219D
    HDU
    HDU
    POJ
    HDU
    HDU
    第二次作业
  • 原文地址:https://www.cnblogs.com/capable/p/14960501.html
Copyright © 2011-2022 走看看