普通运行 jar java -jar xxx .jar 当前 shell 窗口的后台运行 java -jar xxx .jar & 关闭 shell 后依然运行(信息会在当前目录下的nohup.out) nohup java -jar xxx.jar &