标签:style color ar art sp on c 时间 ad
可以以ntp服务器座位时间服务器,可以选择一个节点做个时间服务器,
由于ntp服务并不占多少资源,我选择了rac1节点座位时间服务器
rac1:
[root@rac1 etc]# cat /etc/ntp.conf
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
broadcast 0.008
启动服务
[root@rac1 etc]# /etc/init.d/ntpd start
Starting ntpd: [ OK ]
修改开机启动
[root@rac1 etc]# chkconfig ntpd on
rac2:
[root@rac2 ~]# cat /etc/ntp.conf
server 192.168.0.10 prefer
broadcastclient 0.008 # broadcast client
driftfile /var/lib/ntp/drift
[root@rac2 etc]# /etc/init.d/ntpd start
Starting ntpd: [ OK ]
[root@rac2 etc]# chkconfig ntpd on
验证:
[root@rac1 etc]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
LOCAL(0) .LOCL. 10 l 26 64 3 0.000 0.000 0.001
[root@rac2 etc]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
rac1 .INIT. 16 u 60 64 0 0.000 0.000 0.000
标签:style color ar art sp on c 时间 ad
原文地址:http://www.cnblogs.com/redoracle/p/3979911.html