- jar包同目录添加 start.sh
- 添加启动权限chmod 755 start.sh
- ./start.sh
ps -ef|grep test |grep -v grep|awk ‘{print $2}‘|xargs kill
nohup java -jar test.jar --spring.config.location=./application.properties,./properties2.properties,./properties3.properties &
原文地址:https://www.cnblogs.com/bincoding/p/10199805.html
时间: 2024-11-05 23:18:55