\r\nsudo vim \/etc\/chrony.conf\r\n<\/pre>\n\u5220\u9664\u914d\u7f6e\u81ea\u5e26\u7684NTP\u670d\u52a1\u5668\u3002\u6362\u6210\u56fd\u5185\u963f\u91cc\u4e91\u7684NTP\u670d\u52a1\u5668\u5730\u5740\u3002<\/p>\n
\u6dfb\u52a0\u4e0a\u6e38NTP\u670d\u52a1\u5668<\/p>\n
\r\nserver time1.aliyun.com iburst \r\nserver time2.aliyun.com iburst\r\nserver time3.aliyun.com iburst\r\n<\/pre>\n\u5141\u8bb8 192.168.1.0\/24 \u5185\u7684\u5ba2\u6237\u7aef\u901a\u8fc7\u8fd9\u53f0\u670d\u52a1\u5668\u83b7\u53d6\u65f6\u95f4<\/p>\n
\r\nallow 192.168.1.0\/24 \r\n<\/pre>\n\u914d\u7f6e\u65e0\u8bef\u540e\uff0c\u91cd\u542fchrony\u670d\u52a1\uff0c\u5e76\u914d\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\uff1a<\/p>\n
\r\nsystemctl restart chronyd.service\r\nsystemctl enable chronyd.service\r\n<\/pre>\n\u4f7f\u7528ss -tlunp | grep chrony\u6216\u8005 lsof -i:123\u547d\u4ee4\u68c0\u67e5chrony\u670d\u52a1\u4f7f\u7528\u7684123\/udp\u7aef\u53e3\u662f\u5426\u542f\u52a8\u6210\u529f<\/p>\n
\u4f5c\u4e3a\u5ba2\u6237\u7aef<\/strong><\/div>\n\u540c\u6837\u5b89\u88c5\uff0c\u7136\u540e\u4fee\u6539\u5ba2\u6237\u7aefchrony\u914d\u7f6e\u6587\u4ef6<\/p>\n
\r\nsudo vim \/etc\/chrony.conf\r\n\r\n# 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 \r\n<\/pre>\n#\u6dfb\u52a0NTP\u670d\u52a1\u5668<\/p>\n
\r\nserver time1.aliyun.com iburst \r\nserver time2.aliyun.com iburst\r\nserver time3.aliyun.com iburst\r\n<\/pre>\n\u5982\u679c\u6709\u81ea\u5efa\u7684chrony\u5ba2\u6237\u7aef\u4e5f\u53ef\u4ee5\u81ea\u884c\u914d\u7f6e<\/p>\n
\r\nserver 192.168.1.30 iburst\r\n<\/pre>\n\u91cd\u542fchrony\u5ba2\u6237\u7aef\u670d\u52a1\uff0c\u91cd\u542fchrony\u670d\u52a1\uff0c\u5e76\u914d\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\uff1a<\/p>\n
\r\nsystemctl restart chronyd.service && systemctl enable chronyd.service --now\r\n<\/pre>\n\u67e5\u770b\u540c\u6b65\u72b6\u6001<\/p>\n
\r\nchronyc sources -v\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"sudo dnf install chrony -y sudo yum install chrony -y C […]<\/p>\n","protected":false},"author":362,"featured_media":204466,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-203558","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/203558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=203558"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/203558\/revisions"}],"predecessor-version":[{"id":205375,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/203558\/revisions\/205375"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/204466"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=203558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=203558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=203558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}