到xxx.jar目录下执行: nohup java -jar xxx.jar > people.log 2>&1 & – 运行jar包并把日志写入到people.log中 tail -f people.log --查看运行日志