Use the nohup command shell scripting launch java application, and use the plug-in configuration file

nohup

nohup command: If you are running a process, and you feel that the process will not end when you exit your account, you can use the nohup command. The command to exit your account / continue to run the process after closing the corresponding terminal.

All default output the job is redirected to a file named in nohup.out.

 

deploy.sh content

nohup java -Xms400m -Xmx400m -XX:NewSize=200m -XX:MaxNewSize=200m -jar seckill.jar --spring-config-addition-location=/var/www/seckill/application.properties

 

Behind --spring-config-addition-location profile can additionally specify

Guess you like

Origin www.cnblogs.com/skychmz/p/11493175.html