ntpdate同步时间

在我的VPS上,出现过时间不准的情况,刚好是差整数个小时,开始还以为是时区问题,我还用tzselect命令设置好了时区,并且将“TZ=’Asia/Shanghai’; export TZ”都加到了/etc/profile中了,而且用 date +”%z” 命令确认了当前时区是“+0800”。既然时区是正确的,那么就用NTP同步一下时区吧,命令如下:

[root@smilejay ~]# ntpdate 2.pool.ntp.org 7 May 21:01:28 ntpdate[30053]: adjust time server 184.22.183.134 offset 0.124256 sec

对于公共的NTP服务器,可以考虑使用 ntp.org 上的,还比较不错的,比如可以选择:0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, 3.pool.ntp.org 等。对于一些NTP服务器,请参考:http://www.pool.ntp.org/en/use.html

Original article: ntpdate同步时间

©2015 笑遍世界. All Rights Reserved.

使用双手的是劳工,使用双手和头脑的舵手,

ntpdate同步时间

相关文章:

你感兴趣的文章:

标签云: