1
0

refactor(server): 更新 Java 版本并优化停止脚本

- 将 Java 版本从17.0.16+8 升级到 21.0.8+9
- 优化停止脚本以更准确地获取应用进程 ID
- 添加使用 jps 命令获取进程 ID 的备选方案
This commit is contained in:
2025-09-18 09:30:47 +08:00
parent 19dd19a9f8
commit 68aa6ff33f
2 changed files with 11 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/bash
nohup /home/ubuntu/jdk-17.0.16+8/bin/java -jar /home/ubuntu/app/leopard-server-1.0.0.jar --spring.profiles.active=build --spring.web.resources.static-locations=file:/home/ubuntu/app/dist --logging.parent=/home/ubuntu/app > /dev/null 2>&1 &
nohup /home/ubuntu/jdk-21.0.8+9/bin/java -jar /home/ubuntu/app/leopard-server-1.0.0.jar --spring.profiles.active=build --spring.web.resources.static-locations=file:/home/ubuntu/app/dist --logging.parent=/home/ubuntu/app > /dev/null 2>&1 &