Linux journald相关
来自三线的随记
[root@compute-2 ~]# cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" [root@compute-2 ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core)
默认保存到 /run/log 下面
对于某些场景的日志记录不足以满足需求
mkdir /var/log/journal
等一会日志就会迁移到/var/log/journal下面了
不需要重启services
commands
journalctl --list-boots
journalctl -b *********
journalctl -b ********* -n ***
journalctl -u ****
To Be Continued
how to cancel it ? wdnmd