{"id":927,"date":"2016-02-02T05:53:47","date_gmt":"2016-02-01T20:53:47","guid":{"rendered":"http:\/\/www.kinryo.net\/?p=927"},"modified":"2016-02-02T05:53:47","modified_gmt":"2016-02-01T20:53:47","slug":"%ef%bc%99%ef%bc%9antp%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=927","title":{"rendered":"\uff19\uff1aNTP\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p class=\"itemText\">ntp\u30b5\u30fc\u30d0\u30fc\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u305d\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e \/etc\/ntp.conf \u306e\u8a2d\u5b9a<\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #0000ff;\">restrict 192.168.xx.xx mask 255.255.255.0 nomodify notrap\u3000\u2190 18\u884c\u76ee\u4f4d\u3001\u5148\u982d\u306e\uff03\u3092\u5916\u3057\u3001IP\u30ec\u30f3\u30b8\u3092\u81ea\u5206\u306b\u5408\u308f\u305b\u308b\r\n\uff0a\uff0a\u3053\u3053\u304b\u3089\uff0820\u884c\u76ee\u4f4d\uff09\r\n# Use public servers from the pool.ntp.org project.\r\n# Please consider joining the pool (http:\/\/www.pool.ntp.org\/join.html).\r\nserver 0.centos.pool.ntp.org iburst\r\nserver 1.centos.pool.ntp.org iburst\r\nserver 2.centos.pool.ntp.org iburst\r\nserver 3.centos.pool.ntp.org iburst\r\n\uff0a\uff0a\u3053\u3053\u307e\u3067\u6d88\u53bb\u3001centos\u306entp\u306f\u4f7f\u308f\u306a\u3044\u3002\u4ee3\u308f\u308a\u306b\u6b21\u3092\u633f\u5165\r\nserver 133.100.10.8 iburst # NTP\u30b5\u30fc\u30d0\u30fc(stratum 1)\r\nserver 210.173.160.27 iburst # \u4e0a\u8a18\u30b5\u30fc\u30d0\u30fc\u3068\u76f4\u63a5\u540c\u671f\u3057\u3066\u3044\u308bNTP\u30b5\u30fc\u30d0\u30fc(stratum 2)\r\nserver 202.224.32.4 iburst # \u30d7\u30ed\u30d0\u30a4\u30c0\u306eNTP\u30b5\u30fc\u30d0\u30fc\u203b<\/span><\/code><\/pre>\n<\/div>\n<p>\u30b5\u30fc\u30d0\u30fc\u3092IP\u30a2\u30c9\u30ec\u30b9\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u306e\u306fDNS\u3092\u5f15\u304b\u306a\u304f\u3066\u6e08\u3080\u304b\u3089<br \/>\n\u4e00\u5ea6\u624b\u52d5\u3067\u6642\u523b\u3092\u5408\u308f\u305b\u308b<br \/>\n<span style=\"color: #008000;\"><span style=\"color: #ff6600;\">#<\/span> ntpdate 133.243.238.163<\/span><\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #ff6600;\"> 6 May 06:08:25 ntpdate[17950]: step time server 133.243.238.163 offset -29.735837 sec<\/span><\/code><\/pre>\n<\/div>\n<p>ntp\u3092\u8d77\u52d5\u3059\u308b<br \/>\n<span style=\"color: #008000;\"><span style=\"color: #ff6600;\">#<\/span> service ntpd start<\/span><br \/>\n<span style=\"color: #008000;\"><span style=\"color: #ff6600;\"> #<\/span> chkconfig ntpd on<\/span><br \/>\nNTP\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u6642\u523b\u540c\u671f\u72b6\u614b\u78ba\u8a8d<br \/>\n<span style=\"color: #008000;\"><span style=\"color: #ff6600;\">#<\/span> ntpq -p<\/span><\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #ff6600;\">     remote           refid      st t when poll reach   delay   offset  jitter\r\n ==============================================================================\r\n*ntp-b2.nict.go. .NICT.           1 u    2   64    1    5.517    0.712   0.098\r\n ntp1.jst.mfeed. 172.29.2.50      2 u    1   64    1  258.952  -126.97  45.508\r\n orion.asahi-net 133.243.238.244  2 u    -   64    1    3.856    0.853   0.466<\/span><\/code><\/pre>\n<\/div>\n<p>\u884c\u306e\u6700\u521d\u306b * \u3084 + \u304c\u3064\u3044\u3066\u5165\u308c\u3070OK\u3001\u306a\u3044\u6642\u306f\u6570\u5206\u5f8c\u306b\u518d\u5ea6\u884c\u3046\u3068\u8868\u793a\u3055\u308c\u308b\u7b48\u3002<br \/>\nCentOS \u306f\u30b7\u30b9\u30c6\u30e0\u7d42\u4e86\u6642\u306b\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30af\u30ed\u30c3\u30af\u306e\u6642\u523b\u3092\u30b7\u30b9\u30c6\u30e0\u30af\u30ed\u30c3\u30af\u306e\u6642\u523b\u306b\u5408\u308f\u305b\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3089\u3057\u3044\u304c\u3001\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306f\u539f\u5247\u3001\u52d5\u304d\u3063\u3071\u306a\u3057\u306a\u306e\u3067 \u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u30af\u30ed\u30c3\u30af\u3068\u3082\u540c\u671f\u3092\u3055\u305b\u308b\u304c\u3001\u9031\u306b1\u5ea6\u3050\u3089\u3044\u3067\u3044\u3044\u3068\u601d\u3046\u306e\u3067\u3001\/etc\/cron.weekly\u306bsethc\u3068\u8a00\u3046\u540d\u3067<\/p>\n<div class=\"xoopsCode\">\n<pre><code><span style=\"color: #0000ff;\">#!\/bin\/bash\r\nhwclock -- systohc<\/span><\/code><\/pre>\n<\/div>\n<p>\u5b9f\u884c\u30d5\u30e9\u30b0\u3092\u4ed8\u3051\u308b<br \/>\n<span style=\"color: #ff6600;\">#<span style=\"color: #008000;\"> chmod +x \/etc\/cron.weekly\/sethc<\/span><\/span><br \/>\n\u3053\u308c\u3067\u4e00\u9031\u9593\u306b1\u56de\u30b7\u30b9\u30c6\u30e0\u6642\u9593\u3068\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u30af\u30ed\u30c3\u30af\u3092\u540c\u671f\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ntp\u30b5\u30fc\u30d0\u30fc\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u305d\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e \/etc\/ntp.conf \u306e\u8a2d\u5b9a restrict 192.168.xx.xx mask 255.255.255.0 nomodify notrap\u3000\u2190  &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=927\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"vkexunit_cta_each_option":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-927","post","type-post","status-publish","format-standard","hentry","category-server"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=927"}],"version-history":[{"count":1,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/927\/revisions"}],"predecessor-version":[{"id":928,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/927\/revisions\/928"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}