CentOS7.6 修改系统时间记录

Last login: Wed Mar 6 03:41:49 2019 from 10.0.0.3
[root@MySQL-Slave ~]# date
2019年 03月 06日 星期三 06:00:58 CST


[root@MySQL-Slave ~]# timedatectl
Local time: 三 2019-03-06 06:01:05 CST
Universal time: 二 2019-03-05 22:01:05 UTC
RTC time: 二 2019-03-05 22:01:56
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: n/a
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a


[root@MySQL-Slave ~]# hwclock --show
2019年03月06日 星期三 06时02分26秒 -0.229963 秒


[root@MySQL-Slave ~]# hwclock --set --date "2019-3-5 22:46:40"
[root@MySQL-Slave ~]# hwclock --hctosys
[root@MySQL-Slave ~]# clock -w
[root@MySQL-Slave ~]# reboot

Last login: Wed Mar 6 06:00:54 2019 from 10.0.0.3
[root@MySQL-Slave ~]# date
2019年 03月 05日 星期二 22:52:26 CST


[root@MySQL-Slave ~]# timedatectl
Local time: 二 2019-03-05 22:52:32 CST
Universal time: 二 2019-03-05 14:52:32 UTC
RTC time: 二 2019-03-05 14:52:32
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: n/a
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a

猜你喜欢

转载自www.cnblogs.com/tiantom/p/10480405.html