修改系统时间

1.  安装ntpdate工具

# yum -y install ntp ntpdate

2.  设置系统时间与网络时间同步

# ntpdate cn.pool.ntp.org

3.  将系统时间写入硬件时间

# hwclock --systohc

 -------------------------------------------------

列出时区

timedatectl list-timezones

修改时区(上述如果无法修改,请执行下面命令先修改时区)

timedatectl set-timezone Asia/Shanghai

https://www.linuxidc.com/Linux/2016-07/133755.htm

原文地址:https://www.cnblogs.com/shabake/p/9591925.html