美文网首页
ubuntu 时间同步

ubuntu 时间同步

作者: 田丰w | 来源:发表于2020-01-31 20:55 被阅读0次

双系统相互切换后, 常造成系统时间不对.

系统时间不对,https认证会失败.

Ubuntu时间同步

# 如果没有安装工具,安装
sudo apt-get install ntpdate

#从时间服务器同步时间
sudo ntpdate cn.pool.ntp.org

#将系统时间写入硬件时间,如果需要的话
hwclock --systohc

较新版本的ubuntu(>=16, 更早的没注意)使用 timedatectl, 还没有研究.

相关文章

网友评论

      本文标题:ubuntu 时间同步

      本文链接:https://www.haomeiwen.com/subject/bhmnzctx.html