nohup java -Dserver.port=8087 -Dspring.config.location=application-generic.yml -jar ${APP_HOME}/${APP_NAME} >/dev/null 2>&1

nohup java -Dserver.port=8087 -Dspring.config.location=application-generic.yml  -jar ${APP_HOME}/${APP_NAME} >/dev/null 2>&1

#-Dserver.port为指定端口启动

#-Dspring.config.location为指定spring配置文件的位置 

原文地址:https://www.cnblogs.com/curedfisher/p/13266748.html