1.实时查看最后日志(默认10条)
# tail -f xxxxxx.log
2.查看结尾多少条日志
# tail -n30 -f xxxx.log
3.根据关键字查询日志
# cat xxxxx.log | grep '关键字' 或者 # grep '关键字' xxxx.log
1.实时查看最后日志(默认10条)
# tail -f xxxxxx.log
2.查看结尾多少条日志
# tail -n30 -f xxxx.log
3.根据关键字查询日志
# cat xxxxx.log | grep '关键字' 或者 # grep '关键字' xxxx.log