Ubuntu修改时间时区

设定时区:dpkg-reconfigure tzdata

选择Asia,Hong Kong。

sudo apt-get install ntpdate // 安装时间同步工具

sudo ntpdate cn.pool.ntp.org // 与网络服务器同步时间

date // 查看时间是否已同步

sudo hwclock --systohc //将系统时间写入硬件时间

cn.pool.ntp.org是位于中国的公共NTP服务器

猜你喜欢

转载自www.cnblogs.com/willaty/p/10032844.html