Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想监控 systemd-journal 的事件和日志。没有找到任何我可以使用的命令。我正在寻找类似“tail -100f”的东西,它可以向我展示 systemd-journal 的解码事件
该journalctl实用程序显示来自 systemd 单元的日志。systemd-journal是一个系统单位。因此,您可以使用以下内容:
journalctl
systemd-journal
$ journalctl --unit systemd-journald --lines 100 --follow
在 CentOS 7.5 上测试
journalctl -u gunicorn | tail -n 100