{"id":8400,"date":"2020-07-22T21:32:53","date_gmt":"2020-07-22T13:32:53","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8400"},"modified":"2022-05-14T20:37:06","modified_gmt":"2022-05-14T12:37:06","slug":"chronyc","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/chronyc","title":{"rendered":"chronyc\u547d\u4ee4 – \u8bbe\u7f6e\u65f6\u95f4\u4e0e\u65f6\u949f\u670d\u52a1\u5668\u540c\u6b65"},"content":{"rendered":"\n
chronyc\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cchrony command-line\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u8bbe\u7f6e\u65f6\u95f4\u4e0e\u65f6\u949f\u670d\u52a1\u5668\u7684\u540c\u6b65\u5de5\u4f5c\u3002chrony\u662f\u4e00\u4e2a\u7528\u4e8e\u4fdd\u6301\u7cfb\u7edf\u65f6\u95f4\u4e0eNTP\u65f6\u949f\u670d\u52a1\u5668\u540c\u6b65\u7684\u670d\u52a1\uff0c\u5e38\u89c1\u7684\u662fchronyd\u662f\u5176\u5b88\u62a4\u8fdb\u7a0b\u7684\u540d\u79f0\uff0c\u800cchronyc\u547d\u4ee4\u5219\u662f\u7528\u6237\u7684\u914d\u7f6e\u5de5\u5177\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>chronyc [\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\u5f53\u524d\u7cfb\u7edf\u7684\u65f6\u95f4\u540c\u6b65\u6e90\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u7684\u65f6\u95f4\u540c\u6b65\u6e90\u72b6\u6001\u4fe1\u606f\uff1a<\/p>\n\n\n\n chronyc\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cchrony command-line\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u8bbe\u7f6e\u65f6\u95f4\u4e0e\u65f6\u949f\u670d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8400"}],"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=8400"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8400\/revisions"}],"predecessor-version":[{"id":9715,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8400\/revisions\/9715"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}sources<\/td> \u65f6\u95f4\u540c\u6b65\u6e90<\/td><\/tr> sourcestats<\/td> \u65f6\u95f4\u540c\u6b65\u6e90\u72b6\u6001<\/td><\/tr> -v<\/td> \u8be6\u7ec6\u4fe1\u606f\u6a21\u5f0f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# chronyc sources -v<\/strong>\n\n .-- Source mode '^' = server, '=' = peer, '#' = local clock.\n \/ .- Source state '*' = current best, '+' = combined, '-' = not combined,\n| \/ 'x' = may be in error, '~' = too variable, '?' = unusable.\n|| .- xxxx [ yyyy ] +\/- zzzz\n|| Reachability register (octal) -. | xxxx = adjusted offset,\n|| Log2(Polling interval) --. | | yyyy = measured offset,\n|| \\ | | zzzz = estimated error.\n|| | | \\\nMS Name\/IP address Stratum Poll Reach LastRx Last sample \n===============================================================================\n^- 120.25.115.20 2 10 337 31m -78us[ -49us] +\/- 17ms\n^? 10.143.33.49 0 10 0 - +0ns[ +0ns] +\/- 0ns\n^* 100.100.3.1 2 10 377 671 -128us[ -124us] +\/- 3286us\n^+ 100.100.3.2 2 10 377 535 +1377us[+1377us] +\/- 4689us\n^+ 100.100.3.3 2 10 175 25m +151us[ +155us] +\/- 4858us\n^- 203.107.6.88 2 10 377 192 -2029us[-2029us] +\/- 16ms\n^? 10.143.33.50 0 10 0 - +0ns[ +0ns] +\/- 0ns\n^? 10.143.33.51 0 10 0 - +0ns[ +0ns] +\/- 0ns\n^? 10.143.0.44 0 10 0 - +0ns[ +0ns] +\/- 0ns\n^? 10.143.0.45 0 10 0 - +0ns[ +0ns] +\/- 0ns\n^? 10.143.0.46 0 10 0 - +0ns[ +0ns] +\/- 0ns\n^+ 100.100.5.1 2 10 377 388 +111us[ +111us] +\/- 4041us\n^+ 100.100.5.2 2 10 377 732 +1110us[+1114us] +\/- 5489us\n^+ 100.100.5.3 2 10 377 629 -638us[ -638us] +\/- 4120us<\/pre>\n\n\n\n
[root@linuxcool ~]# chronyc sourcestats <\/strong>\r\nName\/IP Address NP NR Span Frequency Freq Skew Offset Std Dev\r\n==============================================================================\r\n120.25.115.20 59 31 18h -0.011 0.019 -536us 875us\r\n10.143.33.49 0 0 0 +0.000 2000.000 +0ns 4000ms\r\n100.100.3.1 64 36 18h +0.000 0.012 +65us 493us\r\n100.100.3.2 64 33 18h -0.004 0.011 -189us 498us\r\n100.100.3.3 42 22 17h +0.006 0.015 +150us 471us\r\n203.107.6.88 64 40 18h -0.005 0.034 -79us 1467us\r\n10.143.33.50 0 0 0 +0.000 2000.000 +0ns 4000ms\r\n10.143.33.51 0 0 0 +0.000 2000.000 +0ns 4000ms\r\n10.143.0.44 0 0 0 +0.000 2000.000 +0ns 4000ms\r\n10.143.0.45 0 0 0 +0.000 2000.000 +0ns 4000ms\r\n10.143.0.46 0 0 0 +0.000 2000.000 +0ns 4000ms\r\n100.100.5.1 42 24 11h +0.014 0.017 +344us 378us\r\n100.100.5.2 64 37 18h -0.000 0.009 -221us 367us\r\n100.100.5.3 64 28 18h -0.003 0.010 -131us 430us\r<\/pre>\n","protected":false},"excerpt":{"rendered":"