-
- 查看硬件時間
[root@localhost ~]# hwclock --show Tue 13 Jun 2017 02:11:12 AM CST -0.848845 seconds
- 1
- 2
可以看出系統時間比硬件時間快,系統時間是准確的
假如系統時間和硬件時間都不准確
- 更新系統年月日
[root@localhost ~]# timedatectl set-time 2017-06-13
- 更新系統時分秒
[root@localhost ~]# timedatectl set-time 10:25:17
- 1
- 更新時區(亞洲-中國-上海)
[root@localhost ~]# timedatectl set-timezone Asia/Shanghai
- 1
- 將硬件時鍾調整為與系統時鍾一致
[root@localhost ~]# timedatectl set-local-rtc 1 或者 [root@localhost ~]# hwclock --systohc --localtime