Installer ntpdate
yum -y install ntpdate
Afficher l'heure actuelle
Date
Synchroniser l'heure actuelle
ntpdate time.nist.gov; #update time hwclock -w; #write time to hard disk
Rejoignez une tâche planifiée
1. Ouvrez crontab vi / etc / crontab 2. Ajoutez une tâche planifiée * * / 48 * * * ntpdate time.nist.gov; hwclock -w;