{"id":288194,"date":"2023-11-25T20:08:30","date_gmt":"2023-11-25T12:08:30","guid":{"rendered":"https:\/\/lrxjmw.cn\/qssxlywsjtb.html"},"modified":"2023-11-25T20:08:30","modified_gmt":"2023-11-25T12:08:30","slug":"qssxlywsjtb","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/qssxlywsjtb.html","title":{"rendered":"\u8f7b\u677e\u5b9e\u73b0Linux\u4e0eWindows\u65f6\u95f4\u540c\u6b65"},"content":{"rendered":"

\u4e00\u3001\u95ee\u9898\u80cc\u666f<\/b><\/p>\n

\u5728\u65e5\u5e38\u5de5\u4f5c\u4e2dlinux\u540c\u6b65windows\u65f6\u95f4<\/strong>linux\u67e5\u770b\u8fdb\u7a0b\uff0c\u7ecf\u5e38\u4f1a\u9047\u5230\u9700\u8981\u4fdd\u8bc1\u591a\u53f0\u8bbe\u5907\u7684\u65f6\u95f4\u540c\u6b65\u7684\u60c5\u51b5\u3002\u800cLinux<\/a>\u548cWindows\u64cd\u4f5c\u7cfb\u7edf<\/a>\u5728\u65f6\u95f4\u7ba1\u7406\u4e0a\u5b58\u5728\u4e00\u4e9b\u5dee\u5f02\uff0c\u5bfc\u81f4\u4e24\u8005\u4e4b\u95f4\u7684\u65f6\u95f4\u4e0d\u4e00\u81f4\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u7b80\u5355\u7684\u6b65\u9aa4\uff0c\u5b9e\u73b0Linux\u540c\u6b65Windows\u65f6\u95f4\uff0c\u786e\u4fdd\u65f6\u95f4\u7684\u51c6\u786e\u6027\u3002<\/p>\n

\u4e8c\u3001\u95ee\u9898\u89e3\u51b3\u65b9\u6848<\/b><\/p>\n

1.\u5b89\u88c5NTP\u670d\u52a1<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2dlinux\u540c\u6b65windows\u65f6\u95f4<\/strong>\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff08NTP\uff09\u6765\u540c\u6b65\u65f6\u95f4\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5NTP\u670d\u52a1\u3002\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/a>\uff1a<\/p>\n

\n

\n   sudo apt-get install ntp\n   <\/pre>\n<\/p>\n

linux\u540c\u6b65windows\u65f6\u95f4_linux\u540c\u6b65windows\u65f6\u95f4_linux\u540c\u6b65windows\u65f6\u95f4<\/p>\n

2.\u914d\u7f6eNTP\u670d\u52a1\u5668<\/p>\n

\u6253\u5f00NTP\u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

\n   sudo vi \/etc\/ntp.conf\n   <\/pre>\n<\/p>\n

3.\u6dfb\u52a0Windows NTP\u670d\u52a1\u5668\u5730\u5740<\/p>\n

\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u627e\u5230server\u884clinux\u79fb\u690d\uff0c\u5e76\u6dfb\u52a0Windows NTP\u670d\u52a1\u5668\u5730\u5740\u3002\u4f8b\u5982\uff1a<\/p>\n

\n

\n   server \n   <\/pre>\n<\/p>\n

4.\u4fdd\u5b58\u5e76\u9000\u51fa\u914d\u7f6e\u6587\u4ef6<\/p>\n

\u5728vi\u7f16\u8f91\u5668\u4e2d\u6309\u4e0bEsc\u952e\uff0c\u7136\u540e\u8f93\u5165`:wq`\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/p>\n

5.\u91cd\u542fNTP\u670d\u52a1<\/p>\n

\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u91cd\u542fNTP\u670d\u52a1\uff1a<\/p>\n

\n

\n   sudo service ntp restart\n   <\/pre>\n<\/p>\n

6.\u8bbe\u7f6eWindows\u4e3a\u65f6\u95f4\u670d\u52a1\u5668<\/p>\n

\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5176\u8bbe\u7f6e\u4e3a\u65f6\u95f4\u670d\u52a1\u5668\u3002\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

\n   w32tm \/config \/manualpeerlist: \/syncfromflags:manual \/reliable:yes \/update\n   <\/pre>\n<\/p>\n

7.\u91cd\u542fWindows\u65f6\u95f4\u670d\u52a1<\/p>\n

linux\u540c\u6b65windows\u65f6\u95f4_linux\u540c\u6b65windows\u65f6\u95f4_linux\u540c\u6b65windows\u65f6\u95f4<\/p>\n

\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u91cd\u542fWindows\u65f6\u95f4\u670d\u52a1\uff1a<\/p>\n

\n

\n   net stop w32time && net start w32time\n   <\/pre>\n<\/p>\n

8.\u68c0\u67e5\u65f6\u95f4\u540c\u6b65\u72b6\u6001<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u65f6\u95f4\u540c\u6b65\u72b6\u6001\uff1a<\/p>\n

\n

\n   ntpq -p\n   <\/pre>\n<\/p>\n

9.\u9a8c\u8bc1\u540c\u6b65\u6210\u529f<\/p>\n

\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\u65f6\u95f4\u540c\u6b65\u662f\u5426\u6210\u529f\uff1a<\/p>\n

\n

\n   w32tm \/query \/status\n   <\/pre>\n<\/p>\n

\u4e09\u3001\u603b\u7ed3<\/b><\/p>\n

\u901a\u8fc7\u4ee5\u4e0a\u7b80\u5355\u7684\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0Linux\u540c\u6b65Windows\u65f6\u95f4\uff0c\u786e\u4fdd\u591a\u53f0\u8bbe\u5907\u7684\u65f6\u95f4\u4e00\u81f4\u6027\u3002\u8fd9\u5bf9\u4e8e\u9700\u8981\u7cbe\u786e\u65f6\u95f4\u7ba1\u7406\u7684\u5de5\u4f5c\u73af\u5883\u975e\u5e38\u91cd\u8981\u3002\u5e0c\u671b\u672c\u6587\u80fd\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff08NTP\uff09\u6765\u540c\u6b65\u65f6\u95f4\u3002\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5176\u8bbe\u7f6e\u4e3a\u65f6\u95f4\u670d\u52a1\u5668\u3002\u91cd\u542fWindows\u65f6\u95f4\u670d\u52a1\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\u65f6\u95f4\u540c\u6b65\u662f\u5426\u6210\u529f\uff1a\u901a\u8fc7\u4ee5\u4e0a\u7b80\u5355\u7684\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0Linux\u540c\u6b65Windows\u65f6\u95f4\uff0c\u786e\u4fdd\u591a\u53f0\u8bbe\u5907\u7684\u65f6\u95f4\u4e00\u81f4\u6027\u3002<\/p>\n","protected":false},"author":1,"featured_media":288195,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-288194","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/288194","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=288194"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/288194\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/288195"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=288194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=288194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=288194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}