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