Ubuntu如何同步网络时间

 

装完Ubuntu设置完时间,重启总是恢复设置前的时间。

设定时区:dpkg-reconfigure tzdata

           选择Asia -> 再选择Shanghai -> OK

 

解决方法:

1.安装ntpdate工具

sudo apt-get install ntpdate

2.将系统时间与网络同步

ntpdate cn.pool.ntp.org

3.将时间写入硬件

hwclock --systohc

4.查看时间是否已同步

date 

 

posted @ 2018-07-11 12:04  钟桂耀  阅读(30048)  评论(0编辑  收藏  举报