OracleLinuxNTP时间服务器配置同步方案.docxVIP

OracleLinuxNTP时间服务器配置同步方案.docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
OracleLinuxNTP时间服务器配置同步方案

OracleLinux NTP时间服务器配置同步方案 ? ?目标环境,Oracle linux6,作为内网的NTP时间服务器,局域网内的其他机器与这台服务做时间同步。 2、安装配置 Oracle linux6系统已经自带了NTPD服务,一般默认是安装了的,如果没有安装,先检查下,然后配置好yum仓库,yum方式安装下就OK,具体如下: # rpm -q ntp ntp-4.2.4p8-2.el6.x86_64 ? ?// 这表示已安装了,如果没有安装,这是空白。 如果没有安装,我们按照下 # yum install ntp 按上面的安装方式在内网每台服务器上都安装好NTP软件包。 完成后,都需要配置NTP服务为自启动 # chkconfig ntpd on # chkconfig --list ntpd ntpd ? ? ? ? ? 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭 ? 在配置前,先使用ntpdate手动同步下时间,免得本机与外部时间服务器时间差距太大,让ntpd不能正常同步。 # ntpdate -u 6 22 Dec 16:52:38 ntpdate[6400]: adjust time server 6 offset 0.012135 sec ? 配置内网NTP-Server 下面主要是配置内网的NPTD服务器, NTPD服务配置核心就在/etc/ntp.conf文件,配置好了就OK。先上配置文件再说,红色部分是修改部分,注意红色修改部分。 ? # For more information about this file, see the man pages # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5). ? driftfile /var/lib/ntp/drift ? # Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery ? # Permit all access over the loopback interface. ?This could # be tightened as well, but to do so would effect some of # the administrative functions. restrict restrict -6 ::1 ? # Hosts on local network are less restricted. # 允许内网其他机器同步时间 restrict mask nomodify notrap ? # Use public servers from the project. # Please consider joining the pool (/join.html). # 中国这边最活跃的时间服务器 :? HYPERLINK /zone/cn /zone/cn server 4 perfer ? # 中国国家受时中心 server 6 ? ? ? ? ? ? #?1. server 3 ? ? ? ? ? ? #?0. ? #broadcast 55 autokey ? ? ? ?# broadcast server #broadcastclient ? ? ? ? ? ? ? ? ? ? ? ?# broadcast client #broadcast autokey ? ? ? ? ? ?# multicast server #multicastclient ? ? ? ? ? ? ?# multicast client #manycastserver 54 ? ? ? ? # manycast server #manycastclient 54 autokey # manycast client ? # allow update time by the upper server? # 允许上层时间服务器主动修改本机时间 restrict 4 nomodify notrap noquery restrict 6 nomodify notrap noquery restrict 3 nom

文档评论(0)

liudao + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档