{"id":3386,"date":"2017-03-14T06:53:02","date_gmt":"2017-03-13T21:53:02","guid":{"rendered":"http:\/\/stuffy.dip.jp\/wordpress\/?p=2995"},"modified":"2017-03-14T06:53:02","modified_gmt":"2017-03-13T21:53:02","slug":"ntp","status":"publish","type":"post","link":"https:\/\/www.stuffy.site\/wordpress\/?p=3386","title":{"rendered":"NTP"},"content":{"rendered":"<p>\u3044\u3064\u3082\u306e\u3088\u3046\u306bNTP\u3067Linux \u306e\u6642\u8a08\u3092\u540c\u671f\u3057\u3088\u3046\u3068\u3001<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># ntpq -p<\/pre>\n<p>\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u540c\u671f\u3057\u306a\u3044\u306e\u3067\u3001<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">ntpdate ntp.nict.jp<\/pre>\n<p>\u3059\u308b\u3068 the NTP socket is in use, exiting \u3068\u30a8\u30e9\u30fc\u3002<br \/>\n\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306eUDP123\u30dd\u30fc\u30c8\u3092\u958b\u653e\u3002<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># vi\u00a0\/etc\/sysconfig\/iptables\n-A INPUT -p udp --dport 123 -j ACCEPT \uff08\u8ffd\u52a0\n# service iptables restart<\/pre>\n<p>NTP\u30b5\u30fc\u30d3\u30b9\u3092\u4e00\u6642\u505c\u6b62\u3057\u3066\u3001ntp.nict.jp \u306b\u624b\u52d5\u3067\u6642\u523b\u3092\u540c\u671f\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># service ntpd stop\n# ntpdate ntp.nict.jp\n# service ntpd start<\/pre>\n<p>\u518d\u8d77\u52d5\u3002\u4eca\u5ea6\u306f\u3001<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># ntpq -p<\/pre>\n<p>\u51fa\u6765\u307e\u3057\u305f\u3002\u3042\u3093\u307e\u308a\u305a\u308c\u3066\u3044\u308b\u3068\u624b\u52d5\u3067\u540c\u671f\u3057\u306a\u3044\u3068\u30c0\u30e1\u3060\u3063\u305f\u3002\u6642\u8a08\u306e\u78ba\u8a8d\u3002watch \u3067date \u30b3\u30de\u30f3\u30c9\u30921\u79d2\u304a\u304d\u306b\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\"># watch -n 1 date<\/pre>\n<p>\u30a8\u30b9\u30b1\u30fc\u30d7\u3059\u308b\u306b\u306f\u3001Ctrl + C \u304b Ctrl + X \u3067\u3002<\/p>\n<p>\u53c2\u8003URL\uff1ahttps:\/\/superuser.com\/questions\/639202\/updating-time-ntpdate3108-the-ntp-socket-is-in-use-exiting<\/p>\n<p>http:\/\/tech.ckme.co.jp\/ntp.shtml<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u3064\u3082\u306e\u3088\u3046\u306bNTP\u3067Linux \u306e\u6642\u8a08\u3092\u540c\u671f\u3057\u3088\u3046\u3068\u3001 # ntpq -p \u3057\u3088\u3046\u3068\u3059\u308b\u3068\u540c\u671f\u3057\u306a\u3044\u306e\u3067\u3001 ntpdate ntp.nict.jp \u3059\u308b\u3068 the NTP socket is in use, exiti &hellip; <a href=\"https:\/\/www.stuffy.site\/wordpress\/?p=3386\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">NTP<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,3],"tags":[],"class_list":["post-3386","post","type-post","status-publish","format-standard","hentry","category-command","category-linux"],"_links":{"self":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3386"}],"version-history":[{"count":0,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3386\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}