--: ntpdate us.pool.ntp.org 

同时还有其他的服务器:

 

1.cn.pool.ntp.org

2.cn.pool.ntp.org

3.cn.pool.ntp.org

另外可以直接设置: date -s "2018-01-01 12:00:00"

 

在设置集群的时候要保证集群的时间是一致的(尤其是在使用分布式系统,例如HBASE的时候,确保时间一致性,否则hmaster会感知不到Hregionserver)

Logo

更多推荐