1、安装ntp
sudo apt-get install ntpdate
2、修改时区
tzselect
3、选择自己的时区
1)选择大洲
2)选择国家
3)选择城市
4)选择YES
5)或者使用命令行
4、配置网络对时
sudo ntpdate cn.
注:cn.是国内的ntp服务器
5、输入命令,查看时间
dateWed Dec 24 09:58:28 CST
时间:2019-04-01 20:43:42
1、安装ntp
sudo apt-get install ntpdate
2、修改时区
tzselect
3、选择自己的时区
1)选择大洲
2)选择国家
3)选择城市
4)选择YES
5)或者使用命令行
4、配置网络对时
sudo ntpdate cn.
注:cn.是国内的ntp服务器
5、输入命令,查看时间
dateWed Dec 24 09:58:28 CST