码迷,mamicode.com
首页 > 其他好文 > 详细

报错日志查看,定位问题

时间:2019-01-24 18:58:36      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:行号   back   tst   .net   问题   查找   head   ant   公网   

tail -F zixinyun.log | grep ‘‘ #监控最新的日志
tail -F zixinyun.log | grep ‘Traceback‘ #监控最新的错误日志
grep -C 15 -n ‘Traceback‘ zixinyun.log #查找报错信息
grep -C 15 -n ‘WORKER TIMEOUT‘ zixinyun.log #查找SQL超时信息
grep -C 15 -n ‘aaaaaaaa‘ zixinyun.log #查找特定信息


cat -n zixinyun.log |grep "Traceback" #查找"Traceback"的行号
cat -n zixinyun.log |tail -n +16909|head -n 20

 

curl myip.ipip.net # 查询公网出口IP/外网IP
ps -ef |grep python # 查看python详细进程
netstat -pant | grep 8082 # 查看8082端口的进程
ps aux|grep 进程号 # 查看进程详情

 

报错日志查看,定位问题

标签:行号   back   tst   .net   问题   查找   head   ant   公网   

原文地址:https://www.cnblogs.com/gaitman/p/10315885.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!