Linux journalctl 命令
- 1. journalctl 作用
- 2. journalctl 的配置文件
- 3. journalctl 用法
- 3. journalctl -xe 常用参数
- 参考
1. journalctl 作用
查看所有日志(内核日志和 应用日志)
journalctl 是 centos7 上专有的日志管理工具
2. journalctl 的配置文件
日志的配置文件 /etc/systemd/journald.conf
3. journalctl 用法
- 查看所有日志(默认情况下 ,只保存本次启动的日志)
journalctl - 查看内核日志(不显示应用日志)
journalctl -k - 查看系统本次启动的日志
journalctl -b - 查看信息并有帮助信息
journalctl -xe
3. journalctl -xe 常用参数
- -e, --pager-end
Immediately jump to the end of the journal inside the implied pager tool.
跳转到末尾。 - -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条)