首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

开启了ntp,如何时间没有同步

2013-06-26 
开启了ntp,怎么时间没有同步?大家好:我装了两个虚拟机,主机名一个是dbp,一个是dbs,系统都是 RHEL5,按以下

开启了ntp,怎么时间没有同步?
大家好:
我装了两个虚拟机,主机名一个是dbp,一个是dbs,系统都是 RHEL5,按以下配置了NTP,但两部主机的时间相差一分钟,dbs没有同步为dbp的时间,dbp为ntp服务器,dbs修改同步为dbp的时间:
[root@dbp ntp]# grep -v "^#" /etc/ntp.conf
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

restrict 127.0.0.1 
restrict -6 ::1
restrict 192.168.123.155   #dbs主机的IP




server 127.127.1.0
fudge 127.127.1.0 stratum 10

driftfile /var/lib/ntp/drift
broadcastdelay 0.008

keys /etc/ntp/keys



[root@dbp ntp]# service ntpd status
ntpd (pid  6066) 正在运行...
[root@dbp ntp]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*LOCAL(0)        .LOCL.          10 l   61   64   77    0.000    0.000   0.001
[root@dbp ntp]# date
2013年 04月 17日 星期三 17:47:21 CST


[root@dbs ntp]# grep -v "^#" /etc/ntp.conf
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

restrict 127.0.0.1 
restrict -6 ::1





server 192.168.123.154 prefer

driftfile /var/lib/ntp/drift
broadcastdelay 0.008

keys /etc/ntp/keys



[root@dbs ntp]# service ntpd status
ntpd (pid  6051) 正在运行...
[root@dbs ntp]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 dbp             LOCAL(0)        11 u   59   64    7    0.220  60350.2   0.023
[root@dbs ntp]# date
2013年 04月 17日 星期三 17:46:21 CST

请问这是什么原因,哪里出问题了呢?
待复,谢谢! ntp
[解决办法]
看你的 ntpq -pn 已经有结果了,是使用微调方式的,不是一次性调好的。明白吗?

热点排行