Centos 有两个“小时”的日志,UTC 和 GMT,为什么?

Centos 有两个“小时”的日志,UTC 和 GMT,为什么?

我的日志目前包含两个时区,你知道它从何而来以及如何修复它吗?这是我第一次在系统上看到这种情况。

该系统在装有 CentOS 5 的 Virtuozzo 容器内运行。

以下是一小段内容:

May 11 13:51:37 dido sshd[13443]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XXXXXXXXXXX  user=root
May 11 13:51:39 dido sshd[13443]: Failed password for root from XXXXXXXXXXX port 46038 ssh2
May 11 **11:51:39** dido sshd[13447]: Received disconnect from XXXXXXXXXXX: 11: Bye Bye
May 11 13:51:40 dido sshd[13467]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=XXXXXXXXXXX  user=root
May 11 13:51:42 dido sshd[13467]: Failed password for root from XXXXXXXXXXX port 46312 ssh2
May 11 **11:51:42** dido sshd[13473]: Received disconnect from XXXXXXXXXXX: 11: Bye Bye

如您所见,对于消息“Bye Bye”,它使用 UTC 时区而不是 GMT 来记录。

谢谢你,迈克

答案1

进程 ID 不匹配,因此看起来好像存在单独的 sshd 进程,每个进程都采用不同的时区设置。

例如:您是否有一个 sshd 从 /etc/rc、inetd 或 xinetd 启动,另一个 sshd 在另一个端口上手动启动,从交互式会话启动(使用本地 TZ 设置)?

相关内容