黄志涛
MongoDB 文件损坏恢复
分开部署手册
充电桩常见问题处理
普洛斯脏数据处理
能耗排查
Linux 系统 Docker 日志限制
后台中台延迟启动设置
Linux 项目数据目录迁移
能耗阈值设置
RabbitMQ服务弱口令问题
定时备份Mysql 功能调整
MQTT版本升级
从 Google Drive 下载部署包
通过同一个端口访问网站或者连接设备
数据库异地备份方案
本文档使用 MrDoc 发布
-
+
首页
后台中台延迟启动设置
## 背景说明 服务器重启后,中台没有正常运行,可能是因为中台比数据库先启动,引发了连接数据库异常导致的。 ## 操作步骤 在 D:\acrel-iot\server 目录下exchange.bat 和 eiot.bat 增加一行等待命令后重启中台和后台。 ```bash timeout /t 30 ``` 举例: 1、新版的eiot.bat ```bash @echo off netstat -an | find ":19900" | find "LISTENING" > nul if errorlevel 1 ( echo start eiot call D:\acrel-iot\bin\util\EIOTStartUp.bat ) ``` 调整为 ```bash @echo off netstat -an | find ":19900" | find "LISTENING" > nul if errorlevel 1 ( timeout /t 30 echo start eiot call D:\acrel-iot\bin\util\EIOTStartUp.bat ) ``` 2、旧版的eiot.bat ```bash java -jar -Dfile.encoding=UTF-8 D:\acrel-iot\server\eiot\service-eiot-web-1.0.jar --spring.config.location=classpath:/,file:./config/ --spring.profiles.active=prod-win ``` 调整为 ```bash timeout /t 30 java -jar -Dfile.encoding=UTF-8 D:\acrel-iot\server\eiot\service-eiot-web-1.0.jar --spring.config.location=classpath:/,file:./config/ --spring.profiles.active=prod-win ``` 3、新版的exchange.bat ```bash @echo off netstat -an | find ":20001" | find "LISTENING" > nul if errorlevel 1 ( echo start exchange call D:\acrel-iot\bin\util\ExchangeStartup.bat ) ``` 调整为 ```bash @echo off netstat -an | find ":20001" | find "LISTENING" > nul if errorlevel 1 ( timeout /t 30 echo start exchange call D:\acrel-iot\bin\util\ExchangeStartup.bat ) ``` 2、旧版的exchange.bat ```bash java -jar -Dfile.encoding=UTF-8 D:\acrel-iot\server\exchange\service-exchange-1.0.jar --spring.config.location=classpath:/,file:./config/ --spring.profiles.active=prod-win ``` 调整为 ```bash timeout /t 30 java -jar -Dfile.encoding=UTF-8 D:\acrel-iot\server\exchange\service-exchange-1.0.jar --spring.config.location=classpath:/,file:./config/ --spring.profiles.active=prod-win ``` 注意:旧版的脚本只需要在文件最上面加上等待命令就可以了,不能直接照抄。
admin
2025年4月14日 10:12
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
分享
链接
类型
密码
更新密码