Chinaunix首页 | 论坛 | 博客
  • 博客访问: 121741
  • 博文数量: 46
  • 博客积分: 2000
  • 博客等级: 大尉
  • 技术积分: 480
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-13 09:26
文章分类

全部博文(46)

文章存档

2011年(1)

2010年(5)

2009年(40)

我的朋友

分类: LINUX

2009-10-31 13:12:37

ubuntu时间同步问题

$sudo ntpdate clepsydra.dec.com就可

可以采用如下方法:

$sudo apt-get install ntp
$sudo echo server 0.pool.ntp.org >> /etc/ntp.conf
$sudo echo server 1.pool.ntp.org >> /etc/ntp.conf
$sudo echo server 2.pool.ntp.org >> /etc/ntp.conf
$sudo /etc/init.d/ntp restart

也可以打开它自己编辑,内容如下:
# You do need to talk to an NTP server or two (or three).
server ntp.ubuntu.com
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org



运行效果如下:
duxingxia@ubuntu:/etc$ ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
91.189.94.4 .INIT. 16 u - 64 0 0.000 0.000 0.002
211.160.78.27 .INIT. 16 u - 64 0 0.000 0.000 0.002
114.80.81.69 .INIT. 16 u - 64 0 0.000 0.000 0.002
114.80.81.72 .INIT. 16 u - 64 0 0.000 0.000 0.002
61.129.66.79 .INIT. 16 u - 64 0 0.000 0.000 0.002
duxingxia@ubuntu:/etc$

ok




阅读(1547) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~