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 &

posted @ 2018-12-30 16:26  致林  阅读(389)  评论(0编辑  收藏  举报