1 查看时间
timedatectl
Local time: Wed 2022-08-10 23:03:35 CST
Universal time: Wed 2022-08-10 15:03:35 UTC
RTC time: Wed 2022-08-10 15:49:18
Time zone: Asia/Shanghai (CST, +0800)
NTP enabled: n/a
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
2 时间同步
时间服务器
http://time1.aliyun.com
http://time2.aliyun.com
http://time3.aliyun.com
http://time4.aliyun.com
http://time5.aliyun.com
http://time6.aliyun.com
http://time7.aliyun.com
yum install ntpdate -y
ntpdate -u time.pool.aliyun.com