PerKins Zhu

Le vent se lève,il faut tenter de vivre.

导航

2022年3月11日

摘要: 目的:当服务挂掉后自动重启服务 方案一:crontab 定时任务检测与重启。 1、创建服务运行检测与重启脚本: appRestart.sh #!/bin/sh # 进行jar所在目录 cd /opt/app/ source /etc/profile # 查询程序是否存活 project=`ps -e 阅读全文

posted @ 2022-03-11 11:07 PerKins.Zhu 阅读(381) 评论(0) 推荐(0) 编辑