{"id":8525,"date":"2020-08-28T13:16:27","date_gmt":"2020-08-28T05:16:27","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8525"},"modified":"2020-08-28T13:16:27","modified_gmt":"2020-08-28T05:16:27","slug":"ntpd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ntpd","title":{"rendered":"ntpd\u547d\u4ee4 – \u7f51\u7edc\u65f6\u95f4\u534f\u8bae(NTP)\u5b88\u62a4\u8fdb\u7a0b"},"content":{"rendered":"\n

ntpd\u5b9e\u7528\u7a0b\u5e8f\u662f\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u5b88\u62a4\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u8bbe\u7f6e\u548c\u7ef4\u62a4\u7cfb\u7edf\u7684\u65f6\u95f4\u4e0e\u4e92\u8054\u7f51\u6807\u51c6\u65f6\u95f4\u670d\u52a1\u5668\u540c\u6b65\u3002\u5b83\u662fRFC-5905\u5b9a\u4e49\u7684\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff08NTP\uff09\u7b2c4\u7248\u7684\u5b8c\u6574\u5b9e\u73b0\uff0c\u540c\u65f6\u4e5f\u662fRFC-5905\u5b9a\u4e49\u7684\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff08NTP\uff09\u7684\u5b8c\u6574\u5b9e\u73b0\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>ntpd [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-a<\/td>\u5bf9\u5e7f\u64ad\u5ba2\u6237\u7aef\u3001\u591a\u64ad\u5ba2\u6237\u7aef\u548c\u5bf9\u79f0\u88ab\u52a8\u5173\u8054\u8fdb\u884c\u52a0\u5bc6\u8ba4\u8bc1<\/td><\/tr>
-A<\/td>\u5e7f\u64ad\u5ba2\u6237\u7aef\u3001\u591a\u64ad\u5ba2\u6237\u7aef\u548c\u5bf9\u79f0\u88ab\u52a8\u5173\u8054\u4e0d\u9700\u8981\u52a0\u5bc6\u8ba4\u8bc1<\/td><\/tr>
-b<\/td>\u542f\u7528\u5ba2\u6237\u7aef\u540c\u6b65\u5230\u5e7f\u64ad\u670d\u52a1\u5668<\/td><\/tr>
-c conffile<\/td>\u6307\u5b9a\u914d\u7f6e\u6587\u4ef6\u7684\u540d\u79f0\u548c\u8def\u5f84\uff0c\u9ed8\u8ba4\u4e3a\/etc\/ntp\/ntp.conf<\/td><\/tr>
-L<\/td>\u4e0d\u8981\u76d1\u542c\u865a\u62dfIP\uff0c\u9ed8\u8ba4\u662f\u76d1\u542c<\/td><\/tr>
-d<\/td>\u4f7f\u7528\u8c03\u8bd5\u6a21\u5f0f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5bf9\u5e7f\u64ad\u5ba2\u6237\u7aef\u3001\u591a\u64ad\u5ba2\u6237\u7aef\u548c\u5bf9\u79f0\u88ab\u52a8\u5173\u8054\u8fdb\u884c\u52a0\u5bc6\u8ba4\u8bc1\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ntpd -a<\/pre>\n\n\n\n

\u5e7f\u64ad\u5ba2\u6237\u7aef\u3001\u591a\u64ad\u5ba2\u6237\u7aef\u548c\u5bf9\u79f0\u88ab\u52a8\u5173\u8054\u4e0d\u9700\u8981\u52a0\u5bc6\u8ba4\u8bc1\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ntpd -A<\/pre>\n\n\n\n

\u542f\u7528\u5ba2\u6237\u7aef\u540c\u6b65\u5230\u5e7f\u64ad\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ntpd -b<\/pre>\n","protected":false},"excerpt":{"rendered":"

ntpd\u5b9e\u7528\u7a0b\u5e8f\u662f\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u5b88\u62a4\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u8bbe\u7f6e\u548c\u7ef4\u62a4\u7cfb\u7edf\u7684\u65f6\u95f4\u4e0e\u4e92\u8054\u7f51\u6807\u51c6\u65f6\u95f4\u670d\u52a1\u5668\u540c\u6b65\u3002\u5b83\u662fRFC-59 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8525"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8525"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8525\/revisions"}],"predecessor-version":[{"id":8529,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8525\/revisions\/8529"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}