(转)同步时间

首先设置一下时区,然后打开ntp同步服务

timedatectl list-timezones
timedatectl set-timezone Asia/Shanghai
timedatectl set-ntp true

硬件时间问题

查看硬件时间总是报错,怕不是硬件问题吧

[tanglizi@archlinux ~]$ hwclock 
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.

[tanglizi@archlinux ~]$ hwclock --debug
hwclock from util-linux 2.31.1
System Time: 1519354149.819993
Trying to open: /dev/rtc0
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.


好吧问题解决了,详见 这里只需要使用root权限就好(hwclock为啥不报权限不足啊,满满的误导 ``` sudo hwclock -w ```

posted on 2022-04-11 11:52  ctcrst  阅读(191)  评论(0编辑  收藏  举报