yum install ntp #安装ntp服务
systemctl enable ntpd #开机启动服务
systemctl start ntpd #启动服务
timedatectl set-timezone Asia/Shanghai #更改时区
timedatectl set-ntp yes #启用ntp同步
ntpq -p #同步时间
转载于:https://www.cnblogs.com/xuejianbest/p/10285229.html
yum install ntp #安装ntp服务
systemctl enable ntpd #开机启动服务
systemctl start ntpd #启动服务
timedatectl set-timezone Asia/Shanghai #更改时区
timedatectl set-ntp yes #启用ntp同步
ntpq -p #同步时间
转载于:https://www.cnblogs.com/xuejianbest/p/10285229.html