Ubuntu自动同步时钟设置方法
- 安装ntp服务:apt-get install ntp
- 启动ntp:timedatectl set-ntp on
- 重启ntp服务:service ntp restart
- 查看ntp状态:timedatectl (NTP synchronized需要为yes)
如果发现硬件时间不对(rtc time不准),可执行命令: hwclock --systohc
如果发现硬件时间不对(rtc time不准),可执行命令: hwclock --systohc
相关文章: