1. 程式人生 > >spring boot重啟腳本

spring boot重啟腳本

ati boot rep con fig clas cat pro per

  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重啟腳本