1、 安装ntpdate
sudo apt-get install ntpdate
2、 执行同步命令
sudo ntpdate time.windows.com
3、 如果是server版本,切换时区
ubuntu16提示tzconfig已过时,
WARNING: the tzconfig command is deprecated, please use:
dpkg-reconfigure tzdata
sudo dpkg-reconfigure tzdata
4、 查看时间
date