java - Launching jar file on Azure virtual machine -
i developing java server-like application (though not server itself, more bot social network) , decided use azure virtual machine deploy app on. i've chosen ubuntu virtual machine. uploaded .jar file on server, connected bash shell windows , ssh (as described in manual azure). able launch file java -jar server.jar
, works. problem when close shell on home computer, app shuts down on server too. question how launch .jar file in way won't exit once close ssh session?
run command in background nohup
:
nohup java -jar server.jar &
Comments
Post a Comment