Linux journalctl 命令

Linux journalctl 命令1. journalctl 作用2. journalctl 的配置文件3. journalctl 用法3. journalctl -xe 常用参数参考1. journalctl 作用 查看所有日志&a

Linux journalctl 命令

  • 1. journalctl 作用
  • 2. journalctl 的配置文件
  • 3. journalctl 用法
  • 3. journalctl -xe 常用参数
  • 参考

1. journalctl 作用

查看所有日志(内核日志和 应用日志)
journalctl 是 centos7 上专有的日志管理工具

2. journalctl 的配置文件

日志的配置文件 /etc/systemd/journald.conf

3. journalctl 用法

  1. 查看所有日志(默认情况下 ,只保存本次启动的日志)
    journalctl
  2. 查看内核日志(不显示应用日志)
    journalctl -k
  3. 查看系统本次启动的日志
    journalctl -b
  4. 查看信息并有帮助信息
    journalctl -xe

3. journalctl -xe 常用参数

  1. -e, --pager-end
    Immediately jump to the end of the journal inside the implied pager tool.
    跳转到末尾。
  2. -x, --catalog
    Augment log lines with explanation texts from the message catalog. This will add explanatory help texts to log messages in the output where this is available.
    添加解释性帮助文本。

参考

https://blog.51cto/13598893/2072212

发布者:admin,转转请注明出处:http://www.yc00.com/web/1754581806a5178007.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信