首页进入到当前jar包的目录,再执行以下命令,将 test.jar 改成自己的jar包名称即可。 nohup java -jar test.jar >temp.txt 2>&1 & 在此做个记录。
nohup java -jar test.jar >temp.txt 2>&1 &