1、启动脚本
通过启动脚本start.sh找到项目日志存放目录
nohup /data/application >> /data/logs/test.log 2>&1 &
2、找到日志
cd /data/logs/test.log
3、查找日志
tail -n 100000 test.log |grep -C 30 'Error'
通过启动脚本start.sh找到项目日志存放目录
nohup /data/application >> /data/logs/test.log 2>&1 &
cd /data/logs/test.log
tail -n 100000 test.log |grep -C 30 'Error'
本文标题:linux服务器日志查错
本文链接:https://www.haomeiwen.com/subject/ggzzpftx.html
网友评论