第一步,选择时区bash
# 第一个命令若是不行就用第二个 sudo tzconfig sudo dpkg-reconfigure tzdata
第二步同步时间,并写入硬件服务器
# 安装ntpdate sudo apt-get install ntpdate # 同步时间,若是是美国服务器,则能够用us.pool.ntp.org sudo ntpdate cn.pool.ntp.org # 写入硬件 sudo hwclock --systohc