Time synchronization under Linux

  
 

1. Add system level scheduled tasks to synchronize every 5 minutes:

#vi /etc/crontab

*/5 * * * * /usr/sbin/ntpdate Time Source server IP; /usr/sbin/hwclock -w

Note: In my actual environment, all server time sources are primary domain controller DCs, which benefits all clients and all AD-based The verified system time is synchronized.

2, start the scheduled task:

#service crond start

3, add the scheduled task to the boot project:

#chkconfig crond on< Br>

Copyright © Windows knowledge All Rights Reserved