同步时间linux

针对对时间要求精确度高的服务器

1.安装时间服务器
yum install ntp

2.同步时间
ntpdate time.nist.gov

3.设置计划任务每隔10分钟同步一次

*/10 * * * * ntpdate time.nist.gov #域名或IP

同步硬件时间
思路:将硬件时间同步成上述以同步ok的系统时间即可。
命令 clock -w

原文地址:https://www.cnblogs.com/web21/p/6007261.html