{"id":14657,"date":"2023-09-05T10:23:36","date_gmt":"2023-09-05T02:23:36","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=14657"},"modified":"2026-03-11T12:05:53","modified_gmt":"2026-03-11T04:05:53","slug":"chrony","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2023\/09\/05\/chrony\/","title":{"rendered":"Linux\u65f6\u95f4\u670d\u52a1\u5668chrony\u7528\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Chrony\u662f\u4e00\u4e2a\u5f00\u6e90\u81ea\u7531\u7684\u7f51\u7edc\u65f6\u95f4\u534f\u8bae NTP \u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u8f6f\u4ef6\u3002\u5b83\u80fd\u8ba9\u8ba1\u7b97\u673a\u65f6\u95f4\u4e0e\u6807\u51c6\u7684\u65f6\u949f\u670d\u52a1\u5668\uff08NTP\uff09\u540c\u6b65\uff0c\u4ece\u800c\u8ba9\u8ba1\u7b97\u673a\u4fdd\u6301\u7cbe\u786e\u7684\u65f6\u95f4\uff0cChrony\u4e5f\u53ef\u4ee5\u4f5c\u4e3a\u670d\u52a1\u7aef\u8f6f\u4ef6\u4e3a\u5176\u4ed6\u8ba1\u7b97\u673a\u63d0\u4f9b\u65f6\u95f4\u540c\u6b65\u670d\u52a1\uff0cChrony\u53ef\u4ee5\u7406\u89e3\u4e3aNTP\u7684\u53e6\u4e00\u79cd\u5b9e\u73b0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">chrony\u76f8\u6bd4ntp\u7684\u4f18\u52bf\u4e3b\u8981\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u80fd\u66f4\u7cbe\u786e\u3001\u66f4\u5feb\u7684\u540c\u6b65\u65f6\u949f\uff0c\u4f20\u7edfntp \u9700\u8981\u51e0\u5c0f\u65f6\uff0c\u800cchrony \u4ec5\u9700\u8981\u6570\u79d2\u79cd\u6216\u6570\u6beb\u79d2\u5373\u53ef\u5b8c\u6210\u65f6\u95f4\u540c\u6b65<\/li>\n\n\n\n<li>chrony \u5360\u7528\u7cfb\u7edf\u8d44\u6e90\u5c11\uff0c\u53ea\u6709\u88ab\u5524\u8d77\u65f6\u624d\u5360\u7528\u5c11\u90e8\u5206CPU \uff0cchrony \u517c\u5bb9ntpdate<\/li>\n\n\n\n<li>\u80fd\u591f\u66f4\u597d\u5730\u54cd\u5e94\u65f6\u949f\u9891\u7387\u7684\u5feb\u901f\u53d8\u5316\uff0c\u8fd9\u5bf9\u4e8e\u5177\u5907\u4e0d\u7a33\u5b9a\u65f6\u949f\u7684\u865a\u62df\u673a\u6216\u5bfc\u81f4\u65f6\u949f\u9891\u7387\u53d1\u751f\u53d8\u5316\u7684\u8282\u80fd\u6280\u672f\u800c\u8a00\u975e\u5e38\u6709\u7528<\/li>\n\n\n\n<li>\u5728\u521d\u59cb\u540c\u6b65\u540e\uff0c\u5b83\u4e0d\u4f1a\u505c\u6b62\u65f6\u949f\uff0c\u4ee5\u9632\u5bf9\u9700\u8981\u7cfb\u7edf\u65f6\u95f4\u4fdd\u6301\u5355\u8c03\u7684\u5e94\u7528\u7a0b\u5e8f\u9020\u6210\u5f71\u54cd<\/li>\n\n\n\n<li>\u65e0\u9700\u5bf9\u670d\u52a1\u5668\u8fdb\u884c\u5b9a\u671f\u8f6e\u8be2\uff0c\u56e0\u6b64\u5177\u5907\u95f4\u6b47\u6027\u7f51\u7edc\u8fde\u63a5\u7684\u7cfb\u7edf\u4ecd\u7136\u53ef\u4ee5\u5feb\u901f\u540c\u6b65\u65f6\u949f<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Chrony\u8fd0\u884c\u4e8eUDP323\u7aef\u53e3\uff0cntp\u8fd0\u884c\u4e8eUDP123\u7aef\u53e3\uff0c\u4f7f\u7528chrony\u670d\u52a1\u5668\u53ef\u4ee5\u540c\u65f6\u4e3achrony\u5ba2\u6237\u7aef\u548cntp\u5ba2\u6237\u7aef\u63d0\u4f9b\u670d\u52a1<\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\">\u6ce8\u610f\uff1achrony\u548cntp\u4e0d\u80fd\u540c\u65f6\u517c\u5bb9\u7684\uff0c\u53ea\u80fd\u8fd0\u884c\u4e00\u4e2a\uff0c\u5426\u5219\u4f1a\u51fa\u9519<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Chrony\u5305\u62ec\u4e24\u4e2a\u6838\u5fc3\u7ec4\u4ef6\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>chronyd\uff1a\u4e00\u4e2a\u540e\u53f0\u8fd0\u884c\u7684\u5b88\u62a4\u8fdb\u7a0b\uff0c\u7528\u4e8e\u8c03\u6574\u5185\u6838\u4e2d\u8fd0\u884c\u7684\u7cfb\u7edf\u65f6\u949f\u4e0eNTP\u670d\u52a1\u5668\u540c\u6b65\u3002\u5b83\u786e\u5b9a\u670d\u52a1\u5668\u589e\u51cf\u65f6\u95f4\u7684\u6bd4\u7387\uff0c\u5e76\u5bf9\u6b64\u8fdb\u884c\u8c03\u6574\u8865\u507f\uff0c\u5373\u662f\u670d\u52a1\u5668\u7aef\u8fdb\u7a0b\u4e5f\u53ef\u4ee5\u662f\u5ba2\u6237\u7aef\u8fdb\u7a0b<\/li>\n\n\n\n<li>chronyc\uff1a\u63d0\u4f9b\u7528\u6237\u754c\u9762\uff0c\u7528\u4e8e\u76d1\u63a7\u6027\u80fd\u5e76\u8fdb\u884c\u591a\u6837\u5316\u7684\u914d\u7f6e\u3002\u5b83\u53ef\u4ee5\u5728chronyd\u5b9e\u4f8b\u63a7\u5236\u7684\u670d\u52a1\u5668\u4e0a\u5de5\u4f5c\uff0c\u4e5f\u53ef\u4ee5\u5728\u4e00\u53f0\u4e0d\u540c\u7684\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u5de5\u4f5c<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">CentOS7\u9ed8\u8ba4\u4f7f\u7528\u4e86chrony\u4f5c\u4e3a\u65f6\u95f4\u670d\u52a1\u5668\uff0c\u5982\u679c\u8981\u4f7f\u7528ntp\uff0c\u9700\u8981\u989d\u5916\u5b89\u88c5<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u4f8b\u5b50\u6f14\u793a\u901a\u8fc7\u4e00\u53f0\u673a\u5668\u90e8\u7f72chrony\u6765\u4f5c\u4e3a\u65f6\u95f4\u670d\u52a1\u5668\uff0c\u53e6\u4e00\u53f0\u5ba2\u6237\u7aef\u6765\u540c\u6b65\u6b64\u65f6\u95f4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u73af\u5883\u51c6\u5907\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>192.168.49.224\uff1a\u65f6\u95f4\u670d\u52a1\u5668\uff0c\u9700\u8981\u5b89\u88c5chrony<\/li>\n\n\n\n<li>192.168.49.130\uff1a\u5ba2\u6237\u7aef\u670d\u52a1\u5668\uff0c\u9700\u8981\u540c\u6b65\u65f6\u95f4<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">\u670d\u52a1\u7aef<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u9996\u5148\u67e5\u770b49.224\u673a\u5668\u7684\u65f6\u95f4\u4ee5\u53ca\u662f\u5426\u5b89\u88c5\u4e86chrony\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"270\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/19.png\" alt=\"\" class=\"wp-image-14663\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/19.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/19-300x115.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/19-600x229.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ece\u4e0a\u56fe\u53ef\u4ee5\u770b\u51fa\uff0c49.224\u670d\u52a1\u5668\u65f6\u95f4\u4e3a2023\u5e749\u67085\u53f7\u4e0a\u5348\u5341\u70b934\uff0c\u5e76\u4e14\u5df2\u7ecf\u5b89\u88c5\u4e86chrony<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u90a3\u4e48\u5c31\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5\u548c\u542f\u52a8\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install chrony\nsystemctl enable chronyd --now<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u7f16\u8f91vim \/etc\/chrony\/chrony.conf\u914d\u7f6e\u6587\u4ef6\uff0c\u53c2\u6570\u8bf4\u660e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n#\u914d\u7f6e\u65f6\u95f4\u670d\u52a1\u5668,\u4ee5server\u5f00\u5934,\u53ef\u6dfb\u52a0\u591a\u4e2a\nserver 1.centos.pool.ntp.org iburst\nserver 2.centos.pool.ntp.org iburst\n#\u6839\u636e\u5b9e\u9645\u65f6\u95f4\u8ba1\u7b97\u51fa\u670d\u52a1\u5668\u589e\u51cf\u65f6\u95f4\u7684\u6bd4\u7387\uff0c\u7136\u540e\u8bb0\u5f55\u5230\u4e00\u4e2a\u6587\u4ef6\u4e2d\u91cd\u542f\u8865\u507f\u6821\u6b63\ndriftfile \/var\/lib\/chrony\/drift\n#\u5982\u679c\u7cfb\u7edf\u65f6\u949f\u7684\u504f\u79fb\u91cf\u5927\u4e8e1\u79d2\uff0c\u5219\u5141\u8bb8\u7cfb\u7edf\u65f6\u949f\u5728\u524d\u4e09\u6b21\u66f4\u65b0\u4e2d\u6b65\u8fdb\nmakestep 1.0 3\n#\u5141\u8bb8\u6307\u5b9a\u7f51\u7edc\u7684\u4e3b\u673a\u540c\u6b65\u65f6\u95f4\uff0c\u4e0d\u6307\u5b9a\u5c31\u662f\u5141\u8bb8\u6240\u6709\uff0c\u9ed8\u8ba4\u4e0d\u5f00\u542f\nallow 192.168.49.130\/16\n#\u5f53chrony\u63d0\u4f9b\u7684\u65f6\u95f4\u4e0d\u53ef\u7528\uff0c\u91c7\u7528\u672c\u5730\u65f6\u95f4\u7ee7\u7eed\u4f5c\u4e3a\u65f6\u95f4\u670d\u52a1\u5668\u8ba9\u5176\u4ed6\u4e3b\u673a\u6765\u540c\u6b65\u65f6\u95f4\nlocal stratum 10\nlogdir \/var\/log\/chrony<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\u610f\u770b\u4e0a\u9762\u7684allow\u662f\u5141\u8bb8\u54ea\u4e2a\u5ba2\u6237\u7aef\u6765\u540c\u6b65\u65f6\u95f4\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6e\u5219\u6240\u6709\u5ba2\u6237\u7aef\u90fd\u53ef\u540c\u6b65\uff0c\u4fee\u6539\u5b8c\u6210\u540e\u91cd\u542fchrony\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart chronyd<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">\u5ba2\u6237\u7aef<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5ba2\u6237\u7aef\u540c\u6b65\u65f6\u95f4\u4e5f\u4f7f\u7528chrony\u5b88\u62a4\u8fdb\u7a0b\u8fdb\u884c\u540c\u6b65<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u9996\u5148\u67e5\u770b\u5ba2\u6237\u7aef\u7684\u65f6\u95f4\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"704\" height=\"166\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/1.png\" alt=\"\" class=\"wp-image-14672\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/1.png 704w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/1-300x71.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/1-600x141.png 600w\" sizes=\"auto, (max-width: 704px) 100vw, 704px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ece\u4e0a\u56fe\u53ef\u4ee5\u770b\u51fa\uff0c\u4e0e\u670d\u52a1\u7aef\u7684\u65f6\u95f4\u5dee\u4e86\u5f88\u591a\uff0c\u73b0\u5728\u8fdb\u884c\u540c\u6b65\u4e0b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u5b89\u88c5chrony\u8fdb\u7a0b\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum -y install chrony<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">3\u2018\u3001\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6chrony.conf\uff0c\u6dfb\u52a0\u65f6\u95f4\u670d\u52a1\u5668\u4e3a\u670d\u52a1\u7aef\u5730\u5740\uff0c\u5176\u4f59\u914d\u7f6e\u4e0d\u7528\u52a8\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"158\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/2.png\" alt=\"\" class=\"wp-image-14674\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/2.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/2-300x67.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/2-600x134.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4\u3001\u542f\u52a8chrony\uff0c\u672a\u6210\u529f\uff0c\u67e5\u770b\u9519\u8bef\u65e5\u5fd7\/var\/log\/message\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Sep  5 05:45:25 localhost systemd: Starting NTP client\/server...\nSep  5 05:45:25 localhost chronyd&#91;18360]: chronyd version 3.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)\nSep  5 05:45:25 localhost chronyd&#91;18360]: Could not change ownership of \/var\/run\/chrony : Operation not permitted\nSep  5 05:45:25 localhost chronyd&#91;18360]: Could not access \/var\/run\/chrony : No such file or directory\nSep  5 05:45:25 localhost chronyd&#91;18360]: Disabled command socket \/var\/run\/chrony\/chronyd.sock\nSep  5 05:45:25 localhost chronyd&#91;18360]: Fatal error : Could not open \/var\/run\/chrony\/chronyd.pid : No such file or directory\nSep  5 05:45:25 localhost chronyd: Could not open \/var\/run\/chrony\/chronyd.pid : No such file or directory\nSep  5 05:45:25 localhost systemd: chronyd.service: control process exited, code=exited status=1\nSep  5 05:45:25 localhost systemd: Failed to start NTP client\/server.\nSep  5 05:45:25 localhost systemd: Unit chronyd.service entered failed state.\nSep  5 05:45:25 localhost systemd: chronyd.service failed.\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u9762\u7684\u9519\u8bef\u662f\u56e0\u4e3a\u5f53\u524d\u7cfb\u7edf\u662fcentos7.3\uff0c\u7136\u540e\u4f7f\u7528yum\u5b89\u88c5chrony\u540e\u9ed8\u8ba4\u5b89\u88c5\u4e86\u6700\u65b0\u7248\u672c\u7684chrony\uff0c\u6700\u65b0\u7248\u672cchrony\u4e0d\u517c\u5bb97.3\u5185\u6838\uff0c\u56e0\u4e3a\u8981\u4e48\u5b89\u88c5\u5bf9\u5e947.3\u5185\u6838\u7684chrony\uff0c\u8981\u4e48\u5347\u7ea7\u7cfb\u7edf\u7248\u672c\uff0c\u6211\u8fd9\u91cc\u76f4\u63a5\u5347\u7ea7\u7cfb\u7edf\u7248\u672c\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum update -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u518d\u6b21\u91cd\u542fchronyd\u53ef\u4ee5\u770b\u5230\u5df2\u7ecf\u542f\u52a8\u6210\u529f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5\u3001\u6b64\u65f6\u67e5\u770b\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u7684\u65f6\u95f4\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"99\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/4.png\" alt=\"\" class=\"wp-image-14679\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/4.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/4-300x42.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/4-600x84.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"95\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/5.png\" alt=\"\" class=\"wp-image-14680\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/5.png 705w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/5-300x40.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/09\/5-600x81.png 600w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"has-white-background-color has-background wp-block-paragraph\">\u4e00\u822c\u5ba2\u6237\u7aef\u91cd\u542fchronyd\u540e\u51e0\u79d2\u949f\u5373\u53ef\u5b9e\u73b0\u65f6\u95f4\u540c\u6b65<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\u610f\uff1a\u5982\u679c\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u7aef\u65f6\u95f4\u76f8\u5dee\u8f83\u5927\uff0c\u5f00\u542fmakestep 1.0 3\u53c2\u6570\u662f\u53ef\u4ee5\u52a0\u5feb\u65f6\u95f4\u540c\u6b65\u7684\uff0c\u53c2\u6570\u8bf4\u660e\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>1.0<\/code>\uff1a\u6307\u5b9a\u6bcf\u79d2\u949f\u7684\u6b65\u8fdb\u91cf\u4e3a 1.0 \u79d2\u3002\u8fd9\u610f\u5473\u7740\u7cfb\u7edf\u65f6\u949f\u5c06\u4ee5\u6bcf\u79d2 1.0 \u79d2\u7684\u901f\u5ea6\u8fdb\u884c\u8c03\u6574<\/li>\n\n\n\n<li>3\uff1a\u8868\u793a\u5141\u8bb8\u7684\u6700\u5927\u6b65\u8fdb\u6b21\u6570\u3002\u5982\u679c\u65f6\u949f\u504f\u79bb\u592a\u5927\uff0c\u5728 <code>makestep<\/code> \u6267\u884c\u671f\u95f4\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b chrony \u5c06\u6700\u591a\u6267\u884c 3 \u6b21\u6b65\u8fdb\u8c03\u6574<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528 <code>makestep<\/code> \u53ef\u4ee5\u5e2e\u52a9\u5feb\u901f\u7ea0\u6b63\u7cfb\u7edf\u65f6\u949f\u7684\u8f83\u5927\u504f\u79fb\uff0c\u4ee5\u4fbf\u5c3d\u5feb\u4e0e NTP \u670d\u52a1\u5668\u540c\u6b65\u3002\u7136\u800c\uff0c\u8fc7\u591a\u7684\u5927\u6b65\u8c03\u6574\u53ef\u80fd\u4f1a\u5bf9\u7cfb\u7edf\u7a33\u5b9a\u6027\u4ea7\u751f\u4e00\u4e9b\u8d1f\u9762\u5f71\u54cd\uff0c\u56e0\u6b64 <code>makestep<\/code> \u7684\u4f7f\u7528\u5e94\u614e\u91cd\uff0c\u5e76\u5c3d\u91cf\u5728\u7f51\u7edc\u73af\u5883\u4e0d\u7a33\u5b9a\u6216\u521d\u59cb\u540c\u6b65\u65f6\u4f7f\u7528<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e38\u7528\u7684chronyc\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chronyc sources -v      #\u67e5\u770b ntp_servers\nchronyc sourcestats -v  #\u67e5\u770b ntp_servers \u72b6\u6001\nchronyc activity -v     #\u67e5\u770b ntp_servers \u662f\u5426\u5728\u7ebf\nchronyc tracking -v     #\u67e5\u770b ntp \u8be6\u7ec6\u4fe1\u606f\nchronyc -a makestep     #\u5f3a\u5236\u540c\u6b65\u4e0b\u7cfb\u7edf\u65f6\u949f<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Chrony\u662f\u4e00\u4e2a\u5f00\u6e90\u81ea\u7531\u7684\u7f51\u7edc\u65f6\u95f4\u534f\u8bae NTP \u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u8f6f\u4ef6\u3002\u5b83\u80fd\u8ba9\u8ba1\u7b97\u673a\u65f6\u95f4\u4e0e\u6807\u51c6\u7684\u65f6\u949f\u670d\u52a1\u5668\uff08N [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":14658,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-14657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/14657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=14657"}],"version-history":[{"count":22,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/14657\/revisions"}],"predecessor-version":[{"id":19753,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/14657\/revisions\/19753"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/14658"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=14657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=14657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=14657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}