- 将 Java 版本从17.0.16+8 升级到 21.0.8+9 - 优化停止脚本以更准确地获取应用进程 ID - 添加使用 jps 命令获取进程 ID 的备选方案
4 lines
252 B
Bash
4 lines
252 B
Bash
#!/bin/bash
|
|
|
|
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 &
|