After java jar package starts, ssh connection closes automatically exit

nohup java -jar XXX.jar >log.out &

nohup after ssh connection is closed, and then any key operation guarantees jar

& The equivalent of running in the background, behind you can also enter the command

 > log.out   is where the log output

Guess you like

Origin www.cnblogs.com/Web-spring/p/12102459.html