{"id":378,"date":"2018-06-13T22:42:45","date_gmt":"2018-06-13T13:42:45","guid":{"rendered":"http:\/\/mifmif.mydns.jp\/masterkudo\/index.php\/2018\/06\/13\/post-0\/"},"modified":"2018-06-13T22:42:45","modified_gmt":"2018-06-13T13:42:45","slug":"post-0","status":"publish","type":"post","link":"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=378","title":{"rendered":"ntp server\u3092chrony\u306b\u5909\u3048\u308b"},"content":{"rendered":"<p>\u3000\u3069\u3046\u3084\u3089\u3001\u4eca\u6642\u5206\u306fntp\u304b\u3089chrony\u304cntp \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30b5\u30fc\u30d0\u306e\u6642\u6d41\u3089\u3057\u3044\u3002\u305d\u3053\u3067\u3001\u3046\u3061\u306eTimeServer\u3067\u3042\u308bwpserver\u3092chrony\u306b\u3057\u3066\u307f\u305f\u3002<br \/>\n$ sudo apt-get remove &#8211;purge ntp<br \/>\n$ sudo apt-get install chrony<br \/>\n$ sudo gedit \/etc\/chrony\/chrony.conf<br \/>\n&#8212;<br \/>\n#pool ntp.ubuntu.com        iburst maxsources 4<br \/>\n#pool 0.ubuntu.pool.ntp.org iburst maxsources 1<br \/>\n#pool 1.ubuntu.pool.ntp.org iburst maxsources 1<br \/>\n#pool 2.ubuntu.pool.ntp.org iburst maxsources 2<br \/>\nserver ntp.nict.jp iburst<br \/>\nserver ntp1.jst.mfeed.ad.jp iburst<br \/>\nserver ntp2.jst.mfeed.ad.jp iburst<br \/>\nserver ntp3.jst.mfeed.ad.jp iburst<br \/>\n#For Server Conf.<br \/>\nallow 192.168.12.0\/24<br \/>\n&#8212;<br \/>\n$ sudo service chrony restart<br \/>\nntp\u3068\u9055\u3046\u306e\u306f\u3001allow\u3067\u30b5\u30fc\u30d0\u306b\u306a\u308c\u308bIP\u306e\u7bc4\u56f2\u3092\u6307\u5b9a\u3059\u308b\u3068\u3053\u308d\u3067\u3059\u3002<br \/>\nroot@wpserver:~# chronyc sources<br \/>\n210 Number of sources = 4<br \/>\nMS Name\/IP address         Stratum Poll Reach LastRx Last sample<br \/>\n===============================================================================<br \/>\n^- ntp-b3.nict.go.jp             1   6    35     3  -1326us[-1326us] +\/-   27ms<br \/>\n^+ ntp1.jst.mfeed.ad.jp          2   6    17     6   -146us[-1596us] +\/-  121ms<br \/>\n^* ntp2.jst.mfeed.ad.jp          2   6    17     5    +49us[-1402us] +\/-  107ms<br \/>\n^+ ntp3.jst.mfeed.ad.jp          2   6    17     5   -243us[-1693us] +\/-  162ms<br \/>\n\u3007wpserver\u3092\u30b5\u30fc\u30d0\u3068\u3057\u3066\u540c\u671f\u3059\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a\u3002<br \/>\n$ sudo apt-get remove &#8211;purge ntp<br \/>\n$ sudo apt-get install chrony<br \/>\n$ sudo gedit \/etc\/chrony\/chrony.conf<br \/>\n&#8212;<br \/>\n#pool ntp.ubuntu.com        iburst maxsources 4<br \/>\n#pool 0.ubuntu.pool.ntp.org iburst maxsources 1<br \/>\n#pool 1.ubuntu.pool.ntp.org iburst maxsources 1<br \/>\n#pool 2.ubuntu.pool.ntp.org iburst maxsources 2<br \/>\nserver wpserver iburst<br \/>\n&#8212;<br \/>\n$ sudo service chrony restart<br \/>\n$ chronyc sources<br \/>\n210 Number of sources = 1<br \/>\nMS Name\/IP address         Stratum Poll Reach LastRx Last sample<br \/>\n===============================================================================<br \/>\n^* wpserver                      2   6    17    22   +631ns[ +116us] +\/-   26ms<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3069\u3046\u3084\u3089\u3001\u4eca\u6642\u5206\u306fntp\u304b\u3089chrony\u304cntp \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30b5\u30fc\u30d0\u306e\u6642\u6d41\u3089\u3057\u3044\u3002\u305d\u3053\u3067\u3001\u3046\u3061\u306eTimeServer\u3067\u3042\u308bwpserver\u3092chrony\u306b\u3057\u3066\u307f\u305f\u3002 $ sudo apt-get remove &#038;#8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-378","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=378"}],"version-history":[{"count":0,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/378\/revisions"}],"wp:attachment":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}