{"id":112,"date":"2010-07-13T00:14:49","date_gmt":"2010-07-12T15:14:49","guid":{"rendered":"http:\/\/www.free-style.biz\/lifediary\/?p=112"},"modified":"2010-07-13T00:14:49","modified_gmt":"2010-07-12T15:14:49","slug":"ntp%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.free-style.biz\/lifediary\/?p=112","title":{"rendered":"NTP\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p>RTX1100\u306e\u8a2d\u5b9a\u4e0d\u8db3\u3067NTP\u540c\u671f\u3067\u304d\u306a\u304b\u3063\u305f\u554f\u984c\u304c\u89e3\u6c7a\u3057\u305f\u3068\u3053\u308d\u3067\u3001NTP\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3092\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\nOS\uff1aCentOS 5.5 \u6700\u5c0f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\nNTP\u30b5\u30fc\u30d0\uff1a\u30d3\u30b8\u30cd\u30b9\u3077\u3089\u3089<br \/>\n\u30d7\u30e9\u30a4\u30de\u30ea\uff1antp2.plala.or.jp<br \/>\n\u30bb\u30ab\u30f3\u30c0\u30ea\uff1antp1.plala.or.jp<br \/>\nNTP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<strong># yum install ntp<\/strong><br \/>\n\u4eca\u65e5\u73fe\u5728\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u300c4.2.2p1-9.el5.centos.2.1\u300d\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<br \/>\n<strong># vi \/etc\/ntp.conf<\/strong><br \/>\n\u65e2\u5b58\u306eIPv4\u3001IPv6\u7528\u306e\u554f\u3044\u5408\u308f\u305b\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3001\u3059\u3079\u3066\u306e\u5916\u90e8\u304b\u3089\u306e\u554f\u3044\u5408\u308f\u305b\u306e\u62d2\u5426\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n<strong># Permit time synchronization with our time source, but do not<br \/>\n# permit the source to query or modify the service on this system.<br \/>\n<u>#restrict default kod nomodify notrap nopeer noquery<br \/>\n#restrict -6 default kod nomodify notrap nopeer noquery<br \/>\nrestrict default ignore <\/u><\/strong><br \/>\nIPv6\u7528\u306e\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a2\u30af\u30bb\u30b9\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u307e\u3059\u3002<br \/>\n<strong># Permit all access over the loopback interface.  This could<br \/>\n# be tightened as well, but to do so would effect some of<br \/>\n# the administrative functions.<br \/>\nrestrict 127.0.0.1<br \/>\n<u>#restrict -6 ::1<\/u><\/strong><br \/>\n\u4eca\u56de\u4f7f\u7528\u3059\u308b\u30d3\u30b8\u30cd\u30b9\u3077\u3089\u3089\u306eNTP\u30b5\u30fc\u30d0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n<strong># Hosts on local network are less restricted.<br \/>\n#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap<br \/>\n<u>restrict 219.164.211.137 mask 255.255.255.255 nomodify notrap noquery<br \/>\nrestrict 219.164.211.129 mask 255.255.255.255 nomodify notrap noquery<\/u><\/strong><br \/>\n\u65e2\u5b58\u306eNTP\u30b5\u30fc\u30d0\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3001\u30d3\u30b8\u30cd\u30b9\u3077\u3089\u3089\u306eNTP\u30b5\u30fc\u30d0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n<strong># Use public servers from the pool.ntp.org project.<br \/>\n# Please consider joining the pool (http:\/\/www.pool.ntp.org\/join.html).<br \/>\n<u>#server 0.centos.pool.ntp.org<br \/>\n#server 1.centos.pool.ntp.org<br \/>\n#server 2.centos.pool.ntp.org<br \/>\nserver ntp2.plala.or.jp<br \/>\nserver ntp1.plala.or.jp<\/u><\/strong><br \/>\n\u6700\u5f8c\u306b\u30ed\u30fc\u30ab\u30eb\u3067\u540c\u671f\u3059\u308b\u306e\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<br \/>\n<strong># Undisciplined Local Clock. This is a fake driver intended for backup<br \/>\n# and when no outside source of synchronized time is available.<br \/>\n<u>#server 127.127.1.0     # local clock<br \/>\n#fudge  127.127.1.0 stratum 10<\/u><\/strong><br \/>\n\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u30c7\u30fc\u30e2\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<strong># chkconfig &#8211;level 3 ntpd on<\/strong><br \/>\n\u30c7\u30fc\u30e2\u30f3\u3092\u8d77\u52d5\u3059\u308b<br \/>\n<strong># service ntpd start<\/strong><br \/>\n\uff11\uff10\u5206\u5f8c\u3050\u3089\u3044\u306b\u540c\u671f\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n<strong># ntpq -p<\/strong><br \/>\nremote           refid      st t when poll reach   delay   offset  jitter<br \/>\n=============================================================<br \/>\n+ntp2.plala.or.j 202.234.233.109  4 u   30   64  377   14.117   23.350   7.381<br \/>\n*ntp1.plala.or.j 202.234.233.109  4 u   33   64  377   13.983   29.240   3.461<br \/>\n\u5148\u982d\u306b\u300c*\u300d\u304c\u4ed8\u3044\u305fNTP\u304c\u73fe\u5728\u306e\u540c\u671f\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u3001\u300c+\u300d\u304c\u4ed8\u3044\u305fNTP\u304c\u4e88\u5099\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u6b63\u5e38\u306b\u540c\u671f\u3057\u305f\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u73fe\u5728\u306e\u6642\u523b\u3092\u78ba\u8a8d\u3057\u3066\u7d42\u4e86\u3067\u3059\u3002<br \/>\n<strong># date<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>RTX1100\u306e\u8a2d\u5b9a\u4e0d\u8db3\u3067NTP\u540c\u671f\u3067\u304d\u306a\u304b\u3063\u305f\u554f\u984c\u304c\u89e3\u6c7a\u3057\u305f\u3068\u3053\u308d\u3067\u3001NTP\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3092\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002 OS\uff1aCentOS 5.5 \u6700\u5c0f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb NTP\u30b5\u30fc\u30d0\uff1a\u30d3\u30b8\u30cd\u30b9\u3077\u3089\u3089 \u30d7\u30e9\u30a4\u30de\u30ea\uff1antp2.plala &hellip; <a href=\"https:\/\/www.free-style.biz\/lifediary\/?p=112\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">NTP\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=112"}],"version-history":[{"count":0,"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=\/wp\/v2\/posts\/112\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.free-style.biz\/lifediary\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}