Article From:

After Jenkins has finished building the springboot project, usejava -jar xx.jarThe construction will continue, but use itnohuo java -jar xx.jar &It will only start once and then shut down. What effective and stable way to keep it running?

Answer 0:

You need to use the following commands to continue running:
BUILD_ID=dontKillMe nohup java -jar /var/lib/xxx/xxx.jar &

Answer 1:

linux Init.d, SYSTEMd, supervisor can all be

Leave a Reply

Your email address will not be published. Required fields are marked *