ntpdate同步时间

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

对于公共的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

master

Stay hungry, stay foolish.

2 Comments

发表评论

邮箱地址不会被公开。 必填项已用*标注

*