linux系统时间同步published on 2019-12-20 about 138 words included in 爱编程爱技术的孩子 Contents正文Contents 正文虚拟机长时间不开机,系统时间和当前时间不同步,导致很多操作被拒绝,这里记录如何主动同步系统的时间和网络时间正文设置系统时区1 $ timedatectl set-timezone Asia/Shanghai 安装ntpdate工具1 $ sudo apt-get install ntpdate 同步时间1 $ sudo ntpdate cn.pool.ntp.org 将系统时间写入硬件时间1 $ sudo hwclock --systohc ntpdate cn.pool.ntp.org是位于中国的公共NTP服务器Author: shuzangUpdated on: 2019-12-20Share on: linux Back | HomeGolang语法基础10-协程与通道 Golang语法基础11-错误处理