journalctl:Linux(systemd)系统中的日志查询与管理命令,用于查看、筛选和跟踪由 systemd-journald 收集的系统日志与服务日志。(也常用于排查服务启动失败、查看内核/启动日志等。)
/ˈdʒɜːrnəl ˌsiː tiː ˈɛl/
I checked the logs with journalctl.
我用 journalctl 查看了日志。
After the update, we used journalctl -u nginx --since "today" -f to follow the Nginx service logs in real time and locate the error.
更新后,我们用 journalctl -u nginx --since "today" -f 实时跟踪 Nginx 服务日志并定位错误。
由 journal(日志/日记)+ ctl(control 的缩写,表示“控制/管理”)组合而成;字面意思接近“日志管理工具”。它与 systemd 的日志系统(journald)配套使用。