1.时间同步服务器

1.安装ntpdate

  yum -y install ntp

2.执行如下命令

  ntpdate  time.nist.gov        ####时间服务器域名

3.在crontab 中添加脚本同步(crontab -e)

  */5 * * * *  /bin/ntpdate  time.nist.gov  >/dev/null 2>&1

4.如下是推荐的几种时间服务器供选择使用

time.nist.gov
time.nuri.net
asia.pool.ntp.org
asia.pool.ntp.org
asia.pool.ntp.org
asia.pool.ntp.org
原文地址:https://www.cnblogs.com/zmc60/p/13976027.html