{"id":8520,"date":"2020-08-28T13:16:27","date_gmt":"2020-08-28T05:16:27","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8520"},"modified":"2022-06-10T15:14:26","modified_gmt":"2022-06-10T07:14:26","slug":"ntpq","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ntpq","title":{"rendered":"ntpq\u547d\u4ee4 – \u67e5\u8be2NTP\u65f6\u95f4\u670d\u52a1\u5668\u4fe1\u606f"},"content":{"rendered":"\n
ntpq\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cNTP query\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u67e5\u8be2NTP\u65f6\u95f4\u670d\u52a1\u5668\u4fe1\u606f\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>ntpq [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u67e5\u770b\u670d\u52a1\u5668\u540c\u7ea7\u8bbe\u5907\u5217\u8868\uff1a<\/p>\n\n\n\n \u663e\u793a\u5185\u6838\u76f8\u5173\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u8981\u6c42\u7528\u6237\u8f93\u5165\u5bc6\u7801\u8fdb\u884c\u9a8c\u8bc1\uff1a<\/p>\n\n\n\n \u4ee5\u5341\u8fdb\u5236\u683c\u5f0f\u663e\u793a\u4e3b\u673a\u5730\u5740\uff1a<\/p>\n\n\n\n ntpq\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cNTP query\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u67e5\u8be2NTP\u65f6\u95f4\u670d\u52a1\u5668\u4fe1\u606f\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1ant […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8520"}],"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=8520"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8520\/revisions"}],"predecessor-version":[{"id":10248,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8520\/revisions\/10248"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-4<\/td> \u4f7f\u7528ipv4\u89e3\u6790<\/td><\/tr> -6<\/td> \u4f7f\u7528ipv6\u89e3\u6790<\/td><\/tr> -c [command]<\/td> \u6dfb\u52a0\u6267\u884c\u7684\u547d\u4ee4\u5230\u6307\u5b9a\u4e3b\u673a\u7684\u547d\u4ee4\u5217\u8868<\/td><\/tr> -d<\/td> \u6253\u5f00\u8c03\u8bd5\u6a21\u5f0f<\/td><\/tr> -i<\/td> \u4f7f\u7528\u4ea4\u4e92\u6a21\u5f0f<\/td><\/tr> -n<\/td> \u4ee5\u5341\u8fdb\u5236\u683c\u5f0f\u663e\u793a\u4e3b\u673a\u5730\u5740<\/td><\/tr> -p<\/td> \u663e\u793a\u670d\u52a1\u5668\u540c\u7ea7\u8bbe\u5907\u7684\u5217\u8868<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# ntpq -p<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# ntpq -c kerninfo<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# ntpq -c passwd<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# ntpq -pn<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"