根据时钟同步服务器同步时间
ntpdate 218.186.3.36
chrony
In CentOS8, there is no ntpdate program, instead of chrony
yum install -y chrony
edit the config file
vi /etc/chrony.conf
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
[[pool]] 2.centos.pool.ntp.org iburst
server 182.92.12.11
Then, restart the service.
[root@www etc]# systemctl restart chronyd.service
[root@www etc]# systemctl enable chronyd.service
chronyd -q 'server 182.92.12.11 iburst'