预测性维护平台会自动重启导致平台频繁报502,每3分钟重启一次
问题描述:由于预测性维护看门狗脚本是通过curl命令判断服务是否正常,如果服务器系统没有用我们提供的包,可能会缺少curl命令,导致看门狗脚本误判断服务异常自动重启服务
问题现象:前端经常报502错误,通过ps命令查看equ进程,服务启动时间每3分钟更新一次,手动执行看门狗脚本报错
#进入预测性维护目录cd /home/seekcy/equipment-prediction#执行看门狗脚本./watchdog
出现如下提示,则说明服务器没有curl命令
./watchdog.sh: 行 30: curl: 未找到命令
./watchdog.sh: 第 34 行: [: : 需要整数表达式
-Dlog.dir=/home/seekcy/equipment-prediction/equipment-prediction/logs -XX:+UseG1GC -Xms1g -Xmx1g -XX:-OmitStackTraceInFastThrow -Djava.io.tmpdir=/home/seekcy/tmpdir
Stopping the equipment-prediction.jar …\c
.SUCCESS
The equipment-prediction.jar is running.(1918085)
1.先尝试执行命令安装
sudo apt-get update && sudo apt-get install -y curl
2.如果安装没有报错,输入命令返回如下图结果说明curl命令成功安装
which curl

3.如果安装异常,联系问题小组排查
转载请注明作者和出处,并添加本页链接。
原文链接:
//svn.seekcy.com/869