在 RHEL7 上,systemd-journald
接管了许多曾经由rsyslogd
. 无论是由于 bug 还是这两个守护进程之间的冲突,有时/dev/log
都会丢失。因此,依赖syslog(3)
调用的程序将无法正常运行,例如,包括logger
. 如何恢复/dev/log
插座?
我使用带有 ssh 工具的 Centos Linux 操作系统。我每分钟都会收到这些消息。
Message from syslogd@rakhsh4 at May 6 17:48:34 ...
kernel:[Hardware Error]: Corrected error, no action required.
Message from syslogd@rakhsh4 at May 6 17:48:34 ...
kernel:[Hardware Error]: CPU:6 (10:9:1) MC4_STATUS[Over|CE|MiscV|-|AddrV|CECC]: 0xdc02400021080a13
Message from syslogd@rakhsh4 at May 6 17:48:34 ...
kernel:[Hardware Error]: Error Addr: 0x0000000654f3f030
Message from syslogd@rakhsh4 at May 6 17:48:34 ...
kernel:[Hardware Error]: MC4 Error (node 1): DRAM ECC error detected on the NB.
Message from syslogd@rakhsh4 at May 6 17:48:34 ...
kernel:[Hardware Error]: cache …
Run Code Online (Sandbox Code Playgroud)