spring boot重启脚本

Posted 致林

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring boot重启脚本相关的知识,希望对你有一定的参考价值。

  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 &

以上是关于spring boot重启脚本的主要内容,如果未能解决你的问题,请参考以下文章