- 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 &
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 &