{"id":100486,"date":"2026-09-04T19:04:26","date_gmt":"2026-09-04T11:04:26","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/100486.html"},"modified":"2026-09-04T19:04:26","modified_gmt":"2026-09-04T11:04:26","slug":"linuxntp%e6%99%82%e9%96%93%e6%9c%8d%e5%8b%99%e5%a5%97%e4%bb%b6chrony%e7%9a%84%e9%85%8d%e7%bd%ae%e5%ae%89%e8%a3%9d%e8%88%87%e6%b8%ac%e8%a9%a6","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/100486.html","title":{"rendered":"[Linux]NTP\u6642\u9593\u670d\u52d9\u5957\u4ef6(chrony)\u7684\u914d\u7f6e\u5b89\u88dd\u8207\u6e2c\u8a66"},"content":{"rendered":"<h4><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1051\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260904110424-6a9aa5b85477c.png\" width=\"1909\" \/><\/h4>\n<p>\u5728\u7db2\u8def\u670d\u52d9\u6642\u4ee3&#xff0c;\u6642\u9593\u7684\u6e96\u78ba\u6027\u548c\u540c\u6b65\u6027\u662f\u6240\u6709\u5206\u6563\u5f0f\u7cfb\u7d71\u5354\u540c\u904b\u4f5c\u7684\u57fa\u790e&#xff0c;\u7121\u8ad6\u662f\u65e5\u8a8c\u5206\u6790\u3001\u8cc7\u6599\u5eab\u4ea4\u6613\u4e00\u81f4\u6027\u548c\u5b89\u5168\u6191\u8b49\u9a57\u8b49\u7b49\u7b49\u670d\u52d9&#xff0c;\u7cbe\u78ba\u7684\u6642\u9593\u540c\u6b65\u662f\u57fa\u790e\u7684\u5fc5\u5099\u689d\u4ef6\u3002\u524d\u9663\u5b50\u8003\u91cf\u5e73\u66ffWindow AD(Active Directory)\u6b0a\u9650\u7ba1\u7406\u7b49\u529f\u80fd&#xff0c;\u5617\u8a66\u5b89\u88dd\u548c\u6e2c\u8a66\u7684Freeipa\u670d\u52d9\u5c31\u662f\u4e00\u500b\u9700\u8981\u6642\u9593\u540c\u6b65\u7684\u61c9\u7528\u670d\u52d9&#xff0c;\u56e0\u70ba\u5728Freeipa\u7684\u524d\u7f6e\u4f5c\u696d\u4e2d&#xff0c;\u9700\u5148\u884c\u78ba\u8a8d\u4f3a\u670d\u5668\u7aef\u548c\u5404\u500b\u5ba2\u6236\u7aef\u7684\u6642\u9593\u540c\u6b65\u6027&#xff0c;\u4ee5\u78ba\u4fddFreeipa\u6b63\u5e38\u670d\u52d9\u3002 \u7db2\u8def\u6642\u9593\u5354\u5b9a(NTP, Network Time Protocol)\u662f\u5be6\u73fe\u8a72\u5fc5\u5099\u689d\u4ef6\u7684\u6a19\u6e96\u5316\u7db2\u8def\u5354\u5b9a&#xff0c;\u5176\u5141\u8a31\u96fb\u8166\u4e3b\u6a5f\u6216\u5d4c\u5165\u5f0f\u958b\u767c\u677f\u900f\u904e\u7db2\u8def\u8207\u6642\u9593\u4f3a\u670d\u5668\u9054\u5230\u6642\u9593\u540c\u6b65\u7684\u6548\u679c\u3002NTP\u904b\u4f5c\u7684\u6838\u5fc3\u5728\u65bc\u5176\u968e\u5c64\u5f0f(Stratum)\u67b6\u69cb\u3002\u6700\u9802\u5c64\u662fStratum 0(\u5982\u539f\u5b50\u9418)&#xff0c;Stratum 1 \u76f4\u63a5\u5f9e Stratum 0 \u7372\u53d6\u6642\u9593&#xff0c;\u800c Stratum 2 \u5247\u5f9e Stratum 1 \u540c\u6b65&#xff0c;\u4f9d\u6b64\u985e\u63a8\u3002\u50b3\u7d71\u4e0a&#xff0c;ntpd(NTP daemon)\u662f\u4e3b\u6d41\u9078\u64c7&#xff0c;\u5176\u6b77\u53f2\u60a0\u4e45\u4e14\u529f\u80fd\u5f37\u5927&#xff0c;\u4f46\u5728\u73fe\u4ee3\u5316\u7cfb\u7d71\u4e2d\u9010\u6f38\u986f\u9732\u5176\u4fb7\u9650\u6027&#xff0c;\u7279\u5225\u662f\u5728\u555f\u52d5\u901f\u5ea6\u8207\u61c9\u5c0d\u6642\u9593\u6ce2\u52d5\u65b9\u9762\u7684\u8868\u73fe\u3002\u96a8\u8457\u6280\u8853\u6f14\u9032&#xff0c;\u5169\u500b\u6642\u9593\u540c\u6b65\u7684\u89e3\u6c7a\u65b9\u6848(chrony\u548csystemd-timesyncd)\u9010\u6f38\u53d6\u4ee3ntpd&#xff0c;\u76f8\u8f03\u65bc\u50b3\u7d71 ntpd\u65b9\u6848&#xff0c;\u9019\u5169\u500b\u5957\u4ef6\u63d0\u4f9b\u66f4\u52a0\u7cbe\u6e96\u53ef\u9760\u7684\u6642\u9593\u540c\u6b65\u670d\u52d9&#xff0c;\u5c24\u5176\u662f\u5728\u865b\u64ec\u5316\u74b0\u5883\u548c\u7db2\u8def\u4e0d\u7a69\u5b9a\u7684\u5834\u666f\u3002<\/p>\n<\/p>\n<h4>chrony\u548csystemd-timesyncd\u5957\u4ef6\u6bd4\u8f03:<\/h4>\n<p>systemd-timesyncd\u662f\u4e00\u500b\u6975\u7c21\u4e3b\u7fa9\u7684\u89e3\u6c7a\u65b9\u6848\u3002\u5176\u5c6c\u65bcsystemd\u670d\u52d9\u7cfb\u7d71\u7684\u4e00\u90e8\u5206&#xff0c;\u4e3b\u8981\u76ee\u6a19\u662f\u5feb\u901f\u7c21\u55ae\u5730\u8207\u9060\u7aefNTP\u4f3a\u670d\u5668\u540c\u6b65\u672c\u5730\u7cfb\u7d71\u6642\u9593&#xff0c;\u512a\u9ede\u662f\u8f15\u91cf\u7d1a\u4e14\u914d\u7f6e\u7c21\u55ae&#xff0c;\u901a\u5e38\u53ea\u9700\u8981\u914d\u7f6e\/etc\/systemd\/timesyncd.conf&#xff0c;\u5373\u53ef\u5feb\u901f\u5728\u7cfb\u7d71\u555f\u52d5\u6642\u5b8c\u6210\u540c\u6b65\u3002\u7136\u800csystemd-timesyncd\u50c5\u652f\u63f4\u5ba2\u6236\u7aef\u6a21\u5f0f&#xff0c;\u7121\u6cd5\u4f5c\u70ba\u6642\u9593\u4f3a\u670d\u5668\u4f9b\u5176\u4ed6\u8a2d\u5099\u540c\u6b65&#xff0c;\u540c\u6642\u4e0d\u5177\u5099\u8907\u96dc\u7684\u983b\u7387\u8abf\u6574\u6f14\u7b97\u6cd5\u6216Stratum\u7ba1\u7406\u529f\u80fd\u3002\u63db\u8a00\u4e4b&#xff0c;\u5176\u50c5\u9069\u7528\u65bc\u55ae\u4e00\u4e3b\u6a5f&#xff0c;\u958b\u767c\u677f\u6216\u4e0d\u9700\u8981\u63d0\u4f9b\u6642\u9593\u670d\u52d9\u7684\u5ba2\u6236\u7aef&#xff0c;\u800c\u7121\u6cd5\u9069\u7528\u65bc\u5167\u90e8\u5340\u7db2\u67b6\u8a2dNTP\u4f3a\u670d\u5668\u7684\u61c9\u7528\u5834\u666f\u3002<\/p>\n<p>\u76f8\u5c0d\u65bcsystemd-timesyncd&#xff0c;chrony \u662f\u4e00\u500b\u529f\u80fd\u5b8c\u6574\u548c\u512a\u5316\u7684\u89e3\u6c7a\u65b9\u6848&#xff0c;\u5176\u4e3b\u8981\u7531\u5169\u500b\u7a0b\u5f0fchronyd(\u5b88\u8b77\u884c\u7a0b)\u548cchronyc(\u547d\u4ee4\u5217\u4ecb\u9762)\u7d44\u6210\u7684&#xff0c;\u4e26\u900f\u904e\u6f14\u7b97\u6cd5\u7684\u52d5\u614b\u8abf\u6574&#xff0c;\u53ef\u6709\u6548\u91dd\u5c0d\u4e0d\u7a69\u5b9a\u7684\u7db2\u8def\u9023\u7dda\u74b0\u5883\u548c\u983b\u7e41\u7684\u6642\u9418\u983b\u7387\u8b8a\u5316\u7684\u5834\u666f\u5c0d\u6642\u9593\u52d5\u614b\u4fee\u6b63\u548c\u88dc\u511f&#xff0c;\u5176\u5728\u8655\u7406\u6642\u9418\u504f\u79fb(Clock Skew)\u548c\u6642\u9593\u7a81\u8b8a(abrupt jumps)\u7279\u5225\u6709\u6548&#xff0c;\u4e26\u80fd\u5e73\u6ed1\u8abf\u6574\u6642\u9593&#xff0c;\u907f\u514d\u5c0d\u6642\u9593\u8b8a\u5316\u5c0d\u67d0\u4e9b\u61c9\u7528\u670d\u52d9\u9020\u6210\u5f71\u97ff\u3002\u5c0d\u65bc\u5728\u9ad8\u53ef\u9760\u6027\u548c\u9ad8\u7cbe\u5ea6\u6642\u9593\u7684\u61c9\u7528\u5834\u666f&#xff0c;\u4f8b\u5982\u5354\u540c\u904b\u4f5c\u7684\u5206\u6563\u5f0f\u7cfb\u7d71\u6216\u662f\u9700\u8981\u67b6\u8a2d\u5167\u90e8\u6642\u9593\u4f3a\u670d\u5668\u7684Linux\u74b0\u5883&#xff0c;chrony\u662f\u4e0d\u4e8c\u4e4b\u9078&#xff0c;\u4e5f\u662f\u672c\u6587\u4e3b\u8981\u8a0e\u8ad6\u7684\u5167\u5bb9\u3002\u7c21\u55ae\u6bd4\u8f03\u8868\u5982\u4e0b:<\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260904110425-6a9aa5b92583e.png\" \/><\/td>\n<\/tr>\n<tr>\n<td>\u8868\u4e00\u3001chrony\u548csystemd-timesyncd\u6bd4\u8f03\u8868<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><\/h4>\n<h4>chrony\u4f3a\u670d\u5668\u548c\u5ba2\u6236\u7aef\u7684\u5b89\u88dd\u8207\u6e2c\u8a66:<\/h4>\n<p>\u672c\u6587\u7684\u5b89\u88dd\u74b0\u5883\u5982\u4e0b: 1.\u4f3a\u670d\u5668: AlmaLinux OS \u7684\u6a39\u8393\u6d3e(Raspberry pi 5 \/ 8G) 2.\u5ba2\u6236\u7aef: Ubuntu 22.04 LTS desktop OS \u7684\u865b\u64ec\u6a5f<\/p>\n<p>\u70ba\u4e86\u907f\u514d\u4e0d\u540clinux\u767c\u884c\u7248\u672c\u53ef\u80fd\u5148\u884c\u9810\u88ddsystemd-timesyncd\u5957\u4ef6&#xff0c;\u800c\u9020\u6210chrony\u548csystemd-timesyncd\u5957\u4ef6\u4e4b\u9593\u7684\u885d\u7a81&#xff0c;\u8acb\u5148\u884c\u67e5\u770b\u662f\u5426\u5df2\u9810\u88ddsystemd-timesyncd\u5957\u4ef6&#xff0c;\u4e26\u5f37\u5236\u505c\u7528systemd-timesyncd\u5957\u4ef6\u3002\u5b89\u88dd\u6b65\u9a5f\u5982\u4e0b:<\/p>\n<h5>a.\u4f3a\u670d\u5668\u7aef:<\/h5>\n<p>i.\u505c\u7528systemd-timesyncd\u5957\u4ef6(\u4f7f\u7528 mask \u78ba\u4fdd\u4e0d\u6703\u88ab\u5176\u4ed6\u670d\u52d9\u559a\u9192)<\/p>\n<p>sudo systemctl stop systemd-timesyncd<br \/>\nsudo systemctl disable systemd-timesyncd<br \/>\nsudo systemctl mask systemd-timesyncd <\/p>\n<p>ii.\u66f4\u65b0\u8edf\u9ad4\u6e90&#xff0c;\u4e26\u5b89\u88dd\u548c\u555f\u7528chrony<\/p>\n<p>sudo apt update<br \/>\nsudo apt install chrony -y<br \/>\nsudo systemctl enable chrony<br \/>\nsudo systemctl restart chrony <\/p>\n<p>iii.\u914d\u7f6e\/etc\/chrony.conf\u6587\u4ef6 \u53ef\u5229\u7528\u8a72\u6587\u4ef6\u91cd\u65b0\u914d\u7f6e\u4e0a\u6e38\u6642\u9593\u6e90&#xff0c;\u6216\u4e0d\u505a\u4efb\u4f55\u8b8a\u66f4&#xff0c;\u6cbf\u7528\u9810\u8a2d\u7684\u4e0a\u6e38\u6642\u9593\u6e90\u4ea6\u53ef&#xff0c;\u4f8b\u5982pool 2.almalinux.pool.ntp.org \u662f\u6a39\u8393\u6d3e\u4e2dAlmaLinux OS\u9ed8\u8a8d\u7684NTP\u6642\u9593\u540c\u6b65\u6c60\u4f86\u6e90\u3002\u53e6\u5916&#xff0c;\u9084\u9808\u5141\u8a31\u540c\u7db2\u6bb5\u7684\u5ba2\u6236\u7aef\u53ef\u4ee5\u9023\u7dda\u5230\u8a72\u4f3a\u670d\u5668\u7aef\u3002<\/p>\n<p>sudo nano chrony.conf<br \/>\n# Use public servers from the pool.ntp.org project.<br \/>\n# Please consider joining the pool (https:\/\/www.pool.ntp.org\/join.html).<br \/>\npool 2.almalinux.pool.ntp.org iburst<\/p>\n<p># Allow NTP client access from local network.<br \/>\nallow 192.168.0.0\/16 <\/p>\n<p>iv.\u91cd\u555fchrony&#xff0c;\u4e26\u900f\u904e\u4e0b\u5217\u6307\u4ee4\u6aa2\u8996\u8a72\u4f3a\u670d\u5668\u8207\u4e0a\u6e38\u6642\u9593\u6e90\u540c\u6b65\u7684\u72c0\u614b\u3002\u5176\u4e2d\u5716\u4e00\u4e2d\u7684\u7d05\u6846\u8aaa\u660e\u8a72\u4f3a\u670d\u5668\u5df2\u8207\u4e0a\u6e38\u6642\u9593\u6e90\u540c\u6b65\u3002\u5716\u4e8c\u7da0\u6846\u8aaa\u660e\u4e0a\u6e38\u70ba\u4e8c\u7d1a\u6642\u9593\u6e90&#xff0c;\u7d05\u6846\u4e2d\u7684*\u8868\u793a\u76ee\u524d\u8a72\u4f3a\u670d\u5668\u540c\u6b65\u7684\u662f\u9019\u4e00\u500b\u4e8c\u7d1a\u6642\u9593\u6e90(157-20-68-84.fuyu.network)\u3002\u5716\u4e09\u9664\u4e86\u8aaa\u660e\u4e8c\u7d1a\u6642\u9593\u6e90\u7684name\u548cIP\u4e4b\u5916&#xff0c;system time\u8aaa\u660e\u8a72\u4f3a\u670d\u5668\u8207\u9019\u4e00\u500b\u4e8c\u7d1a\u6642\u9593\u6e90(157-20-68-84.fuyu.network)\u7684\u540c\u6b65\u6642\u9593\u5dee&#xff0c;\u4e00\u822c\u800c\u8a00&#xff0c;\u5c0f\u65bc\u6beb\u79d2(ms)\u5c6c\u65bc\u6e96\u78ba&#xff0c;\u56e0\u6b64\u72c0\u614b\u986f\u793a\u70ba\u6b63\u5e38\u3002<\/p>\n<p>sudo systemctl restart chronyd<br \/>\ntimedatectl<br \/>\nchronyc sources -v<br \/>\nchronyc tracking <\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260904110425-6a9aa5b934f6b.png\" \/><\/td>\n<\/tr>\n<tr>\n<td>\u5716\u4e00<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260904110425-6a9aa5b942c00.png\" \/><\/td>\n<\/tr>\n<tr>\n<td>\u5716\u4e8c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260904110425-6a9aa5b952990.png\" \/><\/td>\n<\/tr>\n<tr>\n<td>\u5716\u4e09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>b.\u5ba2\u6236\u7aef:<\/h5>\n<p>\u5ba2\u6236\u7aef\u7684\u5b89\u88dd\u548c\u914d\u7f6e\u76f8\u5c0d\u7c21\u55ae&#xff0c;\u9664\u4e86\u91cd\u8907\u4e0a\u8ff0\u4f3a\u670d\u5668\u7aef\u5b89\u88ddchrony\u7684i\u548cii\u5b89\u88dd\u6b65\u9a5f\u4e4b\u5916&#xff0c;\u53ea\u9700\u5728\u914d\u7f6e\u6587\u4ef6(\/etc\/chrony\/conf.d\/ub_vm.conf)\u4e2d&#xff0c;\u6307\u5411\u4e0a\u8ff0\u5df2\u914d\u7f6e\u7684\u5167\u90e8NTP\u4f3a\u670d\u5668IP\u4f4d\u5740\u6216\u4e3b\u6a5f\u540d\u5373\u53ef&#xff0c;\u6587\u4ef6\u914d\u7f6e\u65b9\u5f0f\u5982\u4e0b:<\/p>\n<p>i.\u5728\/etc\/chrony\/conf.d\u8def\u5f91\u4e0b&#xff0c;\u5efa\u7acb\u4e00\u500bub_vm.conf<\/p>\n<p>sudo nano ub_vm.conf <\/p>\n<p>ii.\u5c07\u4e0b\u5217\u5167\u5bb9\u8cbc\u5230ub_vm.conf\u4e2d<\/p>\n<p># 1. \u512a\u5148\u4f7f\u7528\u4e0a\u8ff0\u5df2\u8a2d\u7f6e\u7684\u5167\u90e8NTP\u4f3a\u670d\u5668(ip:192.168.0.114)&#xff0c;\u52a0\u4e0a prefer \u4ee3\u8868\u6700\u9ad8\u512a\u5148\u6b0a<br \/>\nserver 192.168.0.114 iburst prefer<\/p>\n<p># 2. \u52a0\u5165\u5916\u90e8\u516c\u5171 NTP \u4f3a\u670d\u5668\u4f5c\u70ba\u5099\u63f4 (\u7576\u5167\u90e8NTP\u4f3a\u670d\u5668\u672a\u958b\u6a5f\u6642&#xff0c;\u5167\u90e8\u5ba2\u6236\u7aef\u81ea\u52d5\u4f7f\u7528\u5916\u90e8\u516c\u5171 NTP \u4f3a\u670d\u5668)<br \/>\npool ntp.ubuntu.com iburst<br \/>\npool pool.ntp.org iburst<\/p>\n<p># 3. \u5feb\u901f\u6821\u6642&#xff1a;\u524d3\u6b21\u540c\u6b65&#xff0c;\u82e5\u8aa4\u5dee\u5927\u65bc1\u79d2&#xff0c;\u5247\u7acb\u5373\u8df3\u8f49\u5230\u6b63\u78ba\u6642\u9593<br \/>\nmakestep 1.0 3<\/p>\n<p># 4. \u5132\u5b58\u6642\u9418\u6f02\u79fb\u7387&#xff0c;\u9019\u80fd\u8b93\u5ba2\u6236\u7aef\u5728\u96e2\u7dda\u6642\u66f4\u7cbe\u6e96<br \/>\ndriftfile \/var\/lib\/chrony\/chrony.drift <\/p>\n<p>iii.\u91cd\u555fchrony&#xff0c;\u4f7f\u670d\u52d9\u751f\u6548<\/p>\n<p>sudo systemctl restart chronyd <\/p>\n<p>iv.\u540c\u6a23\u900f\u904e\u4e0b\u5217\u6307\u4ee4\u6aa2\u8996\u8a72\u5ba2\u6236\u7aef\u8207\u8a72\u4f3a\u670d\u5668\u6642\u9593\u540c\u6b65\u7684\u72c0\u614b\u3002<\/p>\n<p>timedatectl<br \/>\nchronyc sources -v<br \/>\nchronyc tracking <\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260904110425-6a9aa5b964c86.png\" \/><\/td>\n<\/tr>\n<tr>\n<td>\u5716\u56db<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260904110425-6a9aa5b9727f0.png\" \/><\/td>\n<\/tr>\n<tr>\n<td>\u5716\u4e94<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260904110425-6a9aa5b98662f.png\" \/><\/td>\n<\/tr>\n<tr>\n<td>\u5716\u516d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u81f3\u65bc\u5982\u4f55\u78ba\u8a8d\u904b\u7dad\u74b0\u5883\u4e2d&#xff0c;\u6642\u9593\u540c\u6b65\u72c0\u614b\u662f\u5426\u5065\u5eb7&#xff0c;\u53ef\u7559\u610f\u4e0b\u5217\u5e7e\u9805\u5167\u5bb9&#xff0c;\u4ee5\u78ba\u8a8d\u5ba2\u6236\u7aef\u548c\u4f3a\u670d\u5668\u7aef\u7684\u9023\u7dda\u72c0\u614b&#xff0c;\u5305\u542b\u5224\u65b7IP\u4f4d\u5740&#xff0c;\u540c\u6b65\u6642\u9593\u5dee&#xff0c;\u6642\u9593\u6e90\u9806\u5e8f\u7b49\u7b49\u6307\u6a19\u3002<\/p>\n<p>1.System clock synchronized: yes&#xff0c;\u8aaa\u660e\u5ba2\u6236\u7aef\u7684\u6642\u9593\u5df2\u8207\u67d0\u500bNTP\u4f3a\u670d\u5668\u53d6\u5f97\u540c\u6b65&#xff0c;\u81f3\u65bc\u8207\u54ea\u500b\u4f3a\u670d\u5668\u53d6\u5f97\u540c\u6b65&#xff0c;\u8981\u7528chronyc\u4f86\u67e5\u770b\u3002<\/p>\n<p>2.^* 192.168.0.114: ^*\u6a19\u7c64\u8868\u793a\u5ba2\u6236\u7aef\u5df2\u8207\u8a72\u53f0NTP\u4f3a\u670d\u5668(\u4e5f\u5c31\u662f\u4e0a\u8ff0\u914d\u7f6e\u7684\u4f3a\u670d\u5668\u7aef)\u53d6\u5f97\u540c\u6b65&#xff0c;\u5982\u679c\u770b\u5230 ? \u6216 x&#xff0c;\u8868\u793a\u9023\u7dda\u6709\u554f\u984c\u6216\u8a72\u6e90\u88ab\u5224\u5b9a\u70ba\u7121\u6548&#xff0c;\u9700\u9032\u4e00\u6b65\u6aa2\u67e5 Offset \u548c Delay \u6b04\u4f4d&#xff0c;\u53ef\u4ee5\u5e6b\u52a9\u8a3a\u65b7\u7db2\u8def\u5ef6\u9072\u6216\u6642\u9593\u504f\u79fb\u904e\u5927\u7684\u554f\u984c\u3002\u53e6\u5916\u53ef\u7279\u5225\u6ce8\u610f\u8a72\u4f3a\u670d\u5668\u7684\u7d1a\u5225(Stratum)\u5c6c\u65bc4\u7d1a\u3002<\/p>\n<p>3.System time : 0.000000041 seconds fast of NTP time&#xff0c;\u8868\u793a\u8a72\u5ba2\u6236\u7aef\u8207\u4e0a\u8ff0\u914d\u7f6e\u7684\u4f3a\u670d\u5668\u7aef(192.168.0.114)\u7684\u540c\u6b65\u6642\u9593\u5dee\u70ba0.000000041\u79d2&#xff0c;\u5c6c\u65bc\u7cbe\u6e96\u53ef\u9760\u7684\u540c\u6b65\u72c0\u614b\u3002<\/p>\n<\/p>\n<h4>Reference:<\/h4>\n<p>1.Chrony-project<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u7db2\u8def\u670d\u52d9\u6642\u4ee3&#xff0c;\u6642\u9593\u7684\u6e96\u78ba\u6027\u548c\u540c\u6b65\u6027\u662f\u6240\u6709\u5206\u6563\u5f0f\u7cfb\u7d71\u5354\u540c\u904b\u4f5c\u7684\u57fa\u790e&#xff0c;\u7121\u8ad6\u662f\u65e5\u8a8c\u5206\u6790\u3001\u8cc7\u6599\u5eab\u4ea4\u6613\u4e00\u81f4\u6027\u548c\u5b89\u5168\u6191\u8b49\u9a57\u8b49\u7b49\u7b49\u670d\u52d9&#xff0c;\u7cbe\u78ba\u7684\u6642\u9593\u540c\u6b65\u662f\u57fa\u790e\u7684\u5fc5\u5099\u689d\u4ef6\u3002\u524d\u9663\u5b50\u8003\u91cf\u5e73\u66ffWindow AD(Active Directory)\u6b0a\u9650\u7ba1\u7406\u7b49\u529f\u80fd&#xff0c;\u5617\u8a66\u5b89\u88dd\u548c\u6e2c\u8a66\u7684Freeipa\u670d\u52d9\u5c31\u662f\u4e00\u500b\u9700\u8981\u6642\u9593\u540c\u6b65\u7684\u61c9\u7528\u670d\u52d9&#xff0c;\u56e0\u70ba\u5728Freeipa\u7684\u524d\u7f6e\u4f5c\u696d\u4e2d&#xff0c;\u9700\u5148\u884c\u78ba\u8a8d\u4f3a\u670d\u5668\u7aef\u548c\u5404\u500b\u5ba2\u6236\u7aef\u7684\u6642\u9593\u540c\u6b65\u6027&amp;#xff0c<\/p>\n","protected":false},"author":2,"featured_media":100478,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9098,4175,58,1077,103,149],"topic":[],"class_list":["post-100486","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-it","tag-chrony","tag-linux","tag-ntp","tag-ubuntu","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Linux]NTP\u6642\u9593\u670d\u52d9\u5957\u4ef6(chrony)\u7684\u914d\u7f6e\u5b89\u88dd\u8207\u6e2c\u8a66 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/100486.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Linux]NTP\u6642\u9593\u670d\u52d9\u5957\u4ef6(chrony)\u7684\u914d\u7f6e\u5b89\u88dd\u8207\u6e2c\u8a66 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u7db2\u8def\u670d\u52d9\u6642\u4ee3&#xff0c;\u6642\u9593\u7684\u6e96\u78ba\u6027\u548c\u540c\u6b65\u6027\u662f\u6240\u6709\u5206\u6563\u5f0f\u7cfb\u7d71\u5354\u540c\u904b\u4f5c\u7684\u57fa\u790e&#xff0c;\u7121\u8ad6\u662f\u65e5\u8a8c\u5206\u6790\u3001\u8cc7\u6599\u5eab\u4ea4\u6613\u4e00\u81f4\u6027\u548c\u5b89\u5168\u6191\u8b49\u9a57\u8b49\u7b49\u7b49\u670d\u52d9&#xff0c;\u7cbe\u78ba\u7684\u6642\u9593\u540c\u6b65\u662f\u57fa\u790e\u7684\u5fc5\u5099\u689d\u4ef6\u3002\u524d\u9663\u5b50\u8003\u91cf\u5e73\u66ffWindow AD(Active Directory)\u6b0a\u9650\u7ba1\u7406\u7b49\u529f\u80fd&#xff0c;\u5617\u8a66\u5b89\u88dd\u548c\u6e2c\u8a66\u7684Freeipa\u670d\u52d9\u5c31\u662f\u4e00\u500b\u9700\u8981\u6642\u9593\u540c\u6b65\u7684\u61c9\u7528\u670d\u52d9&#xff0c;\u56e0\u70ba\u5728Freeipa\u7684\u524d\u7f6e\u4f5c\u696d\u4e2d&#xff0c;\u9700\u5148\u884c\u78ba\u8a8d\u4f3a\u670d\u5668\u7aef\u548c\u5404\u500b\u5ba2\u6236\u7aef\u7684\u6642\u9593\u540c\u6b65\u6027&amp;#xff0c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/100486.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-04T11:04:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260904110424-6a9aa5b85477c.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100486.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/100486.html\",\"name\":\"[Linux]NTP\u6642\u9593\u670d\u52d9\u5957\u4ef6(chrony)\u7684\u914d\u7f6e\u5b89\u88dd\u8207\u6e2c\u8a66 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-04T11:04:26+00:00\",\"dateModified\":\"2026-09-04T11:04:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/100486.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/100486.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100486.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Linux]NTP\u6642\u9593\u670d\u52d9\u5957\u4ef6(chrony)\u7684\u914d\u7f6e\u5b89\u88dd\u8207\u6e2c\u8a66\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Linux]NTP\u6642\u9593\u670d\u52d9\u5957\u4ef6(chrony)\u7684\u914d\u7f6e\u5b89\u88dd\u8207\u6e2c\u8a66 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/100486.html","og_locale":"zh_CN","og_type":"article","og_title":"[Linux]NTP\u6642\u9593\u670d\u52d9\u5957\u4ef6(chrony)\u7684\u914d\u7f6e\u5b89\u88dd\u8207\u6e2c\u8a66 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u7db2\u8def\u670d\u52d9\u6642\u4ee3&#xff0c;\u6642\u9593\u7684\u6e96\u78ba\u6027\u548c\u540c\u6b65\u6027\u662f\u6240\u6709\u5206\u6563\u5f0f\u7cfb\u7d71\u5354\u540c\u904b\u4f5c\u7684\u57fa\u790e&#xff0c;\u7121\u8ad6\u662f\u65e5\u8a8c\u5206\u6790\u3001\u8cc7\u6599\u5eab\u4ea4\u6613\u4e00\u81f4\u6027\u548c\u5b89\u5168\u6191\u8b49\u9a57\u8b49\u7b49\u7b49\u670d\u52d9&#xff0c;\u7cbe\u78ba\u7684\u6642\u9593\u540c\u6b65\u662f\u57fa\u790e\u7684\u5fc5\u5099\u689d\u4ef6\u3002\u524d\u9663\u5b50\u8003\u91cf\u5e73\u66ffWindow AD(Active Directory)\u6b0a\u9650\u7ba1\u7406\u7b49\u529f\u80fd&#xff0c;\u5617\u8a66\u5b89\u88dd\u548c\u6e2c\u8a66\u7684Freeipa\u670d\u52d9\u5c31\u662f\u4e00\u500b\u9700\u8981\u6642\u9593\u540c\u6b65\u7684\u61c9\u7528\u670d\u52d9&#xff0c;\u56e0\u70ba\u5728Freeipa\u7684\u524d\u7f6e\u4f5c\u696d\u4e2d&#xff0c;\u9700\u5148\u884c\u78ba\u8a8d\u4f3a\u670d\u5668\u7aef\u548c\u5404\u500b\u5ba2\u6236\u7aef\u7684\u6642\u9593\u540c\u6b65\u6027&amp;#xff0c","og_url":"https:\/\/www.wsisp.com\/helps\/100486.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-04T11:04:26+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260904110424-6a9aa5b85477c.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/100486.html","url":"https:\/\/www.wsisp.com\/helps\/100486.html","name":"[Linux]NTP\u6642\u9593\u670d\u52d9\u5957\u4ef6(chrony)\u7684\u914d\u7f6e\u5b89\u88dd\u8207\u6e2c\u8a66 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-04T11:04:26+00:00","dateModified":"2026-09-04T11:04:26+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/100486.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/100486.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/100486.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"[Linux]NTP\u6642\u9593\u670d\u52d9\u5957\u4ef6(chrony)\u7684\u914d\u7f6e\u5b89\u88dd\u8207\u6e2c\u8a66"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=100486"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100486\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/100478"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=100486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=100486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=100486"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=100486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}