Ubuntu更新系统时间
描述
服务器上用了Google验证器,由于服务器时间有时会或快或慢,超过Google验证器的时限之后会导致总是验证不通过,这个时候需要更新系统时间。
开始
安装ntpdate
1
sudo apt-get install ntpdate
同步系统时间
1
ntpdate cn.pool.ntp.org
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Akers's Blog!
评论
服务器上用了Google验证器,由于服务器时间有时会或快或慢,超过Google验证器的时限之后会导致总是验证不通过,这个时候需要更新系统时间。
安装ntpdate
1 | sudo apt-get install ntpdate |
同步系统时间
1 | ntpdate cn.pool.ntp.org |