Ubuntu server版默认好像没有自动同步时间的功能(也可能是我只能连IPV6的原因)。
解决方法:
设置NTP服务器。
一、安装:ntpdate
代码: 全选
sudo apt-get install ntpdate
这里有几个地址,IPV4+IPV6:http://ntp.buptnet.edu.cn/ntp_chinese/fuwuqi.htm
命令:
代码: 全选
sudo ntpdate xxxxxx
代码: 全选
sudo apt-get install ntpdate
代码: 全选
sudo ntpdate xxxxxx