linux系统时间同步
目录
警告
本文最后更新于 2019-12-20,文中内容可能已过时。
虚拟机长时间不开机,系统时间和当前时间不同步,导致很多操作被拒绝,这里记录如何主动同步系统的时间和网络时间
正文
设置系统时区
|
|
安装ntpdate工具
|
|
同步时间
|
|
将系统时间写入硬件时间
|
|
ntpdate cn.pool.ntp.org是位于中国的公共NTP服务器


虚拟机长时间不开机,系统时间和当前时间不同步,导致很多操作被拒绝,这里记录如何主动同步系统的时间和网络时间
设置系统时区
|
|
安装ntpdate工具
|
|
同步时间
|
|
将系统时间写入硬件时间
|
|
ntpdate cn.pool.ntp.org是位于中国的公共NTP服务器