在linux服务器上运行jar包 java -jar test.jar 后台运行 nohup java -jar test.jar & 加打印日志 nohup java -jar test.jar > temp.txt &