{"id":276873,"date":"2023-07-07T20:03:45","date_gmt":"2023-07-07T12:03:45","guid":{"rendered":"https:\/\/lrxjmw.cn\/jltsyxyldbtq.html"},"modified":"2023-07-07T20:03:45","modified_gmt":"2023-07-07T12:03:45","slug":"jltsyxyldbtq","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/jltsyxyldbtq.html","title":{"rendered":"\u3010\u7b80\u7565\u901a\u987a\u6709\u5438\u5f15\u529b\u7684\u6807\u9898\u3011\n\u8f7b\u677e\u638c\u63e1arm2440\u5e73\u53f0Linux\u7cfb\u7edf\u65f6\u95f4\u4fee\u6539\u6280\u5de7"},"content":{"rendered":"

\u5728arm2440\u5e73\u53f0\u4e0a\uff0cLinux<\/a>\u7cfb\u7edf<\/a>\u7684\u65f6\u95f4\u8bbe\u7f6e\u548c\u4fee\u6539\u4e00\u76f4\u662f\u7528\u6237\u5173\u6ce8\u7684\u91cd\u70b9\u3002\u672c\u6587\u5c06\u5bf9arm2440\u5e73\u53f0\u4e0aLinux\u7cfb\u7edf\u65f6\u95f4\u7684\u8bbe\u7f6e\u548c\u4fee\u6539\u65b9\u6cd5\u8fdb\u884c\u8bc4\u6d4b\u5bf9\u6bd4\uff0c\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u638c\u63e1\u8fd9\u4e00\u6280\u5de7\u3002<\/p>\n

\u4e00\u3001NTP\u534f\u8bae\u4e0e\u624b\u52a8\u8bbe\u7f6e\u5bf9\u6bd4<\/p>\n

NTP\uff08Network Time Protocol\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u540c\u6b65\u7f51\u7edc\u4e2d\u5404\u4e2a\u8ba1\u7b97\u673a\u65f6\u949f\u7684\u534f\u8bae\u3002\u5728arm2440\u5e73\u53f0\u4e0a\uff0c\u4f7f\u7528NTP\u534f\u8bae\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u540c\u6b65\u7cfb\u7edf\u65f6\u95f4\uff0c\u786e\u4fdd\u51c6\u786e\u6027\u548c\u4e00\u81f4\u6027\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c\u624b\u52a8\u8bbe\u7f6e\u65f6\u95f4\u9700\u8981\u7528\u6237\u81ea\u884c\u8f93\u5165\u5177\u4f53\u7684\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u5bb9\u6613\u51fa\u73b0\u8bef\u5dee\u3002<\/p>\n

\u4e8c\u3001\u786c\u4ef6\u65f6\u949f\u4e0e\u7cfb\u7edf\u65f6\u949f\u5bf9\u6bd4<\/p>\n

arm2440\u5e73\u53f0\u4e0a\u6709\u4e24\u79cd\u7c7b\u578b\u7684\u65f6\u949f\uff1a\u786c\u4ef6\u65f6\u949f\u548c\u7cfb\u7edf\u65f6\u949f\u3002\u786c\u4ef6\u65f6\u949f\u901a\u5e38\u7531\u5b9e\u65f6\u65f6\u949f\uff08RTC\uff09\u82af\u7247\u63d0\u4f9b\u652f\u6301\uff0c\u53ef\u4ee5\u5728\u65ad\u7535\u540e\u7ee7\u7eed\u8fd0\u884c\uff0c\u5e76\u4e14\u5177\u6709\u8f83\u9ad8\u7684\u7cbe\u5ea6\u3002\u800c\u7cfb\u7edf\u65f6\u949f\u5219\u7531\u64cd\u4f5c\u7cfb\u7edf\u7ba1\u7406\uff0c\u53d7\u5230\u8f6f\u4ef6\u63a7\u5236\uff0c\u5e76\u4e14\u5728\u65ad\u7535\u540e\u4f1a\u88ab\u91cd\u7f6e\u4e3a\u9ed8\u8ba4\u503c\u3002\u56e0\u6b64\uff0c\u5728\u8bbe\u7f6e\u548c\u4fee\u6539\u65f6\u95f4\u65f6arm2440\u5e73\u53f0linux\u7cfb\u7edf\u65f6\u95f4\u7684\u8bbe\u7f6e\u4fee\u6539\u65b9\u6cd5<\/strong>\uff0c\u7528\u6237\u9700\u8981\u6839\u636e\u5b9e\u9645\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65f6\u949f\u7c7b\u578b\u3002<\/p>\n

\u4e09\u3001\u547d\u4ee4<\/a>\u884c\u4e0e\u56fe\u5f62\u754c\u9762\u5bf9\u6bd4<\/p>\n

\u5728arm2440\u5e73\u53f0\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u548c\u56fe\u5f62\u754c\u9762\u4e24\u79cd\u65b9\u5f0f\u8fdb\u884c\u65f6\u95f4\u8bbe\u7f6e\u548c\u4fee\u6539\u3002\u901a\u8fc7\u547d\u4ee4\u884c\u64cd\u4f5c\uff0c\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u76f8\u5e94\u7684\u547d\u4ee4\uff0c\u5feb\u901f\u5b8c\u6210\u4efb\u52a1\u3002\u800c\u56fe\u5f62\u754c\u9762\u5219\u63d0\u4f9b\u4e86\u66f4\u76f4\u89c2\u3001\u53ef\u89c6\u5316\u7684\u64cd\u4f5c\u65b9\u5f0f\uff0c\u9002\u5408\u5bf9\u65f6\u95f4\u8bbe\u7f6e\u4e0d\u719f\u6089\u7684\u7528\u6237\u3002<\/p>\n

\u56db\u3001\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u5668\u5bf9\u6bd4<\/p>\n

\u5728\u4f7f\u7528NTP\u534f\u8bae\u8fdb\u884c\u65f6\u95f4\u540c\u6b65\u65f6\uff0c\u7528\u6237\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u5668\u3002\u4e0d\u540c\u7684\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u5668\u53ef\u80fd\u5177\u6709\u4e0d\u540c\u7684\u7cbe\u5ea6\u548c\u7a33\u5b9a\u6027\uff0c\u56e0\u6b64\u9009\u62e9\u5408\u9002\u7684\u670d\u52a1\u5668\u5bf9\u4e8e\u4fdd\u8bc1\u7cfb\u7edf\u65f6\u95f4\u7684\u51c6\u786e\u6027\u975e\u5e38\u91cd\u8981\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u548c\u5b9e\u9645\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u5668\u3002<\/p>\n

\u4e94\u3001\u65f6\u533a\u8bbe\u7f6e\u4e0e\u590f\u4ee4\u65f6\u8c03\u6574\u5bf9\u6bd4<\/p>\n

arm2440\u5e73\u53f0\u4e0a\u7684Linux\u7cfb\u7edf\u652f\u6301\u65f6\u533a\u8bbe\u7f6e\u548c\u590f\u4ee4\u65f6\u8c03\u6574\u3002\u65f6\u533a\u8bbe\u7f6e\u53ef\u4ee5\u6839\u636e\u7528\u6237\u6240\u5728\u5730\u7406\u4f4d\u7f6e\u81ea\u52a8\u8c03\u6574\u7cfb\u7edf\u65f6\u95f4\uff0c\u4fdd\u8bc1\u663e\u793a\u6b63\u786e\u7684\u672c\u5730\u65f6\u95f4\u3002\u800c\u590f\u4ee4\u65f6\u8c03\u6574\u5219\u662f\u9488\u5bf9\u590f\u5b63\u65f6\u95f4\u4e0e\u6807\u51c6\u65f6\u95f4\u4e4b\u95f4\u7684\u5dee\u5f02\u8fdb\u884c\u8c03\u6574\uff0c\u786e\u4fdd\u7cfb\u7edf\u65f6\u95f4\u4e0e\u73b0\u5b9e\u65f6\u95f4\u4e00\u81f4\u3002<\/p>\n

\u516d\u3001\u4ee3\u7801\u793a\u4f8b<\/p>\n

\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u901a\u8fc7\u547d\u4ee4\u884c\u65b9\u5f0f\u8bbe\u7f6earm2440\u5e73\u53f0\u4e0aLinux\u7cfb\u7edf\u7684\u65f6\u95f4\uff1a<\/p>\n

\n

bash\n#\u8bbe\u7f6e\u65e5\u671f\ndate -s"2023-07-07"\n#\u8bbe\u7f6e\u65f6\u95f4\ndate -s"12:00:00"\n<\/pre>\n<\/p>\n

\u4e03\u3001\u6ce8\u610f\u4e8b\u9879<\/p>\n

\u5728\u8bbe\u7f6e\u548c\u4fee\u6539arm2440\u5e73\u53f0\u4e0aLinux\u7cfb\u7edf\u7684\u65f6\u95f4\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n

1.\u786e\u4fdd\u7cfb\u7edf\u5df2\u8fde\u63a5\u4e92\u8054\u7f51\uff0c\u4ee5\u4fbf\u8fdb\u884c\u65f6\u95f4\u540c\u6b65\u3002<\/p>\n

2.\u9009\u62e9\u5408\u9002\u7684\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u5668\uff0c\u786e\u4fdd\u51c6\u786e\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n

3.\u6ce8\u610f\u65f6\u533a\u8bbe\u7f6e\u548c\u590f\u4ee4\u65f6\u8c03\u6574\uff0c\u4fdd\u8bc1\u663e\u793a\u6b63\u786e\u7684\u672c\u5730\u65f6\u95f4\u3002<\/p>\n

4.\u5728\u4fee\u6539\u7cfb\u7edf\u65f6\u95f4\u524d\uff0c\u5907\u4efd\u91cd\u8981\u7684\u6570\u636elinux\u5e38\u7528\u547d\u4ee4\uff0c\u4ee5\u514d\u610f\u5916\u4e22\u5931\u3002<\/p>\n

\u516b\u3001\u603b\u7ed3<\/p>\n

\u901a\u8fc7\u5bf9arm2440\u5e73\u53f0\u4e0aLinux\u7cfb\u7edf\u65f6\u95f4\u8bbe\u7f6e\u548c\u4fee\u6539\u65b9\u6cd5\u7684\u8bc4\u6d4b\u5bf9\u6bd4\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u51fa\u4ee5\u4e0b\u7ed3\u8bba\uff1a<\/p>\n

1. NTP\u534f\u8bae\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u540c\u6b65\u7cfb\u7edf\u65f6\u95f4\uff0c\u51c6\u786e\u6027\u66f4\u9ad8\u3002<\/p>\n

2.\u6839\u636e\u5b9e\u9645\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65f6\u949f\u7c7b\u578b\uff0c\u786c\u4ef6\u65f6\u949f\u5177\u6709\u8f83\u9ad8\u7684\u7cbe\u5ea6\u3002<\/p>\n

3.\u547d\u4ee4\u884c\u548c\u56fe\u5f62\u754c\u9762\u90fd\u662f\u6709\u6548\u7684\u64cd\u4f5c\u65b9\u5f0f\uff0c\u6839\u636e\u4e2a\u4eba\u559c\u597d\u9009\u62e9\u3002<\/p>\n

4.\u9009\u62e9\u5408\u9002\u7684\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u5668\u548c\u6b63\u786e\u8bbe\u7f6e\u65f6\u533a\uff0c\u786e\u4fdd\u7cfb\u7edf\u65f6\u95f4\u51c6\u786e\u3002<\/p>\n

5.\u5728\u64cd\u4f5c\u4e4b\u524d\u6ce8\u610f\u5907\u4efd\u91cd\u8981\u6570\u636e\uff0c\u907f\u514d\u610f\u5916\u4e22\u5931\u3002<\/p>\n

\u4e5d\u3001\u53c2\u8003\u8d44\u6599<\/p>\n

[1] Linux man page: date(1)- Linux man page [Online]. Available: <\/p>\n

[2] Time synchronization [Online]. Available: <\/p>\n

\u901a\u8fc7\u5bf9arm2440\u5e73\u53f0\u4e0aLinux\u7cfb\u7edf\u65f6\u95f4\u8bbe\u7f6e\u548c\u4fee\u6539\u65b9\u6cd5\u7684\u8bc4\u6d4b\u5bf9\u6bd4\uff0c\u6211\u4eec\u5e0c\u671b\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u638c\u63e1\u8fd9\u4e00\u6280\u5de7\u7ea2\u65d7linux\u7cfb\u7edf\uff0c\u5e76\u6b63\u786e\u5730\u8bbe\u7f6e\u548c\u4fee\u6539\u7cfb\u7edf\u65f6\u95f4\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u5f0f\u548c\u670d\u52a1\u5668arm2440\u5e73\u53f0linux\u7cfb\u7edf\u65f6\u95f4\u7684\u8bbe\u7f6e\u4fee\u6539\u65b9\u6cd5<\/strong>\uff0c\u786e\u4fdd\u7cfb\u7edf\u65f6\u95f4\u7684\u51c6\u786e\u6027\u548c\u7a33\u5b9a\u6027\uff0c\u5bf9\u4e8e\u63d0\u9ad8\u7cfb\u7edf\u6027\u80fd\u548c\u4f7f\u7528\u4f53\u9a8c\u90fd\u5177\u6709\u79ef\u6781\u7684\u610f\u4e49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728arm2440\u5e73\u53f0\u4e0a\uff0cLinux\u7cfb\u7edf\u7684\u65f6\u95f4\u8bbe\u7f6e\u548c\u4fee\u6539\u4e00\u76f4\u662f\u7528\u6237\u5173\u6ce8\u7684\u91cd\u70b9\u3002\u672c\u6587\u5c06\u5bf9arm2440\u5e73\u53f0\u4e0aLinux\u7cfb\u7edf\u65f6\u95f4\u7684\u8bbe\u7f6e\u548c\u4fee\u6539\u65b9\u6cd5\u8fdb\u884c\u8bc4\u6d4b\u5bf9\u6bd4\uff0c\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u638c\u63e1\u8fd9\u4e00\u6280\u5de7\u3002\u5728arm2440\u5e73\u53f0\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u548c\u56fe\u5f62\u754c\u9762\u4e24\u79cd\u65b9\u5f0f\u8fdb\u884c\u65f6\u95f4\u8bbe\u7f6e\u548c\u4fee\u6539\u3002\u901a\u8fc7\u5bf9arm2440\u5e73\u53f0\u4e0aLinux\u7cfb\u7edf\u65f6\u95f4\u8bbe\u7f6e\u548c\u4fee\u6539\u65b9\u6cd5\u7684\u8bc4\u6d4b\u5bf9\u6bd4\uff0c\u6211\u4eec\u5e0c\u671b\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u638c\u63e1\u8fd9\u4e00\u6280\u5de7\uff0c\u5e76\u6b63\u786e\u5730\u8bbe\u7f6e\u548c\u4fee\u6539\u7cfb\u7edf\u65f6\u95f4\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-276873","post","type-post","status-publish","format-standard","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/276873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=276873"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/276873\/revisions"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=276873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=276873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=276873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}