1. View the current server time

# date -R

Thu, 28 Jul 2022 17:58:11 +0800

2. Install ntpdate service

yum install ntpdate

3. Directly use the domain name to synchronize the Alibaba Cloud server

ntpdate ntp1.aliyun.com

28 Jul 17:57:19 ntpdate[17899]: adjust time server 120.25.115.20 offset -0.005583 sec

4. Check whether the new time has been synchronized

# date -R

Thu, 28 Jul 2022 17:58:11 +0800

Kas see vastus oli kasulik? 0 Kasutajad peavad seda kasulikuks (0 Hääled)