{"id":34508,"date":"2025-04-29T17:31:30","date_gmt":"2025-04-29T09:31:30","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/34508.html"},"modified":"2025-04-29T17:31:30","modified_gmt":"2025-04-29T09:31:30","slug":"chrony%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%881%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/34508.html","title":{"rendered":"chrony\u670d\u52a1\u5668\uff081\uff09"},"content":{"rendered":"<h3>\u7b80\u4ecb<\/h3>\n<h4>NTP<\/h4>\n<ul>\n<li>NTP&#xff08;Network Time Protocol&#xff0c;\u7f51\u7edc\u65f6\u95f4\u534f\u8bae&#xff09;\u662f\u4e00\u79cd\u7528\u4e8e\u540c\u6b65\u8ba1\u7b97\u673a\u7cfb\u7edf\u65f6\u95f4\u7684\u534f\u8bae<\/li>\n<li>\u662fTCP\/IP\u534f\u8bae\u65cf\u4e2d\u7684\u4e00\u4e2a\u5e94\u7528\u5c42\u534f\u8bae&#xff0c;\u4e3b\u8981\u7528\u4e8e\u5728\u5206\u5e03\u5f0f\u65f6\u95f4\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4e4b\u95f4\u8fdb\u884c\u65f6\u949f\u540c\u6b65&#xff0c;\u63d0\u4f9b\u9ad8\u7cbe\u51c6\u5ea6\u7684\u65f6\u95f4\u6821\u6b63<\/li>\n<li>\u901a\u8fc7\u5206\u5c42\u7684\u65f6\u95f4\u670d\u52a1\u5668\u67b6\u6784&#xff0c;\u786e\u4fdd\u7f51\u7edc\u4e2d\u6240\u6709\u8bbe\u5907\u7684\u65f6\u95f4\u4fdd\u6301\u4e00\u81f4<\/li>\n<li>NTP\u57fa\u4e8eUDP\u534f\u8bae\u8fdb\u884c\u4f20\u8f93&#xff0c;\u4f7f\u7528\u7684UDP\u7aef\u53e3\u53f7\u4e3a123<\/li>\n<li>\u662f\u4e92\u8054\u7f51\u4e0a\u6700\u5e7f\u6cdb\u4f7f\u7528\u7684\u65f6\u95f4\u540c\u6b65\u534f\u8bae&#xff0c;\u5176\u7cbe\u5ea6\u5728\u5c40\u57df\u7f51&#xff08;LAN&#xff09;\u5185\u53ef\u8fbe1\u6beb\u79d2\u5185&#xff0c;\u5728\u5e7f\u57df\u7f51&#xff08;WAN&#xff09;\u4e0a\u53ef\u8fbe\u51e0\u5341\u6beb\u79d2\u5185<\/li>\n<\/ul>\n<h4>Chrony\u4ecb\u7ecd<\/h4>\n<ul>\n<li>\u57fa\u4e8e NTP \u534f\u8bae\u7684\u9ad8\u7cbe\u5ea6\u65f6\u95f4\u540c\u6b65\u5de5\u5177&#xff0c;\u5e7f\u6cdb\u5e94\u7528\u4e8e\u670d\u52a1\u5668\u548c\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d<\/li>\n<li>\n<p>Chrony \u7684\u6838\u5fc3\u7ec4\u4ef6\u5206\u4e3a chronyd\u548cchronyc<\/p>\n<ul>\n<li>\n<p>chronyd&#xff1a;\u540e\u53f0\u8fd0\u884c\u7684\u5b88\u62a4\u8fdb\u7a0b&#xff0c;\u8d1f\u8d23\u8c03\u6574\u5185\u6838\u4e2d\u8fd0\u884c\u7684\u7cfb\u7edf\u65f6\u949f\u548c\u65f6\u949f\u670d\u52a1\u5668\u540c\u6b65&#xff0c;\u786e\u5b9a\u8ba1\u7b97\u673a\u589e\u51cf\u65f6\u95f4\u7684\u6bd4\u7387&#xff0c;\u5e76\u5bf9\u6b64\u8fdb\u884c\u8865\u507f<\/p>\n<\/li>\n<li>\n<p>chronyc&#xff1a;\u547d\u4ee4\u884c\u7528\u6237\u5de5\u5177&#xff0c;\u7528\u4e8e\u76d1\u63a7\u6027\u80fd\u5e76\u8fdb\u884c\u591a\u6837\u5316\u7684\u914d\u7f6e\u3002\u5b83\u53ef\u4ee5\u5728 chronyd \u5b9e\u4f8b\u63a7\u5236\u7684\u8ba1\u7b97\u673a\u4e0a\u5de5\u4f5c&#xff0c;\u4e5f\u53ef\u5728\u4e00\u53f0\u4e0d\u540c\u7684\u8fdc\u7a0b\u8ba1\u7b97\u673a\u4e0a\u5de5\u4f5c<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u91cd\u8981\u6027&#xff1a;<\/h4>\n<ul>\n<li><span style=\"color:#333333\">\u7531\u4e8e<\/span><span style=\"color:#333333\">IT<\/span><span style=\"color:#333333\">\u7cfb\u7edf\u4e2d&#xff0c;\u51c6\u786e\u7684\u8ba1\u65f6\u975e\u5e38\u91cd\u8981&#xff0c;\u6709\u5f88\u591a\u79cd\u539f\u56e0\u9700\u8981\u51c6\u786e\u8ba1\u65f6&#xff1a; <\/span>\n<ul>\n<li><span style=\"color:#333333\">\u5728\u7f51\u7edc\u4f20\u8f93\u4e2d&#xff0c;\u6570\u636e\u5305\u62ec\u548c\u65e5\u5fd7\u9700\u8981\u51c6\u786e\u7684\u65f6\u95f4\u6233 <\/span><\/li>\n<li><span style=\"color:#333333\">\u5404\u79cd\u5e94\u7528\u7a0b\u5e8f\u4e2d&#xff0c;\u5982\u8ba2\u5355\u4fe1\u606f&#xff0c;\u4ea4\u6613\u4fe1\u606f\u7b49 \u90fd\u9700\u8981\u51c6\u786e\u7684\u65f6\u95f4\u6233<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>Linux\u7684\u4e24\u4e2a\u65f6\u949f&#xff1a;<\/h4>\n<ul>\n<li>\n<p><span style=\"color:#333333\">\u786c\u4ef6\u65f6\u949f<\/span><span style=\"color:#333333\">RTC (Real Time Clock)<\/span><span style=\"color:#333333\">&#xff1a;\u5373<\/span><span style=\"color:#333333\">BIOS<\/span><span style=\"color:#333333\">\u65f6\u949f&#xff0c;\u4e5f\u5c31\u662f\u6211\u4eec\u4e3b\u677f\u4e2d\u7528\u7535\u6c60\u4f9b\u7535\u7684\u65f6\u949f&#xff0c;\u662f\u5c06\u65f6\u95f4<\/span><span style=\"color:#333333\">\u5199\u5165\u5230<\/span><span style=\"color:#333333\">BIOS<\/span><span style=\"color:#333333\">\u4e2d&#xff0c;\u7cfb\u7edf\u65ad\u7535\u540e\u65f6\u95f4\u4e0d\u4f1a\u4e22\u5931&#xff0c;\u53ef\u4ee5\u5728\u5f00\u673a\u65f6\u901a\u8fc7\u4e3b\u677f\u7a0b\u5e8f\u4e2d\u8fdb\u884c\u8bbe\u7f6e<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"color:#aa5500\"># <\/span><span style=\"color:#aa5500\">\u67e5\u770b\u786c\u4ef6\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># hwclock <\/span><\/p>\n<p><span style=\"color:#116644\">2023<\/span><span style=\"color:#0000cc\">-05-30 <\/span><span style=\"color:#116644\">09<\/span><span style=\"color:#333333\">:48:32.535594<\/span><span style=\"color:#981a1a\">&#043;<\/span><span style=\"color:#116644\">08<\/span><span style=\"color:#333333\">:00<\/span><\/p>\n<ul>\n<li>\n<p><span style=\"color:#333333\">\u7cfb\u7edf\u65f6\u949f<\/span><span style=\"color:#333333\"> (System Clock) <\/span><span style=\"color:#333333\">&#xff1a;\u987e\u540d\u601d\u4e49\u4e5f\u5c31\u662f<\/span><span style=\"color:#333333\">Linux<\/span><span style=\"color:#333333\">\u7cfb\u7edf\u5185\u6838\u65f6\u949f\u3001\u8f6f\u4ef6\u65f6\u949f&#xff0c;\u662f\u7531<\/span><span style=\"color:#333333\">Linux<\/span><span style=\"color:#333333\">\u5185\u6838\u6765\u63d0<\/span><span style=\"color:#333333\">\u4f9b\u7684&#xff0c;\u7cfb\u7edf\u65f6\u949f\u662f\u57fa\u4e8e\u5185\u5b58&#xff0c;\u5982\u679c\u7cfb\u7edf\u65ad\u7535\u65f6\u95f4\u5c31\u4f1a\u4e22\u5931<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"color:#aa5500\"># <\/span><span style=\"color:#aa5500\">\u67e5\u770b\u7cfb\u7edf\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># date <\/span><\/p>\n<p><span style=\"color:#116644\">2023<\/span><span style=\"color:#333333\">\u5e74 <\/span><span style=\"color:#116644\">05<\/span><span style=\"color:#333333\">\u6708 <\/span><span style=\"color:#116644\">30<\/span><span style=\"color:#333333\">\u65e5 \u661f\u671f\u4e8c <\/span><span style=\"color:#116644\">09<\/span><span style=\"color:#333333\">:50:50 CST <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># date -s 10:00 # <\/span><span style=\"color:#aa5500\">\u4fee\u6539\u4e3a\u9519\u8bef\u7684\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#116644\">2023<\/span><span style=\"color:#333333\">\u5e74 <\/span><span style=\"color:#116644\">05<\/span><span style=\"color:#333333\">\u6708 <\/span><span style=\"color:#116644\">30<\/span><span style=\"color:#333333\">\u65e5 \u661f\u671f\u4e8c <\/span><span style=\"color:#116644\">10<\/span><span style=\"color:#333333\">:00:00 CST <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># date <\/span><\/p>\n<p><span style=\"color:#116644\">2023<\/span><span style=\"color:#333333\">\u5e74 <\/span><span style=\"color:#116644\">05<\/span><span style=\"color:#333333\">\u6708 <\/span><span style=\"color:#116644\">30<\/span><span style=\"color:#333333\">\u65e5 \u661f\u671f\u4e8c <\/span><span style=\"color:#116644\">10<\/span><span style=\"color:#333333\">:00:01 CST <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># hwclock -s # <\/span><span style=\"color:#aa5500\">\u5411\u786c\u4ef6\u65f6\u95f4\u540c\u6b65 <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># date <\/span><\/p>\n<p><span style=\"color:#116644\">2023<\/span><span style=\"color:#333333\">\u5e74 <\/span><span style=\"color:#116644\">05<\/span><span style=\"color:#333333\">\u6708 <\/span><span style=\"color:#116644\">30<\/span><span style=\"color:#333333\">\u65e5 \u661f\u671f\u4e8c <\/span><span style=\"color:#116644\">09<\/span><span style=\"color:#333333\">:51:50 CST<\/span><\/p>\n<h3><span style=\"color:#333333\">\u8bbe\u7f6e\u65e5\u671f\u65f6\u95f4<\/span><\/h3>\n<h4><span style=\"color:#333333\">timedatectl<\/span><span style=\"color:#333333\">\u547d\u4ee4\u8bbe\u7f6e<\/span><\/h4>\n<p><span style=\"color:#aa5500\"># [root&#064;server ~]# timedatectl # <\/span><span style=\"color:#aa5500\">\u663e\u793a\u5f53\u524d\u7684\u65e5\u671f\u548c\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#333333\">Local time: <\/span><span style=\"color:#333333\">\u4e09 <\/span><span style=\"color:#116644\">2023<\/span><span style=\"color:#0000cc\">-11-15 <\/span><span style=\"color:#116644\">13<\/span><span style=\"color:#333333\">:00:26 CST <\/span><span style=\"color:#aa5500\"># <\/span><span style=\"color:#aa5500\">\u672c\u5730\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#333333\">Universal time: <\/span><span style=\"color:#333333\">\u4e09 <\/span><span style=\"color:#116644\">2023<\/span><span style=\"color:#0000cc\">-11-15 <\/span><span style=\"color:#116644\">05<\/span><span style=\"color:#333333\">:00:26 UTC <\/span><span style=\"color:#aa5500\"># <\/span><span style=\"color:#aa5500\">\u4e16\u754c\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#333333\">RTC time: <\/span><span style=\"color:#333333\">\u4e09 <\/span><span style=\"color:#116644\">2023<\/span><span style=\"color:#0000cc\">-11-15 <\/span><span style=\"color:#116644\">06<\/span><span style=\"color:#333333\">:16:16 <\/span><span style=\"color:#aa5500\"># <\/span><span style=\"color:#aa5500\">\u786c\u4ef6\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#333333\">Time zone: Asia\/Shanghai (CST, <\/span><span style=\"color:#981a1a\">&#043;<\/span><span style=\"color:#116644\">0800<\/span><span style=\"color:#333333\">) <\/span><span style=\"color:#aa5500\"># <\/span><span style=\"color:#aa5500\">\u65f6\u533a <\/span><\/p>\n<p><span style=\"color:#333333\">System clock synchronized: <\/span><span style=\"color:#3300aa\">yes <\/span><span style=\"color:#aa5500\"># <\/span><span style=\"color:#aa5500\">\u65f6\u95f4\u662f\u5426\u5df2\u540c\u6b65 <\/span><\/p>\n<p><span style=\"color:#333333\">NTP <\/span><span style=\"color:#3300aa\">service<\/span><span style=\"color:#333333\">: active <\/span><span style=\"color:#aa5500\"># <\/span><span style=\"color:#aa5500\">\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u5df2\u542f\u52a8 <\/span><\/p>\n<p><span style=\"color:#333333\">RTC <\/span><span style=\"color:#770088\">in <\/span><span style=\"color:#333333\">local TZ: no <\/span><span style=\"color:#aa5500\"># no<\/span><span style=\"color:#aa5500\">\u8868\u793a\u786c\u4ef6\u65f6\u949f\u8bbe\u7f6e\u4e3a\u534f\u8c03\u4e16\u754c\u65f6&#xff08;<\/span><span style=\"color:#aa5500\">UTC<\/span><span style=\"color:#aa5500\">&#xff09;&#xff0c;<\/span><span style=\"color:#aa5500\">yes<\/span><span style=\"color:#aa5500\">\u8868\u793a\u786c\u4ef6\u65f6\u949f\u8bbe <\/span><\/p>\n<p><span style=\"color:#aa5500\">\u7f6e\u4e3a\u672c\u5730\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># systemctl status chronyd # <\/span><span style=\"color:#aa5500\">\u67e5\u770b\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u72b6\u6001&#xff08;\u7531\u4e8e\u9ed8\u8ba4\u4f7f\u7528<\/span><span style=\"color:#aa5500\">chrony<\/span><span style=\"color:#aa5500\">\u670d\u52a1\u540c\u6b65\u65f6\u95f4&#xff0c;\u4e0d\u518d\u4f7f\u7528ntp<\/span><span style=\"color:#aa5500\">\u670d\u52a1&#xff09;<\/span><\/p>\n<\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># timedatectl set-ntp no # <\/span><span style=\"color:#aa5500\">\u5173\u95ed\u65f6\u95f4\u540c\u6b65&#xff0c;\u4ee5\u65b9\u4fbf\u4fee\u6539\u65e5\u671f\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># systemctl status chronyd <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># timedatectl set-time &#034;2023-12-12&#034; # <\/span><span style=\"color:#aa5500\">\u8bbe\u7f6e\u65b0\u65e5\u671f <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># timedatectl set-time &#034;12:12:12&#034; <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># timedatectl <\/span><\/p>\n<p><span style=\"color:#333333\">Local time: <\/span><span style=\"color:#333333\">\u4e8c <\/span><span style=\"color:#116644\">2023<\/span><span style=\"color:#0000cc\">-12-12 <\/span><span style=\"color:#116644\">12<\/span><span style=\"color:#333333\">:12:22 CST <\/span><\/p>\n<p><span style=\"color:#333333\">Universal time: <\/span><span style=\"color:#333333\">\u4e8c <\/span><span style=\"color:#116644\">2023<\/span><span style=\"color:#0000cc\">-12-12 <\/span><span style=\"color:#116644\">04<\/span><span style=\"color:#333333\">:12:22 UTC <\/span><\/p>\n<p><span style=\"color:#333333\">RTC time: <\/span><span style=\"color:#333333\">\u4e8c <\/span><span style=\"color:#116644\">2023<\/span><span style=\"color:#0000cc\">-12-12 <\/span><span style=\"color:#116644\">04<\/span><span style=\"color:#333333\">:12:23 <\/span><\/p>\n<p><span style=\"color:#333333\">Time zone: Asia\/Shanghai (CST, <\/span><span style=\"color:#981a1a\">&#043;<\/span><span style=\"color:#116644\">0800<\/span><span style=\"color:#333333\">) <\/span><\/p>\n<p><span style=\"color:#333333\">System clock synchronized: no <\/span><\/p>\n<p><span style=\"color:#333333\">NTP <\/span><span style=\"color:#3300aa\">service<\/span><span style=\"color:#333333\">: inactive <\/span><\/p>\n<p><span style=\"color:#333333\">RTC <\/span><span style=\"color:#770088\">in <\/span><span style=\"color:#333333\">local TZ: no <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># timedatectl list-timezones | grep Asia # <\/span><span style=\"color:#aa5500\">\u67e5\u770b\u53ef\u7528\u65f6\u533a <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># timedatectl set-timezone Asia\/Shanghai # <\/span><span style=\"color:#aa5500\">\u8bbe\u7f6e\u65f6\u533a<\/span><\/p>\n<h4>date\u547d\u4ee4\u8bbe\u7f6e<\/h4>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># date # <\/span><span style=\"color:#aa5500\">\u663e\u793a <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># date &#043;&#034;%Y-%m-%d %H:%M:%S&#034; # <\/span><span style=\"color:#aa5500\">\u683c\u5f0f\u663e\u793a <\/span><\/p>\n<p><span style=\"color:#aa5500\"># <\/span><span style=\"color:#aa5500\">\u8bbe\u7f6e\u65e5\u671f\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># date -s 2023-11-15 <\/span><\/p>\n<p><span style=\"color:#116644\">2023<\/span><span style=\"color:#333333\">\u5e74 <\/span><span style=\"color:#116644\">11<\/span><span style=\"color:#333333\">\u6708 <\/span><span style=\"color:#116644\">15<\/span><span style=\"color:#333333\">\u65e5 \u661f\u671f\u4e09 <\/span><span style=\"color:#116644\">00<\/span><span style=\"color:#333333\">:00:00 CST <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># date -s 14:33:33 <\/span><\/p>\n<p><span style=\"color:#116644\">2023<\/span><span style=\"color:#333333\">\u5e74 <\/span><span style=\"color:#116644\">11<\/span><span style=\"color:#333333\">\u6708 <\/span><span style=\"color:#116644\">15<\/span><span style=\"color:#333333\">\u65e5 \u661f\u671f\u4e09 <\/span><span style=\"color:#116644\">14<\/span><span style=\"color:#333333\">:33:33 CST <\/span><\/p>\n<p><span style=\"color:#333333\">[root&#064;server ~]<\/span><span style=\"color:#aa5500\"># date <\/span><\/p>\n<p><span style=\"color:#116644\">2023<\/span><span style=\"color:#333333\">\u5e74 <\/span><span style=\"color:#116644\">11<\/span><span style=\"color:#333333\">\u6708 <\/span><span style=\"color:#116644\">15<\/span><span style=\"color:#333333\">\u65e5 \u661f\u671f\u4e09 <\/span><span style=\"color:#116644\">14<\/span><span style=\"color:#333333\">:33:34 CST<\/span><\/p>\n<p><span style=\"color:#333333\">\u6ce8\u610f&#xff1a;\u4ee5\u4fbf\u4ee5\u540e\u5b9e\u9a8c\u6b63\u5e38\u6267\u884c&#xff0c;\u53ef\u4ee5\u6062\u590d\u5feb\u7167\u6267\u884c<\/span><\/p>\n<h3><\/h3><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb761\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf5\u6b21\u3002NTP\uff08Network Time Protocol\uff0c\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u540c\u6b65\u8ba1\u7b97\u673a\u7cfb\u7edf\u65f6\u95f4\u7684\u534f\u8bae\u662fTCP\/IP\u534f\u8bae\u65cf\u4e2d\u7684\u4e00\u4e2a\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u4e3b\u8981\u7528\u4e8e\u5728\u5206\u5e03\u5f0f\u65f6\u95f4\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4e4b\u95f4\u8fdb\u884c\u65f6\u949f\u540c\u6b65\uff0c\u63d0\u4f9b\u9ad8\u7cbe\u51c6\u5ea6\u7684\u65f6\u95f4\u6821\u6b63\u901a\u8fc7\u5206\u5c42\u7684\u65f6\u95f4\u670d\u52a1\u5668\u67b6\u6784\uff0c\u786e\u4fdd\u7f51\u7edc\u4e2d\u6240\u6709\u8bbe\u5907\u7684\u65f6\u95f4\u4fdd\u6301\u4e00\u81f4NTP\u57fa\u4e8eUDP\u534f\u8bae\u8fdb\u884c\u4f20\u8f93\uff0c\u4f7f\u7528\u7684UDP\u7aef\u53e3\u53f7\u4e3a123\u662f\u4e92\u8054\u7f51\u4e0a\u6700\u5e7f\u6cdb\u4f7f\u7528\u7684\u65f6\u95f4\u540c\u6b65\u534f\u8bae\uff0c\u5176\u7cbe\u5ea6\u5728\u5c40\u57df\u7f51\uff08LAN\uff09\u5185\u53ef\u8fbe1\u6beb\u79d2\u5185\uff0c\u5728\u5e7f\u57df\u7f51\uff08WAN\uff09\u4e0a\u53ef\u8fbe\u51e0\u5341\u6beb\u79d2\u5185\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-34508","post","type-post","status-publish","format-standard","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>chrony\u670d\u52a1\u5668\uff081\uff09 - \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\/34508.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"chrony\u670d\u52a1\u5668\uff081\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb761\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf5\u6b21\u3002NTP\uff08Network Time Protocol\uff0c\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u540c\u6b65\u8ba1\u7b97\u673a\u7cfb\u7edf\u65f6\u95f4\u7684\u534f\u8bae\u662fTCP\/IP\u534f\u8bae\u65cf\u4e2d\u7684\u4e00\u4e2a\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u4e3b\u8981\u7528\u4e8e\u5728\u5206\u5e03\u5f0f\u65f6\u95f4\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4e4b\u95f4\u8fdb\u884c\u65f6\u949f\u540c\u6b65\uff0c\u63d0\u4f9b\u9ad8\u7cbe\u51c6\u5ea6\u7684\u65f6\u95f4\u6821\u6b63\u901a\u8fc7\u5206\u5c42\u7684\u65f6\u95f4\u670d\u52a1\u5668\u67b6\u6784\uff0c\u786e\u4fdd\u7f51\u7edc\u4e2d\u6240\u6709\u8bbe\u5907\u7684\u65f6\u95f4\u4fdd\u6301\u4e00\u81f4NTP\u57fa\u4e8eUDP\u534f\u8bae\u8fdb\u884c\u4f20\u8f93\uff0c\u4f7f\u7528\u7684UDP\u7aef\u53e3\u53f7\u4e3a123\u662f\u4e92\u8054\u7f51\u4e0a\u6700\u5e7f\u6cdb\u4f7f\u7528\u7684\u65f6\u95f4\u540c\u6b65\u534f\u8bae\uff0c\u5176\u7cbe\u5ea6\u5728\u5c40\u57df\u7f51\uff08LAN\uff09\u5185\u53ef\u8fbe1\u6beb\u79d2\u5185\uff0c\u5728\u5e7f\u57df\u7f51\uff08WAN\uff09\u4e0a\u53ef\u8fbe\u51e0\u5341\u6beb\u79d2\u5185\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/34508.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-29T09:31:30+00:00\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/34508.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/34508.html\",\"name\":\"chrony\u670d\u52a1\u5668\uff081\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-29T09:31:30+00:00\",\"dateModified\":\"2025-04-29T09:31:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/34508.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/34508.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/34508.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"chrony\u670d\u52a1\u5668\uff081\uff09\"}]},{\"@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":"chrony\u670d\u52a1\u5668\uff081\uff09 - \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\/34508.html","og_locale":"zh_CN","og_type":"article","og_title":"chrony\u670d\u52a1\u5668\uff081\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb761\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf5\u6b21\u3002NTP\uff08Network Time Protocol\uff0c\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u540c\u6b65\u8ba1\u7b97\u673a\u7cfb\u7edf\u65f6\u95f4\u7684\u534f\u8bae\u662fTCP\/IP\u534f\u8bae\u65cf\u4e2d\u7684\u4e00\u4e2a\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u4e3b\u8981\u7528\u4e8e\u5728\u5206\u5e03\u5f0f\u65f6\u95f4\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4e4b\u95f4\u8fdb\u884c\u65f6\u949f\u540c\u6b65\uff0c\u63d0\u4f9b\u9ad8\u7cbe\u51c6\u5ea6\u7684\u65f6\u95f4\u6821\u6b63\u901a\u8fc7\u5206\u5c42\u7684\u65f6\u95f4\u670d\u52a1\u5668\u67b6\u6784\uff0c\u786e\u4fdd\u7f51\u7edc\u4e2d\u6240\u6709\u8bbe\u5907\u7684\u65f6\u95f4\u4fdd\u6301\u4e00\u81f4NTP\u57fa\u4e8eUDP\u534f\u8bae\u8fdb\u884c\u4f20\u8f93\uff0c\u4f7f\u7528\u7684UDP\u7aef\u53e3\u53f7\u4e3a123\u662f\u4e92\u8054\u7f51\u4e0a\u6700\u5e7f\u6cdb\u4f7f\u7528\u7684\u65f6\u95f4\u540c\u6b65\u534f\u8bae\uff0c\u5176\u7cbe\u5ea6\u5728\u5c40\u57df\u7f51\uff08LAN\uff09\u5185\u53ef\u8fbe1\u6beb\u79d2\u5185\uff0c\u5728\u5e7f\u57df\u7f51\uff08WAN\uff09\u4e0a\u53ef\u8fbe\u51e0\u5341\u6beb\u79d2\u5185\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/34508.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-29T09:31:30+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/34508.html","url":"https:\/\/www.wsisp.com\/helps\/34508.html","name":"chrony\u670d\u52a1\u5668\uff081\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-29T09:31:30+00:00","dateModified":"2025-04-29T09:31:30+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/34508.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/34508.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/34508.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"chrony\u670d\u52a1\u5668\uff081\uff09"}]},{"@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\/34508","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=34508"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/34508\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=34508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=34508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=34508"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=34508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}