1、安装ntpdate apt install ntpdate 2、crontab添加任务 vim /etc/crontab 添加一行: * */2 * * * root ntpdate cn.pool.ntp.org;hwclock --systohc