Linux,系统时间设置大法
2017-07-07 本文已影响13人
tarscoding
方案一:
$ sudo dpkg-reconfigure tzdata



方案二:
使用NTP同步服务器时间
$ sudo apt-get install ntpdate
#同步时间服务器
$ sudo ntpdate cn.pool.ntp.org
#配置系统时间
$ sudo tzselect
4.Asia
9.China
1.BeiJing
1.yes
#将系统时间写入硬件时间 Hardware Colock
$ sudo hwclock --systohc
$ date
