#当前窗口退出 项目关闭$ java -jar test.jar
#当前窗口关闭 项目关闭$ nohup java -jar test.jar &#当前窗口关闭 项目不关闭$ nohup java -jar test.jar &#当前窗口关闭 项目不关闭 并写日志$ nohup java -jar test.jar >log.txt &
linux下后台运行jar包
原文:https://www.cnblogs.com/code-bugs/p/10317926.html