- yum install ntp : install ntpdate.
-
ntpdate time.nist.gov: After installation, test it directly.
crontab -e: Enter into crontab.
Increase the command */10 * * * * ntpdate time.nist.gov: this means that it is executed every 10 minutes, if the time frequency does not want to be so high, you can adjust these *
* */1 * * * ntpdate time.nist.gov: Updated every hour.
How to set time synchronization in linux
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325548834&siteId=291194637
Recommended
Ranking