{"id":748,"date":"2020-08-29T16:52:41","date_gmt":"2020-08-29T08:52:41","guid":{"rendered":"https:\/\/www.kiccleaf.com\/?p=748"},"modified":"2020-08-29T16:53:10","modified_gmt":"2020-08-29T08:53:10","slug":"centos8%e7%b3%bb%e7%bb%9f%e6%97%b6%e9%97%b4%e5%90%8c%e6%ad%a5%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.kiccleaf.com\/?p=748","title":{"rendered":"CentOS8\u7cfb\u7edf\u65f6\u95f4\u540c\u6b65\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u88c5\u4e86\u65b0\u7684CentOS8\uff0c\u624d\u53d1\u73b0\u6709\u5f88\u591a\u539f\u6765\u4f7f\u7528\u7684\u5de5\u5177\u5728\u65b0\u7248\u672c\u4e2d\u5df2\u7ecf\u88ab\u5176\u4ed6\u5de5\u5177\u66ff\u4ee3\uff0c\u4eca\u5929\u628a\u5e38\u89c4\u7684\u7cfb\u7edf\u65f6\u95f4\u540c\u6b65\u95ee\u9898\u89e3\u51b3\u4e00\u4e0b\uff0cCentOS7\u53ca\u4ee5\u4e0b\u7684\u90fd\u662f\u91c7\u7528NTP\u6765\u89e3\u51b3\uff0c\u300a<a href=\"https:\/\/www.kiccleaf.com\/?p=561\" data-type=\"URL\" data-id=\"https:\/\/www.kiccleaf.com\/?p=561\" target=\"_blank\" rel=\"noreferrer noopener\">linux\u4e2drc.local\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u6ca1\u6709\u751f\u6548\u89e3\u51b3\u65b9\u6848<\/a>\u300b\u3002<\/p>\n\n\n\n<p>\u627e\u4e86\u4e00\u4e0b\u65b9\u6cd5\uff0c\u539f\u6765\u662f\u4f7f\u7528\u4e86\u53e6\u4e00\u4e2a\u5de5\u5177\u66ff\u4ee3\u4e86\uff0c\u8bb0\u5f55\u4e00\u4e0b\u5148<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">[root@kiccleaf home]# yum install -y chrony\r\n\r\nInstalled:\r\n  chrony-3.5-1.el8.x86_64                                                                                            timedatex-0.5-3.el8.x86_64                                                                                           \r\n\r\nComplete!\r\n\u5b89\u88c5\u597d\u5de5\u5177\uff0c\u5148\u542f\u52a8\n[root@kiccleaf home]# systemctl start chronyd\r\n\u8bbe\u4e3a\u7cfb\u7edf\u81ea\u52a8\u542f\u52a8\n[root@kiccleaf home]# systemctl enable chronyd\r\n\u7f16\u8f91\u4e00\u4e0b\u914d\u7f6e\u6587\u4ef6\n[root@kiccleaf home]# vim \/etc\/chrony.conf\r<\/code><\/pre>\n\n\n\n<p>\/etc\/chrony.conf\u914d\u7f6e\u6587\u4ef6\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"apacheconf\" class=\"language-apacheconf\"># Use public servers from the pool.ntp.org project.\r\n# Please consider joining the pool (http:\/\/www.pool.ntp.org\/join.html).\r\n#pool 2.centos.pool.ntp.org iburst \uff08\u8fd9\u4e00\u884c\u6ce8\u91ca\u6389\uff0c\u589e\u52a0\u4ee5\u4e0b\u4e24\u884c\uff09\r\nserver ntp.aliyun.com iburst\r\nserver cn.ntp.org.cn iburst\r<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\n[root@kiccleaf home]# systemctl restart chronyd.service\r\n[root@kiccleaf home]# chronyc sources -v\r\n210 Number of sources = 2\r\n\r\n  .-- Source mode  '^' = server, '=' = peer, '#' = local clock.\r\n \/ .- Source state '*' = current synced, '+' = combined , '-' = not combined,\r\n| \/   '?' = unreachable, 'x' = time may be in error, '~' = time too variable.\r\n||                                                 .- xxxx [ yyyy ] +\/- zzzz\r\n||      Reachability register (octal) -.           |  xxxx = adjusted offset,\r\n||      Log2(Polling interval) --.      |          |  yyyy = measured offset,\r\n||                                \\     |          |  zzzz = estimated error.\r\n||                                 |    |           \\\r\nMS Name\/IP address         Stratum Poll Reach LastRx Last sample               \r\n===============================================================================\r\n^* 203.107.6.88                  2   6     7     2   -188us[+6871us] +\/-   24ms\r\n^- 61.177.189.190                3   6    17    19   +663us[ +663us] +\/-   97ms\r\n\r\n[root@kiccleaf home]# date\r\nSat Aug 29 16:26:08 CST 2020<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u88c5\u4e86\u65b0\u7684CentOS8\uff0c\u624d\u53d1\u73b0\u6709\u5f88\u591a\u539f\u6765\u4f7f\u7528\u7684\u5de5\u5177&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.kiccleaf.com\/?p=748\">Continue reading<span class=\"screen-reader-text\">CentOS8\u7cfb\u7edf\u65f6\u95f4\u540c\u6b65\u89e3\u51b3\u65b9\u6cd5<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":4,"footnotes":""},"categories":[4],"tags":[13],"class_list":["post-748","post","type-post","status-publish","format-standard","hentry","category-linux-","tag-linux","entry"],"views":9580,"_links":{"self":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=748"}],"version-history":[{"count":2,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/748\/revisions"}],"predecessor-version":[{"id":750,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/748\/revisions\/750"}],"wp:attachment":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=748"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}