设置系统时间为中国时区并启用NTP同步
//安装ntp服务
yum install ntp
//开机启动服务
systemctl enable ntpd
systemctl start ntpd
timedatectl set-timezone Asia/Shanghai
timedatectl set-ntp yes
ntpq -p
centos7 时间设置
原文:https://www.cnblogs.com/xiaohanhan1991/p/13265843.html