使用openshift rhc tail命令 [英] Using openshift rhc tail command

查看:102
本文介绍了使用openshift rhc tail命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何尾随openshift日志文件?我发出了以下命令:

How do you tail openshift log files? I issued the following command:

rhc tail myapp

它似乎先显示错误行,然后停止,但没有退出.如果按ctrl + C,它将询问是否停止批处理.如何显示最后几个错误,并且可能逐页浏览?有向下翻页/向上翻页的快捷方式吗?

It seems to show first error line and then stops, but doesn't exit. If I press ctrl+C it asks whether to stop batch or not. How can I display last few errors and may be browse page by page? Is there page down/ page up shortcuts?

推荐答案

"rhc tail"命令读取每个日志文件的最后几行,并继续将后续的日志消息馈送到控制台.要查看整个日志文件,请查看:
https://www.openshift.com/faq/how-to-troubleshoot-应用程序使用日志

The 'rhc tail' command reads the last few lines of each of your log files and continues to feed subsequent log messages to your console. To view the entire log file, please review:
https://www.openshift.com/faq/how-to-troubleshoot-application-issues-using-logs

这篇关于使用openshift rhc tail命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆