linux日志时间和date时间不一致,centos7系统日志时间与系统时间相差8小时

场景:当我们修改完系统时间的时区后,我们去查看我们的系统日志的时间发现时区还是在之前的系统时间时区。

[root@vp-n ~]# ls -l /etc/localtime

lrwxrwxrwx 1 root root 33 May 22 11:59 /etc/localtime -> /usr/share/zoneinfo/Asia/Shanghai

[root@vp-n ~]# date

Tue May 22 14:16:27 CST 2018

[root@vp-n ~]# tail -f /var/log/secure

May 22 04:55:33 vp-n sshd[10462]: Received disconnect from 221.194.47.239 port 51137:11: [preauth]

May 22 04:55:33 vp-n sshd[10462]: Disconnected from 221.194.47.239 port 51137 [preauth]

May 22 05:34:37 vp-n sshd[10519]: Received disconnect from 122.226.181.164 port 51822:11: [preauth]

May 22 05:34:37 vp-n sshd[10519]: Disconnected from 122.226.181.164 port 51822 [preauth]

May 22 05:35:46 vp-n sshd[10524]: Received disconnect from 221.194.47.243 port 44655:11: [preauth]

May 22 05:35:46 vp-n sshd[10524]: Disconnected from 221.194.47.243 port 44655 [preauth]

你可能感兴趣的:(linux日志时间和date时间不一致,centos7系统日志时间与系统时间相差8小时)