摘要:目的:当服务挂掉后自动重启服务 方案一:crontab 定时任务检测与重启。 1、创建服务运行检测与重启脚本: appRestart.sh #!/bin/sh # 进行jar所在目录 cd /opt/app/ source /etc/profile # 查询程序是否存活 project=`ps -e
阅读全文
posted @ 2022-03-11 11:07
随笔 - 86, 文章 - 0, 评论 - 45, 阅读 -
21万
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
导航公告
搜索合集随笔分类随笔档案
最新评论
|
03 2022 档案
摘要:目的:当服务挂掉后自动重启服务 方案一:crontab 定时任务检测与重启。 1、创建服务运行检测与重启脚本: appRestart.sh #!/bin/sh # 进行jar所在目录 cd /opt/app/ source /etc/profile # 查询程序是否存活 project=`ps -e
阅读全文
posted @ 2022-03-11 11:07
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Powered by:
|