为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

时间同步ntp

2018-02-04 4页 doc 16KB 16阅读

用户头像

is_721103

暂无简介

举报
时间同步ntp时间同步ntp Solaris时间同步ntp的简单设置 2011-10-11 15:23 一.服务器设置 1、拷贝ntp服务器配置样本作为ntp配置文件 # cp -p /etc/inet/ntp.server /etc/inet/ntp.conf 2、编辑ntp.conf,进行服务器配置 # vi /etc/inet/ntp.conf 将原文件中 server 127.127.XType.0 prefer fudge 127.127.XType.0 stratum 0 两行的XType改成1,1表示local...
时间同步ntp
时间同步ntp Solaris时间同步ntp的简单设置 2011-10-11 15:23 一.服务器设置 1、拷贝ntp服务器配置样本作为ntp配置文件 # cp -p /etc/inet/ntp.server /etc/inet/ntp.conf 2、编辑ntp.conf,进行服务器配置 # vi /etc/inet/ntp.conf 将原文件中 server 127.127.XType.0 prefer fudge 127.127.XType.0 stratum 0 两行的XType改成1,1示local,即 server 127.127.1.0 prefer fudge 127.127.1.0 stratum 0 #multicastclient 224.0.1.1#注释掉这一行 并注释掉文件末尾的四行内容,否则会提示找不到 /etc/inet/ntp.keys文件 #keys /etc/inet/ntp.keys #trustedkey 0 #requestkey 0 #controlkey 0 3、启动ntp服务 Solaris 8 & 9 # /etc/rc2.d/S74xntpd stop # /etc/rc2.d/S74xntpd start Solaris 10 # svcadm disable svc:/network/ntp:default # svcadm enable svc:/network/ntp:default 查看状态 # svcs svc:/network/ntp:default STATE STIME FMRI online 13:13:54 svc:/network/ntp:default 如果显示为online则正常 如果显示为maintenance,需要执行一下 # svcadm clear svc:/network/ntp:default 再查看是否恢复正常 4、稍等一段时间后查看服务器状态 # ntpq -p remote refid st t when poll reach delay offset disp =========================================================== =================== *LOCAL(0) .LCL. 0 l 51 64 377 0.00 0.000 10.06 如果看到LOCAL前面有*了,则服务器工作正常。 二.客户端设置 1、创建ntp客户端配置文件 # touch /etc/inet/ntp.conf # chown root:sys /etc/inet/ntp.conf 2、编辑ntp.conf,设置同步时间的服务器 # vi /etc/inet/ntp.conf 内容如下: server server1-ip-address prefer server server2-ip-address server server3-ip-address 将其中的server-ip-address换成服务器的IP地址。如果只有一台 服务器,填写第一行就可以,如果有多台服务器提供冗余,可一并写 上,并在首选服务器后添加prefer标志。 3、启动ntp服务(与服务器设置的第三步相同) Solaris 9 # /etc/rc2.d/S74xntpd stop # /etc/rc2.d/S74xntpd start Solaris 10 # svcadm disable svc:/network/ntp:default # svcadm enable svc:/network/ntp:default 查看状态 # svcs svc:/network/ntp:default 如果显示为online则正常 如果显示为maintenance,需要执行一下 # svcadm clear svc:/network/ntp:default 再查看是否恢复正常 4、稍等一段时间后查看同步情况 # ntpq -p remote refid st t when poll reach delay offset disp =========================================================== =================== *solaris10 .LCL. 1 u 62 64 377 0.93 -26.011 0.87 看到前面出现*,并且reach值不断变大,disp值不断变小,则工作 正常。 5、在/var/adm/message日志中查看NTP同步时间的记录 另参考:://www.billhance.com/computers/Solaris/ntp.htm ://www.camelrichard.org/topics/Solaris/Configuring_NTP_in_Solaris_10
/
本文档为【时间同步ntp】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
热门搜索

历史搜索

    清空历史搜索