linux NTP 配置时间同步

在配置 RAC 过程用到。OS:Linux 2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686 i686 i386 GNU/Linux

节点1上的配置:

more /etc/ntp.conf

restrict default ignore

restrict 192.168.0.0 mask 255.255.255.0 notrap nomodify

server 162.105.129.27 # 互联网上的时间服务器

server 127.127.1.0 # local clock

fudge 127.127.1.0 stratum 10

driftfile /var/lib/ntp/drift

broadcastdelay 0.008

keys /etc/ntp/keys

节点2上的配置:

more /etc/ntp.conf

restrict default ignore

restrict 127.0.0.1

restrict 192.168.0.0 mask 255.255.255.0 nomodify

server 192.168.0.125 # 以节点1作为上级时间服务器

restrict 192.168.0.125

driftfile /var/lib/ntp/drift

broadcastdelay 0.008

keys /etc/ntp/keys

在两个节点上分别运行:

service ntpd start

chkconfig --level 35 ntpd on

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15037413/viewspace-675830/,如需转载,请注明出处,否则将追究法律责任。

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐