In general, the synchronization time is required for enterprises. For windows domains, You can automatically synchronize the domain controller time. For CentOS system time synchronization, follow these steps: the newly installed CentOS system server may be set incorrectly, you need to adjust the time zone and time. Cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
The first sentence of ntpdate 210.72.145.44 is to change the current time zone to Shanghai + 8. If you want to change the other time zones, you can check the/usr/share/zoneinfo directory; then the second sentence uses ntpdate to synchronize the standard time. 210.72.145.44 is the IP address of the National Time Service Center, or you can use your own NTP server IP address. If the second error is reported, ntpdateyum install-y ntpdate is not installed to join the scheduled task, synchronize clock crontab-e0-59/10 ***/usr/sbin/ntpdate 210.72.145.44 every 10 minutes | logger-t NTP like this, we can solve the problem of time inaccuracy in the CentOS system.