springboot启动脚本

  1. jar包同目录添加 start.sh
  2. 添加启动权限chmod 755 start.sh
  3. ./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