{"id":36217,"date":"2025-05-08T09:10:44","date_gmt":"2025-05-08T01:10:44","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/36217.html"},"modified":"2025-05-08T09:10:44","modified_gmt":"2025-05-08T01:10:44","slug":"linux%e4%b8%ad%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%97%b6%e9%97%b4%e5%90%8c%e6%ad%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/36217.html","title":{"rendered":"Linux\u4e2d\u670d\u52a1\u5668\u65f6\u95f4\u540c\u6b65"},"content":{"rendered":"<h3>\u7b80\u5355\u4ecb\u7ecd<\/h3>\n<p> <span style=\"color:#323232\">\u5728 redhat 8 \u4e4b\u524d&#xff0c;\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u662f\u4f7f\u7528 NTP&#xff08;\u7f51\u7edc\u65f6\u95f4\u534f\u8bae&#xff09;\u6765\u5b9e\u73b0\u7684&#xff0c;\u5728 redhat 8 \u53ca\u4e4b <\/span> <\/p>\n<p> <span style=\"color:#323232\">\u540e\u4f7f\u7528\u662f NTP \u7684\u5b9e\u73b0\u5de5\u5177 chrony \u6765\u5b9e\u73b0\u65f6\u95f4\u540c\u6b65\u3002 <\/span> <\/p>\n<p> <span style=\"color:#323232\">\u5728 redhat 8 \u53ca\u4e4b\u540e&#xff0c;\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5df2\u7ecf\u5b89\u88c5\u597d chrony \u8f6f\u4ef6\u5e76\u5df2\u7ecf\u5f00\u673a\u542f\u52a8 chronyd \u670d\u52a1\u3002\u6211 <\/span> <\/p>\n<p> <span style=\"color:#323232\">\u4eec\u53ef\u4ee5\u4f7f\u7528 chronyc \u547d\u4ee4\u6765\u4e34\u65f6\u4fee\u6539\u65f6\u95f4\u540c\u6b65&#xff0c;\u4f46\u66f4\u5efa\u8bae\u53bb\u4fee\u6539 \/etc\/chony.conf \u914d\u7f6e\u6587\u4ef6 <\/span> <\/p>\n<p> <span style=\"color:#323232\">\u6765\u5b9e\u73b0\u6301\u4e45\u5316\u7684\u4fee\u6539\u3002<\/span> <\/p>\n<p> [root&#064;nfs share]# rpm -ql chrony | grep chrony<br \/>\n\/etc\/chrony.conf # \u6838\u5fc3\u914d\u7f6e\u6587\u4ef6<br \/>\n\/etc\/chrony.keys<br \/>\n\/etc\/dhcp\/dhclient.d\/chrony.sh<br \/>\n\/etc\/logrotate.d\/chrony<br \/>\n\/etc\/sysconfig\/chronyd # chrony\u7684\u5b88\u62a4\u8fdb\u7a0b\u914d\u7f6e\u6587\u4ef6<br \/>\n\/usr\/bin\/chronyc # chrony\u7684\u5ba2\u6237\u7aef<br \/>\n\/usr\/lib\/NetworkManager\/dispatcher.d\/20-chrony-dhcp<br \/>\n\/usr\/lib\/NetworkManager\/dispatcher.d\/20-chrony-onoffline<br \/>\n\/usr\/lib\/systemd\/ntp-units.d\/50-chronyd.list<br \/>\n\/usr\/lib\/systemd\/system\/chrony-wait.service<br \/>\n\u68c0\u67e5\u540c\u6b65<br \/>\n\/usr\/lib\/systemd\/system\/chronyd-restricted.service<br \/>\n\/usr\/lib\/systemd\/system\/chronyd.service # \u7528\u6237\u7ba1\u7406chrony\u7684\u670d\u52a1<br \/>\n\/usr\/lib\/sysusers.d\/chrony.conf<br \/>\n\/usr\/sbin\/chronyd # chrony\u7684\u5b88\u62a4\u8fdb\u7a0b\u6267\u884c\u6587\u4ef6<br \/>\n\/usr\/share\/doc\/chrony<br \/>\n\/usr\/share\/doc\/chrony\/FAQ<br \/>\n\/usr\/share\/doc\/chrony\/NEWS<br \/>\n\/usr\/share\/doc\/chrony\/README<br \/>\n\/usr\/share\/licenses\/chrony<br \/>\n\/usr\/share\/licenses\/chrony\/COPYING<br \/>\n\/usr\/share\/man\/man1\/chronyc.1.gz<br \/>\n\/usr\/share\/man\/man5\/chrony.conf.5.gz<br \/>\n\/usr\/share\/man\/man8\/chronyd.8.gz<br \/>\n\/var\/lib\/chrony<br \/>\n\/var\/lib\/chrony\/drift<br \/>\n\/var\/lib\/chrony\/rtc<br \/>\n\/var\/log\/chrony # \u65e5\u5fd7\u6587\u4ef6 <\/p>\n<h3><span style=\"color:#323232\">\u68c0\u67e5\u540c\u6b65<\/span><\/h3>\n<p> [root&#064;nfs share]# chronyc tracking<br \/>\nReference ID : A29FC801 (162.159.200.1)<br \/>\nStratum : 4<br \/>\nRef time (UTC) : Sat Apr 19 11:39:03 2025<br \/>\nSystem time : 0.000000116 seconds slow of NTP time<br \/>\nLast offset : -0.001120899 seconds<br \/>\nRMS offset : 0.017774450 seconds<br \/>\nFrequency : 38.105 ppm fast<br \/>\nResidual freq : -0.045 ppm<br \/>\nSkew : 45.345 ppm<br \/>\nRoot delay : 0.214364186 seconds<br \/>\nRoot dispersion : 0.265033543 seconds<br \/>\nUpdate interval : 65.2 seconds<br \/>\nLeap status : Normal <\/p>\n<p>\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n<p> chronyc tracking \u547d\u4ee4\u7528\u4e8e\u67e5\u770b chrony \u5f53\u524d\u7684\u65f6\u949f\u540c\u6b65\u72b6\u6001&#xff0c;\u4ee5\u4e0b\u662f\u5bf9\u8f93\u51fa\u4e2d\u5404\u5b57\u6bb5\u7684\u8be6\u7ec6\u89e3\u91ca&#xff1a;<\/p>\n<p>Reference ID&#xff1a;\u503c\u4e3a A29FC801 (162.159.200.1) &#xff0c;\u6307\u7684\u662f\u5f53\u524d\u7cfb\u7edf\u6b63\u5728\u4e0e\u4e4b\u540c\u6b65\u7684\u8fdc\u7a0b NTP \u670d\u52a1\u5668\u7684 IP \u5730\u5740&#xff08;\u62ec\u53f7\u5185\u5185\u5bb9&#xff09; &#xff0c;\u5341\u516d\u8fdb\u5236\u5f62\u5f0f A29FC801 \u4e5f\u662f\u8be5\u670d\u52a1\u5668\u5730\u5740\u7684\u53e6\u4e00\u79cd\u8868\u793a\u65b9\u5f0f\u3002\u5b83\u8868\u660e\u4e86\u5f53\u524d\u7cfb\u7edf\u83b7\u53d6\u65f6\u95f4\u540c\u6b65\u7684\u6765\u6e90\u670d\u52a1\u5668\u3002<\/p>\n<p>Stratum&#xff1a;\u503c\u4e3a 4 &#xff0c;\u8868\u793a\u5f53\u524d\u7cfb\u7edf\u65f6\u949f\u5728 NTP \u5c42\u6b21\u7ed3\u6784\u4e2d\u7684\u7ea7\u522b\u3002Stratum 1 \u670d\u52a1\u5668\u76f4\u63a5\u4e0e\u539f\u5b50\u949f\u6216 GPS \u65f6\u949f\u7b49\u9ad8\u7cbe\u5ea6\u7684\u65f6\u95f4\u6e90\u540c\u6b65&#xff1b;Stratum 2 \u670d\u52a1\u5668\u4e0e Stratum 1 \u670d\u52a1\u5668\u540c\u6b65&#xff0c;\u4f9d\u6b64\u7c7b\u63a8\u3002\u8fd9\u91cc\u7cfb\u7edf\u65f6\u949f\u7684 Stratum \u4e3a 4 &#xff0c;\u610f\u5473\u7740\u5b83\u662f\u7ecf\u8fc7\u591a\u5c42\u540c\u6b65\u540e\u4e0e\u67d0\u4e2a Stratum \u8f83\u4f4e\u7684\u670d\u52a1\u5668\u5b8c\u6210\u540c\u6b65&#xff0c;\u6570\u5b57\u8d8a\u5c0f\u8bf4\u660e\u8d8a\u63a5\u8fd1 NTP \u670d\u52a1\u5668&#xff0c;\u65f6\u95f4\u540c\u6b65\u7684\u7cbe\u5ea6\u7406\u8bba\u4e0a\u76f8\u5bf9\u8d8a\u9ad8\u3002<\/p>\n<p>Ref time (UTC)&#xff1a;\u503c\u4e3a Sat Apr 19 11:39:03 2025 &#xff0c;\u6307\u7684\u662f\u4e0a\u4e00\u6b21\u4ece\u8fdc\u7a0b NTP \u670d\u52a1\u5668\u63a5\u6536\u5230\u65f6\u95f4\u66f4\u65b0\u7684\u65f6\u95f4&#xff0c;\u91c7\u7528\u4e16\u754c\u534f\u8c03\u65f6&#xff08;UTC&#xff09;\u8868\u793a\u3002\u8fd9\u4e00\u65f6\u95f4\u8bb0\u5f55\u4e86\u6700\u8fd1\u4e00\u6b21\u7cfb\u7edf\u4ece NTP \u670d\u52a1\u5668\u83b7\u53d6\u51c6\u786e\u65f6\u95f4\u7684\u65f6\u523b\u3002<br \/>\nSystem time&#xff1a;\u503c\u4e3a 0.000000116 seconds slow of NTP time &#xff0c;\u8868\u793a\u5f53\u524d\u7cfb\u7edf\u65f6\u95f4\u4e0e NTP \u670d\u52a1\u5668\u65f6\u95f4\u7684\u5dee\u5f02\u3002\u8fd9\u91cc\u8868\u660e\u7cfb\u7edf\u65f6\u95f4\u6bd4 NTP \u65f6\u95f4\u6162\u4e86 0.000000116 \u79d2 \u3002\u5982\u679c\u663e\u793a\u4e3a \u201cfast\u201d &#xff0c;\u5219\u8868\u793a\u7cfb\u7edf\u65f6\u95f4\u6bd4 NTP \u65f6\u949f\u5feb\u3002<\/p>\n<p>Last offset&#xff1a;\u503c\u4e3a -0.001120899 seconds &#xff0c;\u6307\u7684\u662f\u4e0a\u4e00\u6b21\u65f6\u95f4\u540c\u6b65\u65f6&#xff0c;\u7cfb\u7edf\u65f6\u95f4\u4e0e NTP \u670d\u52a1\u5668\u65f6\u95f4\u7684\u504f\u79fb\u91cf\u3002\u8d1f\u6570\u8868\u793a\u4e0a\u4e00\u6b21\u540c\u6b65\u65f6\u7cfb\u7edf\u65f6\u95f4\u6bd4 NTP \u65f6\u95f4\u5feb\u4e86\u76f8\u5e94\u7684\u79d2\u6570&#xff0c;\u6b63\u6570\u5219\u8868\u793a\u7cfb\u7edf\u65f6\u95f4\u6bd4 NTP \u65f6\u95f4\u6162\u4e86\u76f8\u5e94\u7684\u79d2\u6570\u3002<\/p>\n<p>RMS offset&#xff1a;\u503c\u4e3a 0.017774450 seconds &#xff0c;\u5373\u65f6\u95f4\u504f\u79fb\u91cf\u7684\u5747\u65b9\u6839&#xff0c;\u662f\u4e00\u4e2a\u8861\u91cf\u65f6\u95f4\u540c\u6b65\u7cbe\u5ea6\u7684\u6307\u6807\u3002\u5b83\u53cd\u6620\u4e86\u5728\u6700\u8fd1\u4e00\u6bb5\u65f6\u95f4\u5185&#xff0c;\u7cfb\u7edf\u65f6\u95f4\u4e0e NTP \u670d\u52a1\u5668\u65f6\u95f4\u4e4b\u95f4\u504f\u5dee\u7684\u5e73\u5747\u6c34\u5e73&#xff0c;\u6570\u503c\u8d8a\u5c0f\u8bf4\u660e\u65f6\u95f4\u540c\u6b65\u7684\u7cbe\u5ea6\u8d8a\u9ad8\u3002<\/p>\n<p>Frequency&#xff1a;\u503c\u4e3a 38.105 ppm fast &#xff0c;\u8868\u793a\u672c\u5730\u7cfb\u7edf\u65f6\u949f\u7684\u9891\u7387\u8bef\u5dee\u3002\u201cppm\u201d \u662f \u201cparts per million\u201d \u7684\u7f29\u5199&#xff0c;\u610f\u4e3a\u6bcf\u767e\u4e07\u90e8\u5206\u3002\u8fd9\u91cc\u8868\u793a\u7cfb\u7edf\u65f6\u949f\u7684\u901f\u5ea6\u76f8\u5bf9\u4e8e\u5b8c\u7f8e\u7684\u65f6\u95f4\u6e90&#xff0c;\u6bcf\u767e\u4e07\u79d2\u4f1a\u5feb 38.105 \u79d2 &#xff0c;\u5373\u7cfb\u7edf\u65f6\u949f\u8fd0\u884c\u5f97\u6bd4\u7406\u60f3\u4e2d\u7684\u5b8c\u7f8e\u65f6\u949f\u8981\u5feb\u3002\u5982\u679c\u663e\u793a\u4e3a \u201cslow\u201d &#xff0c;\u5219\u8868\u793a\u7cfb\u7edf\u65f6\u949f\u6bd4\u5b8c\u7f8e\u65f6\u949f\u6162\u3002<\/p>\n<p>Residual freq&#xff1a;\u503c\u4e3a -0.045 ppm &#xff0c;\u6307\u7684\u662f\u5728\u6700\u540e\u4e00\u6b21\u540c\u6b65\u4e4b\u540e&#xff0c;\u5df2\u7ecf\u89c2\u5bdf\u5230\u7684\u672c\u5730\u65f6\u949f\u9891\u7387\u7684\u6539\u53d8\u3002\u5b83\u53cd\u6620\u4e86\u65f6\u949f\u9891\u7387\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\u7684\u53d8\u5316\u8d8b\u52bf&#xff0c;\u8fd9\u91cc\u8d1f\u53f7\u8868\u793a\u9891\u7387\u6709\u964d\u4f4e\u7684\u8d8b\u52bf\u3002<\/p>\n<p>Skew&#xff1a;\u503c\u4e3a 45.345 ppm &#xff0c;\u8868\u793a\u672c\u5730\u65f6\u949f\u9891\u7387\u4f30\u8ba1\u7684\u4e0d\u786e\u5b9a\u6027&#xff0c;\u5373\u7cfb\u7edf\u65f6\u949f\u9891\u7387\u7684\u7a33\u5b9a\u6027\u3002\u8be5\u503c\u8d8a\u5927&#xff0c;\u8bf4\u660e\u65f6\u949f\u9891\u7387\u7684\u7a33\u5b9a\u6027\u8d8a\u5dee&#xff0c;\u4e5f\u5c31\u662f\u7cfb\u7edf\u65f6\u949f\u7684\u51c6\u786e\u6027\u53ef\u80fd\u4f1a\u53d7\u5230\u4e00\u5b9a\u5f71\u54cd\u3002<\/p>\n<p>Root delay&#xff1a;\u503c\u4e3a 0.214364186 seconds &#xff0c;\u6307\u7684\u662f\u4ece\u672c\u5730\u7cfb\u7edf\u5230 NTP \u670d\u52a1\u5668\u7684\u5f80\u8fd4\u65f6\u95f4\u5ef6\u8fdf\u3002\u5b83\u53cd\u6620\u4e86\u7f51\u7edc\u4f20\u8f93\u7b49\u56e0\u7d20\u5bf9\u65f6\u95f4\u540c\u6b65\u7684\u5f71\u54cd&#xff0c;\u6570\u503c\u8d8a\u5c0f\u8bf4\u660e\u672c\u5730\u7cfb\u7edf\u4e0e NTP \u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u5ef6\u8fdf\u8d8a\u4f4e\u3002<\/p>\n<p>Root dispersion&#xff1a;\u503c\u4e3a 0.265033543 seconds &#xff0c;\u8868\u793a\u672c\u5730\u65f6\u949f\u548c NTP \u670d\u52a1\u5668\u65f6\u949f\u4e4b\u95f4\u7684\u6700\u5927\u53ef\u80fd\u8bef\u5dee\u3002\u5b83\u7efc\u5408\u8003\u8651\u4e86\u5404\u79cd\u56e0\u7d20\u5bfc\u81f4\u7684\u65f6\u95f4\u504f\u5dee&#xff0c;\u53cd\u6620\u4e86\u65f6\u95f4\u540c\u6b65\u7684\u6700\u5927\u4e0d\u786e\u5b9a\u8303\u56f4\u3002<\/p>\n<p>Update interval&#xff1a;\u503c\u4e3a 65.2 seconds &#xff0c;\u6307\u7684\u662f\u7cfb\u7edf\u65f6\u949f\u4e0e NTP \u670d\u52a1\u5668\u65f6\u949f\u4e4b\u95f4\u8fdb\u884c\u8fde\u7eed\u4e24\u6b21\u540c\u6b65\u66f4\u65b0\u7684\u65f6\u95f4\u95f4\u9694\u3002\u8be5\u65f6\u95f4\u95f4\u9694\u7684\u8bbe\u7f6e\u4f1a\u5f71\u54cd\u7cfb\u7edf\u65f6\u95f4\u4e0e NTP \u65f6\u95f4\u4fdd\u6301\u540c\u6b65\u7684\u53ca\u65f6\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<p>Leap status&#xff1a;\u503c\u4e3a Normal &#xff0c;\u8868\u793a NTP \u670d\u52a1\u5668\u7684\u95f0\u79d2\u72b6\u6001\u3002\u201cNormal\u201d \u8bf4\u660e\u5f53\u524d\u4e0d\u5904\u4e8e\u95f0\u79d2\u8c03\u6574\u671f\u95f4&#xff1b;\u5982\u679c\u51fa\u73b0 \u201cInsert second\u201d &#xff0c;\u5219\u8868\u793a\u9700\u8981\u63d2\u5165\u95f0\u79d2&#xff08;\u5373\u589e\u52a0\u4e00\u79d2&#xff09;\u6765\u4fdd\u6301\u65f6\u95f4\u7684\u51c6\u786e\u6027&#xff1b;\u201cDelete second\u201d \u5219\u8868\u793a\u9700\u8981\u5220\u9664\u95f0\u79d2&#xff08;\u5373\u51cf\u5c11\u4e00\u79d2&#xff09; \u3002\u95f0\u79d2\u8c03\u6574\u662f\u4e3a\u4e86\u534f\u8c03\u539f\u5b50\u65f6\u4e0e\u4e16\u754c\u65f6\u4e4b\u95f4\u7684\u5dee\u5f02\u3002<\/p>\n<p>\u603b\u4f53\u800c\u8a00&#xff0c;\u5982\u679c\u7cfb\u7edf\u65f6\u95f4\u4e0e NTP \u65f6\u95f4\u7684\u5dee\u5f02\u63a5\u8fd1\u4e8e 0 &#xff0c;\u5e76\u4e14 \u201cLeap status\u201d \u663e\u793a\u4e3a \u201cNormal\u201d &#xff0c;\u901a\u5e38\u53ef\u4ee5\u8ba4\u4e3a\u65f6\u95f4\u540c\u6b65\u72b6\u6001\u662f\u6b63\u5e38\u7684\u3002\u4f46\u8fd8\u9700\u8981\u7ed3\u5408\u5176\u4ed6\u6307\u6807&#xff0c;\u5982 RMS offset\u3001Frequency \u7b49\u6765\u7efc\u5408\u5224\u65ad\u65f6\u95f4\u540c\u6b65\u7684\u8d28\u91cf\u548c\u7a33\u5b9a\u6027\u3002 <\/p>\n<h3><span style=\"color:#323232\">\u67e5\u770b\u5f53\u524d\u65f6\u95f4\u7684\u540c\u6b65\u6e90<\/span><\/h3>\n<p> [root&#064;nginx ~]# chronyc sources<br \/>\nMS Name\/IP address         Stratum Poll Reach LastRx Last sample<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n^- ntp.wdc2.us.leaseweb.net      3   8   317    77  -2185us[-2185us] &#043;\/-  164ms<br \/>\n^- time.cloudflare.com           3   8   377    75    &#043;37ms[  &#043;37ms] &#043;\/-  158ms<br \/>\n^* time.neu.edu.cn               2   8   377   146  -6428us[-7654us] &#043;\/-   35ms<br \/>\n^- ntp6.flashdance.cx            2   8   377   205  -1828us[-3013us] &#043;\/-  136ms<\/p>\n<p>\u8be6\u7ec6\u89e3\u91ca&#xff1a;<br \/>\nchronyc sources\u547d\u4ee4\u7528\u4e8e\u663e\u793a\u4e0e\u672c\u5730\u7cfb\u7edf\u8fde\u63a5\u7684 NTP&#xff08;\u7f51\u7edc\u65f6\u95f4\u534f\u8bae&#xff09;\u6e90\u7684\u76f8\u5173\u4fe1\u606f\u3002\u5b83\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u6709\u7528\u7684\u4fe1\u606f&#xff1a;<br \/>\nNTP \u670d\u52a1\u5668\u5217\u8868&#xff1a;\u663e\u793a\u4e86\u5f53\u524d\u7cfb\u7edf\u6b63\u5728\u4f7f\u7528\u7684 NTP \u670d\u52a1\u5668\u7684\u540d\u79f0\u6216 IP \u5730\u5740&#xff0c;\u5982ntp.wdc2.us.leaseweb.net\u3001time.cloudflare.com\u3001time.neu.edu.cn\u548cntp6.flashdance.cx\u3002\u8fd9\u6709\u52a9\u4e8e\u786e\u8ba4\u7cfb\u7edf\u4ece\u54ea\u4e9b\u670d\u52a1\u5668\u83b7\u53d6\u65f6\u95f4\u540c\u6b65\u3002<br \/>\nStratum&#xff08;\u5c42\u7ea7&#xff09;&#xff1a;\u8868\u793a\u6bcf\u4e2a NTP \u670d\u52a1\u5668\u5728 NTP \u5c42\u6b21\u7ed3\u6784\u4e2d\u7684\u7ea7\u522b\u3002\u8f83\u4f4e\u7684 Stratum \u503c\u901a\u5e38\u610f\u5473\u7740\u66f4\u63a5\u8fd1\u6743\u5a01\u65f6\u95f4\u6e90&#xff0c;\u65f6\u95f4\u540c\u6b65\u7684\u7cbe\u5ea6\u53ef\u80fd\u66f4\u9ad8\u3002\u4f8b\u5982&#xff0c;time.neu.edu.cn\u548cntp6.flashdance.cx\u7684 Stratum \u4e3a 2&#xff0c;\u76f8\u5bf9\u66f4\u63a5\u8fd1\u65f6\u95f4\u6e90&#xff0c;\u800cntp.wdc2.us.leaseweb.net\u548ctime.cloudflare.com\u7684 Stratum \u4e3a 3\u3002<br \/>\nPoll&#xff08;\u8f6e\u8be2\u95f4\u9694&#xff09;&#xff1a;\u663e\u793a\u4e86\u7cfb\u7edf\u4e0e NTP \u670d\u52a1\u5668\u4e4b\u95f4\u7684\u8f6e\u8be2\u95f4\u9694\u3002\u8f6e\u8be2\u95f4\u9694\u51b3\u5b9a\u4e86\u7cfb\u7edf\u591a\u4e45\u5411 NTP \u670d\u52a1\u5668\u8bf7\u6c42\u4e00\u6b21\u65f6\u95f4\u66f4\u65b0\u3002\u8fd9\u91cc\u7684\u8f6e\u8be2\u95f4\u9694\u90fd\u662f 8&#xff0c;\u8bf4\u660e\u7cfb\u7edf\u6309\u7167\u4e00\u5b9a\u7684\u65f6\u95f4\u5468\u671f\u4e0e\u8fd9\u4e9b\u670d\u52a1\u5668\u8fdb\u884c\u65f6\u95f4\u540c\u6b65\u8bf7\u6c42\u3002<br \/>\nReach&#xff08;\u53ef\u8fbe\u6027&#xff09;&#xff1a;\u8868\u793a\u7cfb\u7edf\u4e0e NTP \u670d\u52a1\u5668\u4e4b\u95f4\u7684\u8fde\u63a5\u72b6\u6001\u3002\u8fd9\u4e2a\u503c\u53cd\u6620\u4e86\u7cfb\u7edf\u6210\u529f\u8fde\u63a5\u5230 NTP \u670d\u52a1\u5668\u7684\u6b21\u6570\u3002\u6570\u503c\u8d8a\u9ad8&#xff0c;\u8868\u793a\u8fde\u63a5\u8d8a\u7a33\u5b9a\u3002\u4f8b\u5982&#xff0c;time.cloudflare.com\u3001time.neu.edu.cn\u548cntp6.flashdance.cx\u7684 Reach \u503c\u90fd\u4e3a 377&#xff0c;\u8bf4\u660e\u4e0e\u8fd9\u4e9b\u670d\u52a1\u5668\u7684\u8fde\u63a5\u8f83\u4e3a\u7a33\u5b9a&#xff0c;\u800cntp.wdc2.us.leaseweb.net\u7684 Reach \u503c\u4e3a 317&#xff0c;\u76f8\u5bf9\u6765\u8bf4\u8fde\u63a5\u7a33\u5b9a\u6027\u7a0d\u5dee\u4e00\u4e9b\u3002<br \/>\nLastRx&#xff08;\u4e0a\u6b21\u63a5\u6536\u65f6\u95f4&#xff09;&#xff1a;\u663e\u793a\u4e86\u4ece NTP \u670d\u52a1\u5668\u63a5\u6536\u5230\u6700\u540e\u4e00\u6b21\u65f6\u95f4\u66f4\u65b0\u7684\u65f6\u95f4\u95f4\u9694&#xff08;\u4ee5\u79d2\u4e3a\u5355\u4f4d&#xff09;\u3002\u8fd9\u4e2a\u4fe1\u606f\u53ef\u4ee5\u5e2e\u52a9\u5224\u65ad\u670d\u52a1\u5668\u7684\u54cd\u5e94\u53ca\u65f6\u6027\u3002\u4f8b\u5982&#xff0c;ntp.wdc2.us.leaseweb.net\u7684 LastRx \u4e3a 77 \u79d2&#xff0c;time.cloudflare.com\u7684 LastRx \u4e3a 75 \u79d2&#xff0c;\u8bf4\u660e\u7cfb\u7edf\u5728\u4e0d\u4e45\u524d\u4ece\u8fd9\u4e9b\u670d\u52a1\u5668\u63a5\u6536\u5230\u4e86\u65f6\u95f4\u66f4\u65b0\u3002<br \/>\nLast sample&#xff08;\u4e0a\u6b21\u6837\u672c&#xff09;&#xff1a;\u63d0\u4f9b\u4e86\u4e0a\u6b21\u4ece NTP \u670d\u52a1\u5668\u83b7\u53d6\u7684\u65f6\u95f4\u6837\u672c\u4e0e\u672c\u5730\u7cfb\u7edf\u65f6\u95f4\u7684\u5dee\u5f02\u3002\u65b9\u62ec\u53f7\u5185\u7684\u503c\u662f\u5b9e\u9645\u7684\u65f6\u95f4\u504f\u79fb\u91cf&#xff0c;\u800c\u540e\u9762\u7684&#043;\/-\u503c\u8868\u793a\u4f30\u8ba1\u7684\u8bef\u5dee\u8303\u56f4\u3002\u4f8b\u5982&#xff0c;time.neu.edu.cn\u7684\u65f6\u95f4\u504f\u79fb\u91cf\u4e3a-7654us&#xff08;\u5fae\u79d2&#xff09;&#xff0c;\u8bef\u5dee\u8303\u56f4\u4e3a&#043;\/- 35ms&#xff08;\u6beb\u79d2&#xff09;&#xff0c;\u8bf4\u660e\u672c\u5730\u7cfb\u7edf\u65f6\u95f4\u6bd4time.neu.edu.cn\u670d\u52a1\u5668\u7684\u65f6\u95f4\u5feb\u4e86\u7ea6 7654 \u5fae\u79d2&#xff0c;\u4e14\u8bef\u5dee\u5728 35 \u6beb\u79d2\u5de6\u53f3\u3002<br \/>\n\u901a\u8fc7\u67e5\u770bchronyc sources\u7684\u8f93\u51fa&#xff0c;\u7cfb\u7edf\u7ba1\u7406\u5458\u53ef\u4ee5\u4e86\u89e3\u5f53\u524d\u7cfb\u7edf\u7684\u65f6\u95f4\u540c\u6b65\u6765\u6e90\u3001\u670d\u52a1\u5668\u7684\u72b6\u6001\u4ee5\u53ca\u65f6\u95f4\u540c\u6b65\u7684\u51c6\u786e\u6027\u548c\u7a33\u5b9a\u6027&#xff0c;\u4ee5\u4fbf\u53ca\u65f6\u53d1\u73b0\u548c\u89e3\u51b3\u65f6\u95f4\u540c\u6b65\u65b9\u9762\u7684\u95ee\u9898\u3002 <\/p>\n<p>  <span style=\"color:#323232\">\u4e5f\u53ef\u4ee5\u4f7f\u7528 -v \u9009\u9879\u6765\u67e5\u770b\u66f4\u8be6\u7ec6\u7684\u4fe1\u606f<\/span> <\/p>\n<p>  [root&#064;nfs share]# chronyc sources -v<br \/>\n.&#8211; Source mode &#039;^&#039; &#061; server, &#039;&#061;&#039; &#061; peer, &#039;#&#039; &#061; local clock.<br \/>\n\/ .- Source state &#039;*&#039; &#061; current best, &#039;&#043;&#039; &#061; combined, &#039;-&#039; &#061; not<br \/>\ncombined,<br \/>\n| \/ &#039;x&#039; &#061; may be in error, &#039;~&#039; &#061; too variable, &#039;?&#039; &#061;<br \/>\nunusable.<br \/>\n|| .- xxxx [ yyyy ]<br \/>\n&#043;\/- zzzz<br \/>\n|| Reachability register (octal) -. | xxxx &#061; adjusted<br \/>\noffset,<br \/>\n|| Log2(Polling interval) &#8211;. | | yyyy &#061; measured<br \/>\noffset,<br \/>\n|| \\\\ | | zzzz &#061; estimated<br \/>\nerror.<br \/>\n|| | | \\\\<br \/>\nMS Name\/IP address Stratum Poll Reach LastRx Last sample<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n^? 193.182.111.143 2 6 0 96m -22ms[ -22ms]<br \/>\n&#043;\/- 150ms<br \/>\n^? 162.159.200.1 3 6 0 96m -10ms[ -11ms]<br \/>\n&#043;\/- 108ms<br \/>\n^? 193.182.111.142 2 6 0 96m &#043;8917us[&#043;8917us]<br \/>\n&#043;\/- 113ms<br \/>\n^? 193.182.111.12 2 6 0 96m -10ms[ -10ms]<br \/>\n&#043;\/- 132ms<br \/>\n[root&#064;nfs share]# <\/p>\n<p>sourcestats \u547d\u4ee4\u663e\u793a\u76ee\u524d\u88ab chronyd \u68c0\u67e5\u7684\u6bcf\u4e2a\u6e90\u7684\u504f\u79fb\u7387\u548c\u8bef\u5dee\u4f30\u7b97\u8fc7\u7a0b\u7684\u4fe1\u606f\u3002<\/p>\n<p>  [root&#064;nginx ~]# chronyc sourcestats<br \/>\nName\/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\nntp.wdc2.us.leaseweb.net   24  15   40m     -1.812      7.011  &#043;1676us  6100us<br \/>\ntime.cloudflare.com        27  14   40m     -2.573     14.953  -1417us    14ms<br \/>\ntime.neu.edu.cn            25  18   36m     &#043;0.114      5.950    &#043;28us  5104us<br \/>\nntp6.flashdance.cx         27  14   42m     -3.281     14.473  &#043;5709us    13ms<\/p>\n<p>[root&#064;nginx ~]# chronyc sourcestats -v<br \/>\n                             .- Number of sample points in measurement set.<br \/>\n                            \/    .- Number of residual runs with same sign.<br \/>\n                           |    \/    .- Length of measurement set (time).<br \/>\n                           |   |    \/      .- Est. clock freq error (ppm).<br \/>\n                           |   |   |      \/           .- Est. error in freq.<br \/>\n                           |   |   |     |           \/         .- Est. offset.<br \/>\n                           |   |   |     |          |          |   On the -.<br \/>\n                           |   |   |     |          |          |   samples. \\\\<br \/>\n                           |   |   |     |          |          |             |<br \/>\nName\/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\nntp.wdc2.us.leaseweb.net   24  15   40m     -2.014      7.011  &#043;1309us  6100us<br \/>\ntime.cloudflare.com        27  14   40m     -2.775     14.953  -1827us    14ms<br \/>\ntime.neu.edu.cn            26  18   41m     &#043;0.046      5.404  &#043;1906ns  5029us<br \/>\nntp6.flashdance.cx         27  14   42m     -3.483     14.473  &#043;5261us    13ms<\/p>\n<h3><span style=\"color:#323232\">\u914d\u7f6e\u65f6\u95f4\u540c\u6b65\u670d\u52a1*<\/span><\/h3>\n<h4><span style=\"color:#323232\">1\u3001\u7f16\u5199\/etc\/chrony.conf\u6587\u4ef6<\/span><\/h4>\n<p>  [root&#064;nfs share]# vim \/etc\/chrony.conf<br \/>\n2 # Please consider joining the pool<br \/>\n(https:\/\/www.pool.ntp.org\/join.ht ml).<br \/>\n3 server ntp.aliyun.com iburst<br \/>\n25 # Allow NTP client access from local network.<br \/>\n26 allow 192.168.0.0\/16<br \/>\n28 # Serve time even if not synchronized to a time source.<br \/>\n29 local stratum 10<\/p>\n<p>\u7b2c 2 \u884c&#xff1a;\u662f\u4e00\u6761\u6ce8\u91ca&#xff0c;\u63d0\u793a\u7528\u6237\u8003\u8651\u52a0\u5165 NTP \u6c60&#xff08;https:\/\/www.pool.ntp.org\/join.html&#xff09;&#xff0c;\u8fd9\u91cc\u63d0\u4f9b\u4e86\u52a0\u5165 NTP \u6c60\u7684\u76f8\u5173\u94fe\u63a5\u4fe1\u606f&#xff0c;NTP \u6c60\u662f\u7531\u8bb8\u591a\u5fd7\u613f\u8005\u7ef4\u62a4\u7684 NTP \u670d\u52a1\u5668\u96c6\u5408&#xff0c;\u53ef\u7528\u4e8e\u83b7\u53d6\u51c6\u786e\u7684\u65f6\u95f4\u540c\u6b65\u3002<\/p>\n<p>\u7b2c 3 \u884c&#xff1a;\u6307\u5b9a\u4e86\u4e00\u4e2a NTP \u670d\u52a1\u5668\u4e3antp.aliyun.com&#xff0c;\u5e76\u4f7f\u7528\u4e86iburst\u9009\u9879\u3002iburst\u7684\u4f5c\u7528\u662f\u5728\u521d\u59cb\u540c\u6b65\u65f6&#xff0c;\u4ee5\u8f83\u5feb\u7684\u901f\u7387\u53d1\u9001 NTP \u8bf7\u6c42&#xff0c;\u4ee5\u4fbf\u66f4\u5feb\u5730\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u65f6\u95f4\u540c\u6b65\u3002\u8fd9\u884c\u914d\u7f6e\u8868\u793a\u5c06\u963f\u91cc\u4e91\u7684 NTP \u670d\u52a1\u5668ntp.aliyun.com\u4f5c\u4e3a\u65f6\u95f4\u6e90&#xff0c;\u5e76\u4e14\u91c7\u7528iburst\u65b9\u5f0f\u8fdb\u884c\u540c\u6b65\u3002<\/p>\n<p>\u7b2c 25 &#8211; 26 \u884c&#xff1a;\u914d\u7f6e\u4e86\u5141\u8bb8\u4ece\u672c\u5730\u7f51\u7edc192.168.0.0\/16\u4e2d\u7684 NTP \u5ba2\u6237\u7aef\u8bbf\u95ee\u8be5\u670d\u52a1\u5668\u3002192.168.0.0\/16\u662f\u4e00\u4e2a CIDR \u8868\u793a\u6cd5\u7684\u7f51\u7edc\u5730\u5740&#xff0c;\u5b83\u8868\u793a\u4e00\u4e2a\u5305\u542b192.168.0.0\u5230192.168.255.255\u8303\u56f4\u5185\u6240\u6709 IP \u5730\u5740\u7684\u7f51\u7edc\u3002\u8fd9\u610f\u5473\u7740\u5728\u8fd9\u4e2a\u7f51\u7edc\u4e2d\u7684\u8bbe\u5907\u53ef\u4ee5\u5411\u8be5chrony\u670d\u52a1\u5668\u53d1\u8d77 NTP \u8bf7\u6c42\u4ee5\u83b7\u53d6\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u3002<\/p>\n<p>\u7b2c 28 &#8211; 29 \u884c&#xff1a;\u914d\u7f6e\u4e86\u5373\u4f7f\u6ca1\u6709\u4e0e\u65f6\u95f4\u6e90\u540c\u6b65&#xff0c;\u4e5f\u63d0\u4f9b\u65f6\u95f4\u670d\u52a1&#xff0c;\u5e76\u4e14\u5c06\u672c\u5730\u5c42&#xff08;stratum&#xff09;\u8bbe\u7f6e\u4e3a 10\u3002\u901a\u5e38&#xff0c;stratum\u7528\u4e8e\u8868\u793a\u8bbe\u5907\u5728 NTP \u5c42\u6b21\u7ed3\u6784\u4e2d\u7684\u4f4d\u7f6e&#xff0c;\u6570\u503c\u8d8a\u5927\u8868\u793a\u79bb\u6743\u5a01\u65f6\u95f4\u6e90\u8d8a\u8fdc\u3002\u8fd9\u91cc\u5c06\u672c\u5730stratum\u8bbe\u7f6e\u4e3a 10&#xff0c;\u8868\u660e\u5373\u4f7f\u5728\u672a\u4e0e\u5916\u90e8\u7cbe\u786e\u65f6\u95f4\u6e90\u540c\u6b65\u7684\u60c5\u51b5\u4e0b&#xff0c;\u8be5\u670d\u52a1\u5668\u4e5f\u53ef\u4ee5\u4e3a\u5176\u4ed6\u8bbe\u5907\u63d0\u4f9b\u76f8\u5bf9\u4e0d\u592a\u7cbe\u786e\u7684\u65f6\u95f4\u670d\u52a1\u3002 <\/p>\n<h4><span style=\"color:#323232\">2\u3001\u91cd\u542fchronyd\u670d\u52a1<\/span><\/h4>\n<p>   [root&#064;nfs share]# systemctl restart chronyd <\/p>\n<h4><span style=\"color:#323232\">3\u3001\u9a8c\u8bc1\u662f\u5426\u540c\u6b65<\/span><\/h4>\n<p>   [root&#064;nginx ~]# chronyc sources -v<\/p>\n<p>  .&#8211; Source mode  &#039;^&#039; &#061; server, &#039;&#061;&#039; &#061; peer, &#039;#&#039; &#061; local clock.<br \/>\n \/ .- Source state &#039;*&#039; &#061; current best, &#039;&#043;&#039; &#061; combined, &#039;-&#039; &#061; not combined,<br \/>\n| \/             &#039;x&#039; &#061; may be in error, &#039;~&#039; &#061; too variable, &#039;?&#039; &#061; unusable.<br \/>\n||                                                 .- xxxx [ yyyy ] &#043;\/- zzzz<br \/>\n||      Reachability register (octal) -.           |  xxxx &#061; adjusted offset,<br \/>\n||      Log2(Polling interval) &#8211;.      |          |  yyyy &#061; measured offset,<br \/>\n||                                \\\\     |          |  zzzz &#061; estimated error.<br \/>\n||                                 |    |           \\\\<br \/>\nMS Name\/IP address         Stratum Poll Reach LastRx Last sample<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n^* 203.107.6.88                  2   6    37     8   -301us[-4829us] &#043;\/-   46ms <\/p>\n<h4>4\u3001\u5176\u4ed6\u670d\u52a1\u540c\u6b65<\/h4>\n<p>   [root&#064;nginx www]# vim \/etc\/chrony.conf<br \/>\n# Please consider joining the pool<br \/>\n(https:\/\/www.pool.ntp.org\/join.html).<br \/>\nserver 192.168.72.133 iburs <\/p>\n<h4>5\u3001\u4f60\u9009\u62e9\u7684\u8fd9\u4e2a\u865a\u62df\u673aip\u9700\u8981\u8fdb\u884c\u4e00\u5b9a\u7684\u914d\u7f6e&#xff0c;\u914d\u7f6e\u4e3antp\u670d\u52a1\u5668<\/h4>\n<p>   vim \/etc\/chrony.conf<\/p>\n<p># \u6ce8\u91ca\u6389\u9ed8\u8ba4\u7684\u670d\u52a1\u5668\u914d\u7f6e&#xff0c;\u6dfb\u52a0\u53ef\u9760\u7684\u5916\u90e8\u65f6\u95f4\u6e90<br \/>\n# pool 2.debian.pool.ntp.org offline iburst<br \/>\nserver ntp.aliyun.com iburst<br \/>\nserver time.google.com iburst<\/p>\n<p># \u5141\u8bb8\u54ea\u4e9b\u5ba2\u6237\u7aef\u53ef\u4ee5\u8bbf\u95ee\u8be5 NTP \u670d\u52a1\u5668<br \/>\n# \u5141\u8bb8 192.168.0.0\/16 \u7f51\u6bb5\u7684\u5ba2\u6237\u7aef\u8bbf\u95ee   \u770b\u4f60\u81ea\u5df1\u7684\u7f51\u6bb5<br \/>\nallow 192.168.0.0\/16<\/p>\n<p># \u5373\u4f7f\u6ca1\u6709\u4e0e\u5916\u90e8\u65f6\u95f4\u6e90\u540c\u6b65&#xff0c;\u4e5f\u53ef\u4ee5\u63d0\u4f9b\u65f6\u95f4\u670d\u52a1<br \/>\nlocal stratum 10<\/p>\n<p>\u4fee\u6539\u5b8c\u914d\u7f6e\u6587\u4ef6\u8981\u91cd\u542f\u670d\u52a1 <\/p>\n<h4>6\u3001\u539f\u672c\u865a\u62df\u673a\u91cd\u542f\u670d\u52a1\u7136\u540e\u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u540c\u6b65<\/h4>\n<p>   [root&#064;nginx www]# chronyc sources -v<br \/>\n.&#8211; Source mode &#039;^&#039; &#061; server, &#039;&#061;&#039; &#061; peer, &#039;#&#039; &#061; local clock.<br \/>\n\/ .- Source state &#039;*&#039; &#061; current best, &#039;&#043;&#039; &#061; combined, &#039;-&#039; &#061; not<br \/>\ncombined,<br \/>\n| \/ &#039;x&#039; &#061; may be in error, &#039;~&#039; &#061; too variable, &#039;?&#039; &#061;<br \/>\nunusable.<br \/>\n|| .- xxxx [ yyyy ]<br \/>\n&#043;\/- zzzz<br \/>\n|| Reachability register (octal) -. | xxxx &#061; adjusted<br \/>\noffset,<br \/>\n|| Log2(Polling interval) &#8211;. | | yyyy &#061; measured<br \/>\noffset,<br \/>\n|| \\\\ | | zzzz &#061; estimated<br \/>\nerror.<br \/>\n|| | | \\\\<br \/>\nMS Name\/IP address Stratum Poll Reach LastRx Last sample<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n^* 192.168.72.133 10 6 17 7 -7921ns[ -14us]<br \/>\n&#043;\/- 467us <\/p>\n<h4>7\u3001\u7ed3\u679c\u5206\u6790<\/h4>\n<p>   ^* 192.168.72.133 10 6 17 7 -7921ns[ -14us]<br \/>\nMS \u5217\u7b26\u53f7<br \/>\nSource mode \u7b26\u53f7<br \/>\n^&#xff1a;\u8868\u793a\u8be5\u65f6\u95f4\u6e90\u662f\u4e00\u4e2a NTP \u670d\u52a1\u5668\u3002<br \/>\n&#061;&#xff1a;\u8868\u793a\u8be5\u65f6\u95f4\u6e90\u662f\u4e00\u4e2a\u5bf9\u7b49\u4f53&#xff08;peer&#xff09;&#xff0c;\u5bf9\u7b49\u4f53\u4e4b\u95f4\u53ef\u4ee5\u76f8\u4e92\u540c\u6b65\u65f6\u95f4\u3002<br \/>\n#&#xff1a;\u8868\u793a\u8be5\u65f6\u95f4\u6e90\u662f\u672c\u5730\u65f6\u949f&#xff0c;\u5373\u4f7f\u7528\u672c\u5730\u7cfb\u7edf\u7684\u65f6\u949f\u4f5c\u4e3a\u65f6\u95f4\u53c2\u8003\u3002<br \/>\nSource state \u7b26\u53f7<br \/>\n*&#xff1a;\u8868\u793a\u8be5\u65f6\u95f4\u6e90\u662f\u5f53\u524d\u6700\u4f73\u7684\u65f6\u95f4\u6e90&#xff0c;chrony \u4f1a\u4f18\u5148\u4f7f\u7528\u5b83\u8fdb\u884c\u65f6\u95f4\u540c\u6b65\u3002<br \/>\n&#043;&#xff1a;\u8868\u793a\u8be5\u65f6\u95f4\u6e90\u4e0e\u5176\u4ed6\u65f6\u95f4\u6e90\u7ec4\u5408\u4f7f\u7528&#xff0c;\u7528\u4e8e\u63d0\u9ad8\u65f6\u95f4\u540c\u6b65\u7684\u51c6\u786e\u6027\u3002<br \/>\n-&#xff1a;\u8868\u793a\u8be5\u65f6\u95f4\u6e90\u672a\u88ab\u7528\u4e8e\u7ec4\u5408&#xff0c;\u53ef\u80fd\u662f\u56e0\u4e3a\u5176\u8d28\u91cf\u4e0d\u591f\u597d\u6216\u8005\u5176\u4ed6\u539f\u56e0\u3002<br \/>\nx&#xff1a;\u8868\u793a\u8be5\u65f6\u95f4\u6e90\u53ef\u80fd\u5b58\u5728\u9519\u8bef&#xff0c;\u53ef\u80fd\u662f\u670d\u52a1\u5668\u6545\u969c\u3001\u7f51\u7edc\u95ee\u9898\u6216\u65f6\u95f4\u6570\u636e\u4e0d\u5408\u7406\u7b49\u3002<br \/>\n~&#xff1a;\u8868\u793a\u8be5\u65f6\u95f4\u6e90\u7684\u65f6\u95f4\u6570\u636e\u53d8\u5316\u8fc7\u5927&#xff0c;\u4e0d\u7a33\u5b9a&#xff0c;\u4e0d\u9002\u5408\u7528\u4e8e\u7cbe\u786e\u7684\u65f6\u95f4\u540c\u6b65\u3002<br \/>\n?&#xff1a;\u8868\u793a\u8be5\u65f6\u95f4\u6e90\u4e0d\u53ef\u7528&#xff0c;\u5982\u524d\u9762\u5206\u6790\u7684\u90a3\u6837&#xff0c;\u53ef\u80fd\u662f\u7f51\u7edc\u8fde\u63a5\u3001\u670d\u52a1\u5668\u914d\u7f6e\u7b49\u95ee\u9898\u5bfc\u81f4\u3002<\/p>\n<p>\u7ed3\u679c\u540e\u9762\u5168\u90e8\u4e3a0\u8bf4\u660e\u6839\u672c\u6ca1\u6709\u540c\u6b65\u4e0a&#xff0c;\u4e00\u822c\u524d\u9762\u7684\u7b26\u53f7\u4e3a&#xff1f;&#xff0c;\u8fd9\u91cc\u8bbe\u7f6e\u591a\u4e2antp\u53ef\u80fd\u4f1a\u51fa\u4e00\u4e9b\u95ee\u9898&#xff0c;\u5efa\u8bae\u7528\u4e00\u4e2a\u68c0\u6d4b\u5c31\u884c&#xff0c;\u53ef\u80fd\u4f60\u521a\u5f00\u59cb\u662f&#xff1f;&#xff0c;\u53ef\u4ee5\u591a\u5237\u65b0\u51e0\u6b21&#xff0c;\u770b\u7ed3\u679c\u662f\u5426\u53d8\u5316\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb633\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u5728 redhat 8 \u4e4b\u524d\uff0c\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u662f\u4f7f\u7528 NTP\uff08\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff09\u6765\u5b9e\u73b0\u7684\uff0c\u5728 redhat 8 \u53ca\u4e4b\u540e\u4f7f\u7528\u662f NTP \u7684\u5b9e\u73b0\u5de5\u5177 chrony \u6765\u5b9e\u73b0\u65f6\u95f4\u540c\u6b65\u3002\u5728 redhat 8 \u53ca\u4e4b\u540e\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5df2\u7ecf\u5b89\u88c5\u597d chrony \u8f6f\u4ef6\u5e76\u5df2\u7ecf\u5f00\u673a\u542f\u52a8 chronyd \u670d\u52a1\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 chronyc \u547d\u4ee4\u6765\u4e34\u65f6\u4fee\u6539\u65f6\u95f4\u540c\u6b65\uff0c\u4f46\u66f4\u5efa\u8bae\u53bb\u4fee\u6539 \/etc\/chony.conf \u914d\u7f6e\u6587\u4ef6\u6765\u5b9e\u73b0\u6301\u4e45\u5316\u7684\u4fee\u6539\u3002\/etc\/chrony.conf # \u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\u3002_linux\u540c\u6b65\u670d\u52a1\u5668\u65f6\u95f4<\/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":[58,43,44],"topic":[],"class_list":["post-36217","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","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>Linux\u4e2d\u670d\u52a1\u5668\u65f6\u95f4\u540c\u6b65 - \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\/36217.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u4e2d\u670d\u52a1\u5668\u65f6\u95f4\u540c\u6b65 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb633\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u5728 redhat 8 \u4e4b\u524d\uff0c\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u662f\u4f7f\u7528 NTP\uff08\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff09\u6765\u5b9e\u73b0\u7684\uff0c\u5728 redhat 8 \u53ca\u4e4b\u540e\u4f7f\u7528\u662f NTP \u7684\u5b9e\u73b0\u5de5\u5177 chrony \u6765\u5b9e\u73b0\u65f6\u95f4\u540c\u6b65\u3002\u5728 redhat 8 \u53ca\u4e4b\u540e\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5df2\u7ecf\u5b89\u88c5\u597d chrony \u8f6f\u4ef6\u5e76\u5df2\u7ecf\u5f00\u673a\u542f\u52a8 chronyd \u670d\u52a1\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 chronyc \u547d\u4ee4\u6765\u4e34\u65f6\u4fee\u6539\u65f6\u95f4\u540c\u6b65\uff0c\u4f46\u66f4\u5efa\u8bae\u53bb\u4fee\u6539 \/etc\/chony.conf \u914d\u7f6e\u6587\u4ef6\u6765\u5b9e\u73b0\u6301\u4e45\u5316\u7684\u4fee\u6539\u3002\/etc\/chrony.conf # \u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\u3002_linux\u540c\u6b65\u670d\u52a1\u5668\u65f6\u95f4\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/36217.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-08T01:10:44+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=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36217.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/36217.html\",\"name\":\"Linux\u4e2d\u670d\u52a1\u5668\u65f6\u95f4\u540c\u6b65 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-08T01:10:44+00:00\",\"dateModified\":\"2025-05-08T01:10:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/36217.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/36217.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36217.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\u4e2d\u670d\u52a1\u5668\u65f6\u95f4\u540c\u6b65\"}]},{\"@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\u4e2d\u670d\u52a1\u5668\u65f6\u95f4\u540c\u6b65 - \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\/36217.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u4e2d\u670d\u52a1\u5668\u65f6\u95f4\u540c\u6b65 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb633\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u5728 redhat 8 \u4e4b\u524d\uff0c\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u662f\u4f7f\u7528 NTP\uff08\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff09\u6765\u5b9e\u73b0\u7684\uff0c\u5728 redhat 8 \u53ca\u4e4b\u540e\u4f7f\u7528\u662f NTP \u7684\u5b9e\u73b0\u5de5\u5177 chrony \u6765\u5b9e\u73b0\u65f6\u95f4\u540c\u6b65\u3002\u5728 redhat 8 \u53ca\u4e4b\u540e\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5df2\u7ecf\u5b89\u88c5\u597d chrony \u8f6f\u4ef6\u5e76\u5df2\u7ecf\u5f00\u673a\u542f\u52a8 chronyd \u670d\u52a1\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 chronyc \u547d\u4ee4\u6765\u4e34\u65f6\u4fee\u6539\u65f6\u95f4\u540c\u6b65\uff0c\u4f46\u66f4\u5efa\u8bae\u53bb\u4fee\u6539 \/etc\/chony.conf \u914d\u7f6e\u6587\u4ef6\u6765\u5b9e\u73b0\u6301\u4e45\u5316\u7684\u4fee\u6539\u3002\/etc\/chrony.conf # \u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\u3002_linux\u540c\u6b65\u670d\u52a1\u5668\u65f6\u95f4","og_url":"https:\/\/www.wsisp.com\/helps\/36217.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-08T01:10:44+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/36217.html","url":"https:\/\/www.wsisp.com\/helps\/36217.html","name":"Linux\u4e2d\u670d\u52a1\u5668\u65f6\u95f4\u540c\u6b65 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-08T01:10:44+00:00","dateModified":"2025-05-08T01:10:44+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/36217.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/36217.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/36217.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux\u4e2d\u670d\u52a1\u5668\u65f6\u95f4\u540c\u6b65"}]},{"@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\/36217","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=36217"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36217\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=36217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=36217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=36217"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=36217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}