1 安装ntpdate工具
sudo apt-get install ntpdate
2 设置系统时间与网络时间同步
sudo ntpdate cn.pool.ntp.org
3 将系统时间写入硬件时间
sudo hwclock --systohc
本文介绍了如何在Linux系统中使用ntpdate工具进行时间同步的方法。首先安装ntpdate工具,然后通过它来设置系统时间与网络时间同步,最后将系统时间写入硬件时间。
1 安装ntpdate工具
sudo apt-get install ntpdate
2 设置系统时间与网络时间同步
sudo ntpdate cn.pool.ntp.org
3 将系统时间写入硬件时间
sudo hwclock --systohc
910
4561
439
383
255
273

被折叠的 条评论
为什么被折叠?
