美文网首页
重启进程脚本

重启进程脚本

作者: 风亡小窝 | 来源:发表于2020-04-30 16:41 被阅读0次
    pids=$(ps -ef | grep -E "cs-client|cs-server" | awk '{print $2}')
    
    for pid in $pids
    do
        echo "killed $pid"
        kill -2 $pid
    done
        
    
    cd ~/services/qiye/apps/short
    nohup ./short-qiye >> ~/qiye/short.log 2>&1 &
    

    相关文章

      网友评论

          本文标题:重启进程脚本

          本文链接:https://www.haomeiwen.com/subject/klctghtx.html