ubuntu 时间同步
2020-01-31 本文已影响0人
田丰w
双系统相互切换后, 常造成系统时间不对.
系统时间不对,https认证会失败.
Ubuntu时间同步
# 如果没有安装工具,安装
sudo apt-get install ntpdate
#从时间服务器同步时间
sudo ntpdate cn.pool.ntp.org
#将系统时间写入硬件时间,如果需要的话
hwclock --systohc
较新版本的ubuntu(>=16, 更早的没注意)使用 timedatectl, 还没有研究.