参考:
https://blog.csdn.net/He_Xiang_Yi/article/details/109353000
创建文件
touch consoleMsg.log
执行命令
nohup java -jar xxx.jar > consoleMsg.log 2>&1 &
这时项目运行日志便已经存储在consoleMsg.log中了:
查看项目运行日志:
tailf consoleMsg.log | grep --line-buffered findUserList

参考:
https://blog.csdn.net/He_Xiang_Yi/article/details/109353000
创建文件
touch consoleMsg.log
执行命令
nohup java -jar xxx.jar > consoleMsg.log 2>&1 &
这时项目运行日志便已经存储在consoleMsg.log中了:
查看项目运行日志:
tailf consoleMsg.log | grep --line-buffered findUserList