简体   繁体   中英

How to stay on run .jar file after exit the terminal via ssh in Linux?

I want to run jar file from Linux terminal using ssh command. for that i am using bellow command

screen -d -m -S minecraft java -jar myfile.jar [OR] screen java -jar myfile.jar

its running fine upto detach/exit. After that its not working.

How can i achieve will run myfile.jar 24/7 after detach/exit?

Thanks

nohup screen -d -m -S minecraft java -jar myfile.jar应该可以帮助

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM