1.首先安装必要的软件
apt update apt install ntpdate
2.使用ntpdate 命令进行系统授时
ntpdate -u ntp.ntsc.ac.cn
3. 使用 hwclock 命令修改主板时间
hwclock -w #注意,参数 -s 是根据主板时间修改系统时间