• 修改时区文件

    sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
    
  • 同步时间

    sudo ntpdate    cn.pool.ntp.org
    
  • 写入硬件

    sudo hwclock --systohc
    

如果提示命令 ntpdate 不存在,安装命令 sudo apt-get install ntpdate