命令:nohup java -jar xxxxx.jar & xxxxx.jar 为你的jar包名,运行后需要查看日志的话 在同目录下会生成一个 nohup.out文件 tail -f nohup.out就可以看到详细日志了