{"id":293345,"date":"2024-10-01T20:05:32","date_gmt":"2024-10-01T12:05:32","guid":{"rendered":"https:\/\/lrxjmw.cn\/sjtblxtwdysh.html"},"modified":"2024-10-01T20:05:32","modified_gmt":"2024-10-01T12:05:32","slug":"sjtblxtwdysh","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/sjtblxtwdysh.html","title":{"rendered":"\u65f6\u95f4\u540c\u6b65\uff1aLinux \u7cfb\u7edf\u7a33\u5b9a\u4e0e\u751f\u6d3b\u54c1\u8d28\u7684\u5173\u952e\uff0cNTP \u534f\u8bae\u7684\u795e\u5947\u4e4b\u5904"},"content":{"rendered":"

\u65f6\u95f4\u540c\u6b65\u65f6\u95f4\u540c\u6b65 linux<\/strong>\uff0c\u867d\u770b\u4f3c\u6280\u672f\u9886\u57df\u7684\u7410\u4e8b\uff0c\u5b9e\u5219\u7d27\u5bc6\u5173\u8054\u4f60\u6211\u65e5\u5e38\u3002\u8bd5\u60f3\uff0c\u82e5\u7535\u8111\u65f6\u949f\u80fd\u5ffd\u5feb\u5ffd\u6162\uff0c\u5c06\u5bfc\u81f4\u4f55\u7b49\u6293\u72c2\u7684\u5c40\u9762\uff01\u4f1a\u8bae\u8fdf\u5230\u3001\u751f\u65e5\u9519\u8fc7\u3001\u76f4\u64ad\u8bef\u65f6\uff0c\u65e0\u4e0d\u56e0\u65f6\u5e8f\u8bef\u5dee\u800c\u751f\u3002\u5728Linux<\/a>\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u7cbe\u51c6\u7684\u65f6\u95f4\u540c\u6b65\u8fdc\u975e\u5c0f\u9898\u5927\u505alinux\u5185\u6838\uff0c\u5b83\u76f4\u63a5\u5f71\u54cd\u7cfb\u7edf\u7a33\u5b9a\u6027\u53ca\u4e2a\u4eba\u751f\u6d3b\u54c1\u8d28\u3002<\/p>\n

\u4e8eLinux<\/a>\u73af\u5883\u4e2d\uff0c\u65f6\u95f4\u540c\u6b65\u5b9b\u5982\u4e00\u573a\u7cbe\u51c6\u7684\u7f16\u6392\u4e4b\u821e\u3002\u7cfb\u7edf\u5fc5\u987b\u51c6\u786e\u638c\u63e1\u5f53\u524d\u65f6\u8fb0\uff0c\u4ee5\u786e\u4fdd\u4efb\u52a1\u7684\u51c6\u786e\u6267\u884c\u3002\u65e0\u8bba\u662f\u5b9a\u65f6\u5907\u4efd\u4fe1\u606f\uff0c\u6291\u6216\u81ea\u52a8\u5316\u8f6f\u4ef6\u66f4\u65b0\uff0c\u65f6\u95f4\u7684\u7cbe\u51c6\u81f3\u5173\u91cd\u8981\u3002\u82e5\u65f6\u95f4\u4e0d\u540c\u6b65\uff0c\u4efb\u52a1\u6267\u884c\u6216\u5c06\u5931\u8bef\uff0c\u8fdb\u800c\u5f15\u53d1\u7cfb\u7edf\u6545\u969c\u3002\u56e0\u6b64\uff0c\u65f6\u95f4\u540c\u6b65\u4e0d\u4ec5\u6d89\u53ca\u6280\u672f\u6311\u6218\uff0c\u66f4\u662f\u65e5\u5e38\u751f\u6d3b\u4e2d\u7684\u5fc5\u4fee\u8bfe\uff0c\u4f53\u73b0\u4e86\u5bf9\u65f6\u95f4\u7684\u656c\u610f\u4e0e\u91cd\u89c6\u3002<\/p>\n

NTP\uff0c\u65f6\u95f4\u540c\u6b65\u7684\u9b54\u672f\u5e08<\/b><\/p>\n

\u5728\u8ba8\u8bba\u65f6\u95f4\u540c\u6b65\u65f6\uff0c\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff08NTP\uff09\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u73af\u3002\u5b83\u662f\u65f6\u95f4\u540c\u6b65\u7684\u5173\u952e\u9b54\u672f\u5e08\uff0c\u786e\u4fdd\u5168\u7403\u7535\u8111\u65f6\u95f4\u540c\u6b65\u81f3\u7edf\u4e00\u6807\u51c6\u3002\u8bbe\u60f3\u82e5\u65e0NTP\uff0c\u7535\u8111\u65f6\u95f4\u5c06\u5982\u65e0\u5934\u82cd\u8747\u822c\u6df7\u4e71\u65e0\u5e8f\u3002\u501f\u52a9NTP\uff0c\u65f6\u95f4\u7ba1\u7406\u53d8\u5f97\u6709\u6761\u4e0d\u7d0a\uff0c\u5982\u540c\u4e00\u6761\u76f4\u7ebf\u822c\u76f4\u7ebf\u524d\u8fdb\u3002<\/p>\n

NTP\u673a\u5236\u901a\u8fc7\u8fde\u63a5\u81f3\u65f6\u95f4\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u7cbe\u786e\u65f6\u95f4\u7684\u7f51\u7edc\u540c\u6b65\uff0c\u5e76\u4fee\u6b63\u672c\u5730\u7cfb\u7edf\u65f6\u95f4\u3002\u6b64\u8fc7\u7a0b\u76f8\u5f53\u4e8e\u4e3a\u7535\u8111\u914d\u5907\u4e86\u4e00\u53ea\u7cbe\u786e\u7684\u8155\u8868\uff0c\u786e\u4fdd\u5176\u638c\u63e1\u5f53\u524d\u65f6\u523b\u3002\u540c\u65f6\uff0cNTP\u53ef\u81ea\u52a8\u8c03\u6574\u65f6\u5dee\uff0c\u4fdd\u969c\u65f6\u95f4\u7684\u7edd\u5bf9\u51c6\u786e\u6027\u3002\u501f\u52a9NTP\uff0c\u7535\u8111\u65f6\u95f4\u5c06\u4e0d\u518d\u7d0a\u4e71\uff0c\u751f\u6d3b\u8282\u594f\u4e5f\u5c06\u968f\u4e4b\u53d8\u5f97\u66f4\u52a0\u6709\u5e8f\u3002<\/p>\n

\u624b\u52a8\u540c\u6b65\uff0c\u7b80\u5355\u7c97\u66b4\u4f46\u6709\u6548<\/b><\/p>\n

\u5076\u9047\u540c\u6b65\u5ef6\u8fdf\u6216\u5373\u65f6\u65f6\u95f4\u6821\u6b63\u9700\uff0c\u624b\u52a8\u540c\u6b65\u4fbf\u663e\u5176\u6548\u3002\u6b64\u4e43\u901f\u6548\u89e3\u51b3\u65b9\u6848\uff0c\u5982\u540c\u7d27\u6025\u6551\u63f4\u3002\u5728Linux\u73af\u5883\u4e0b\uff0c\u901a\u8fc7\u6267\u884c`date`\u6307\u4ee4\uff0c\u53ef\u4fbf\u6377\u4e14\u9ad8\u6548\u5730\u8c03\u6574\u65f6\u95f4\u3002\u793a\u4f8b\u5982\u4e0b\uff1a`sudodate-s\"2023-10-0112:00:00\"`\uff0c\u6b64\u64cd\u4f5c\u5c06\u7cfb\u7edf\u65f6\u95f4\u540c\u6b65\u81f32023\u5e7410\u67081\u65e512\u65f6\u3002\u867d\u65b9\u6cd5\u7b80\u6734\uff0c\u5374\u4e8e\u5371\u6025\u65f6\u523b\u6210\u4e3a\u501a\u4ed7\u3002<\/p>\n

\u624b\u52a8\u65f6\u95f4\u540c\u6b65\u867d\u6613\u884c\uff0c\u5374\u5b58\u6709\u4e0d\u8db3\u3002\u9891\u7e41\u624b\u52a8\u8c03\u6574\u6216\u5ffd\u89c6\u81ea\u52a8\u540c\u6b65\u7684\u4ef7\u503c\u53ef\u80fd\u5f15\u53d1\u95ee\u9898\u3002\u6b64\u65b9\u6cd5\u867d\u80fd\u5373\u65f6\u89e3\u51b3\uff0c\u5374\u65e0\u6cd5\u4fdd\u969c\u65f6\u95f4\u7684\u6301\u7eed\u7cbe\u786e\u3002\u56e0\u6b64\uff0c\u5c3d\u7ba1\u624b\u52a8\u540c\u6b65\u53ef\u884c\uff0c\u4e3a\u786e\u4fdd\u65f6\u95f4\u6052\u5b9a\u51c6\u786e\uff0c\u4ecd\u987b\u4f9d\u6258\u81ea\u52a8\u540c\u6b65\u673a\u5236\u3002<\/p>\n

\u65f6\u533a\u8bbe\u7f6e\uff0c\u8ba9\u65f6\u95f4\u66f4\u8d34\u8fd1\u751f\u6d3b<\/b><\/p>\n

\u65f6\u95f4\u540c\u6b65\u6db5\u76d6\u65f6\u533a\u914d\u7f6e\uff0c\u800c\u65f6\u533a\u626e\u6f14\u7740\u65f6\u95f4\u5b9a\u4f4d\u5750\u6807\u7684\u89d2\u8272\u3002\u5728Linux\u73af\u5883\u4e2d\uff0c\u5229\u7528`timedatectl`\u6307\u4ee4\u8f7b\u677e\u5b9e\u73b0\u65f6\u533a\u8bbe\u5b9a\uff0c\u5982\u4f7f\u7528`sudotimedatectlset-timezoneAsia\/Shanghai`\u8c03\u6574\u81f3\u4e0a\u6d77\u65f6\u533a\u3002\u51c6\u786e\u65f6\u533a\u914d\u7f6e\u786e\u4fdd\u7535\u8111\u65f6\u95f4\u4e0e\u5b9e\u9645\u751f\u6d3b\u540c\u6b65\uff0c\u907f\u514d\u65f6\u95f4\u6df7\u4e71\u3002<\/p>\n

\u65f6\u95f4\u540c\u6b65 linux_\u65f6\u95f4\u540c\u6b65 linux_\u65f6\u95f4\u540c\u6b65 linux<\/p>\n

\u65f6\u533a\u8bbe\u5b9a\u867d\u4fbf\u6377\uff0c\u5374\u6781\u5176\u5173\u952e\u3002\u9519\u8bef\u914d\u7f6e\u65f6\u533a\u53ef\u80fd\u5f15\u53d1\u65f6\u95f4\u663e\u793a\u5931\u51c6\uff0c\u751a\u81f3\u5e72\u6270\u7cfb\u7edf\u7a33\u5b9a\u8fd0\u884c\u3002\u4ee5\u7ebd\u7ea6\u4e3a\u4f8b\uff0c\u82e5\u8bef\u8bbe\u4e3a\u5317\u4eac\u65f6\u533a\uff0c\u7535\u8111\u65f6\u95f4\u5c06\u5feb12\u5c0f\u65f6\uff0c\u8bef\u5dee\u660e\u663e\u3002\u786e\u4fdd\u65f6\u533a\u8bbe\u7f6e\u51c6\u786e\uff0c\u5bf9\u65f6\u95f4\u540c\u6b65\u81f3\u5173\u91cd\u8981\u3002<\/p>\n

\u65f6\u95f4\u540c\u6b65\u7684\u5e38\u89c1\u95ee\u9898<\/b><\/p>\n

\u5728\u64cd\u4f5c\u5b9e\u8df5\u4e2d\uff0c\u65f6\u95f4\u540c\u6b65\u5e38\u906d\u9047\u6280\u672f\u969c\u788d\u3002\u4f8b\u5982\uff0c\u7f51\u7edc\u4e0d\u7a33\u53ef\u80fd\u5f15\u53d1NTP\u540c\u6b65\u5931\u6548\u65f6\u95f4\u540c\u6b65 linux<\/strong>\uff0c\u6291\u6216\u7cfb\u7edf\u65f6\u95f4\u610f\u5916\u53d8\u52a8\uff0c\u4ee4\u4eba\u56f0\u60d1\u3002\u5c3d\u7ba1\u6311\u6218\u68d8\u624b\uff0c\u5374\u603b\u80fd\u627e\u5230\u89e3\u51b3\u4e4b\u9053\u3002\u5efa\u8bae\u68c0\u67e5\u7f51\u7edc\u72b6\u6001\uff0c\u6838\u5b9eNTP\u670d\u52a1\u5668\u8fd0\u884c\u6b63\u5e38\uff1b\u4e14\u53ef\u8fd0\u7528`hwclock`\u6307\u4ee4\u540c\u6b65\u786c\u4ef6\u65f6\u949f\uff0c\u907f\u514d\u7cfb\u7edf\u65f6\u95f4\u8df3\u52a8\u3002\u9762\u5bf9\u95ee\u9898\uff0c\u4fdd\u6301\u51b7\u9759linux\u7a7a\u95f4\uff0c\u7ec6\u81f4\u5206\u6790\uff0c\u7ec8\u53ef\u627e\u5230\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n

\u65f6\u95f4\u540c\u6b65 linux_\u65f6\u95f4\u540c\u6b65 linux_\u65f6\u95f4\u540c\u6b65 linux<\/p>\n

\u65f6\u949f\u6f02\u79fb\u4e3a\u53e6\u4e00\u5e38\u89c1\u73b0\u8c61\uff0c\u6307\u7684\u662f\u7cfb\u7edf\u65f6\u95f4\u9010\u6e10\u4e0e\u5b9e\u9645\u65f6\u95f4\u4ea7\u751f\u504f\u5dee\u3002\u6b64\u95ee\u9898\u591a\u6e90\u4e8e\u786c\u4ef6\u65f6\u949f\u7684\u7cbe\u5ea6\u4e0d\u8db3\u3002\u89e3\u51b3\u7b56\u7565\u5305\u62ec\u5b9a\u671f\u91c7\u7528NTP\u540c\u6b65\u7cfb\u7edf\u65f6\u95f4\u6216\u8c03\u6574\u65f6\u949f\u9891\u7387\u3002\u65f6\u949f\u6f02\u79fb\u867d\u4e3a\u5c0f\u95ee\u9898\uff0c\u4f46\u82e5\u672a\u53ca\u65f6\u5e72\u9884\uff0c\u53ef\u80fd\u6f14\u53d8\u6210\u4e25\u91cd\u6545\u969c\u3002<\/p>\n

\u65f6\u95f4\u540c\u6b65\u7684\u672a\u6765<\/b><\/p>\n

\u6280\u672f\u8fdb\u6b65\u63a8\u52a8\u4e86\u65f6\u95f4\u540c\u6b65\u6280\u672f\u7684\u53d1\u5c55\u3002\u4ee5PTP\uff08\u7cbe\u786e\u65f6\u95f4\u534f\u8bae\uff09\u4e3a\u4f8b\uff0c\u5176\u5b9e\u73b0\u5c06\u540c\u6b65\u7cbe\u5ea6\u63d0\u5347\u81f3\u5fae\u79d2\uff0c\u6b64\u6210\u5c31\u66fe\u5c5e\u9050\u60f3\u3002\u5c55\u671b\u672a\u6765\uff0c\u7269\u8054\u7f51\u4e0e5G\u7684\u63a8\u5e7f\u5c06\u52a0\u5267\u5bf9\u65f6\u95f4\u540c\u6b65\u7684\u9700\u6c42\u4e0e\u7cbe\u5ea6\u8ffd\u6c42\u3002\u9884\u671f\u5c06\u6709\u66f4\u591a\u5148\u8fdb\u7684\u65f6\u95f4\u540c\u6b65\u6280\u672f\u6d8c\u73b0\uff0c\u4ee5\u786e\u4fdd\u751f\u6d3b\u7684\u7cbe\u786e\u4e0e\u6548\u7387\u3002<\/p>\n

\u672a\u6765\u65f6\u95f4\u540c\u6b65\u7684\u53d1\u5c55\u4e0d\u4ec5\u5173\u4e4e\u6280\u672f\u9769\u65b0\uff0c\u4ea6\u5c06\u6df1\u523b\u5f71\u54cd\u6211\u4eec\u7684\u751f\u6d3b\u6a21\u5f0f\u3002\u8bbe\u60f3\u667a\u80fd\u5bb6\u5c45\u4e0e\u81ea\u52a8\u9a7e\u9a76\u8f66\u8f86\uff0c\u5176\u6b63\u5e38\u8fd0\u884c\u7686\u4f9d\u8d56\u4e8e\u7cbe\u51c6\u7684\u65f6\u95f4\u540c\u6b65\u3002\u65f6\u95f4\u540c\u6b65\u4e0d\u4ec5\u662f\u6280\u672f\u6311\u6218\uff0c\u66f4\u662f\u5851\u9020\u6211\u4eec\u672a\u6765\u751f\u6d3b\u7684\u6838\u5fc3\u8981\u7d20\u3002<\/p>\n

\u603b\u7ed3\u4e0e\u601d\u8003<\/b><\/p>\n

\u65f6\u95f4\u540c\u6b65\uff0c\u867d\u88ab\u89c6\u4e3a\u6280\u672f\u8bae\u9898\uff0c\u5374\u4e0e\u516c\u5171\u65e5\u5e38\u751f\u6d3b\u7d27\u5bc6\u76f8\u8fde\u3002\u65e0\u8bba\u662f\u5728\u804c\u4e1a\u9886\u57df\u8fd8\u662f\u4f11\u95f2\u65f6\u523b\uff0c\u6b64\u529f\u80fd\u5747\u626e\u6f14\u5173\u952e\u89d2\u8272\u3002\u5728Linux\u73af\u5883\u4e2d\uff0c\u65f6\u95f4\u540c\u6b65\u4e0d\u4ec5\u7cfb\u6280\u672f\u96be\u9898\uff0c\u4ea6\u878d\u5165\u751f\u6d3b\u7ec6\u679d\u672b\u8282\u3002\u5229\u7528NTP\u534f\u8bae\u3001\u4eba\u5de5\u540c\u6b65\u6216\u65f6\u533a\u8c03\u8282\u7b49\u65b9\u5f0f\uff0c\u6211\u4eec\u5f97\u4ee5\u4fdd\u8bc1\u65f6\u95f4\u7684\u7cbe\u51c6\u65e0\u8bef\u3002<\/p>\n

\u8bf7\u95ee\u60a8\u662f\u5426\u66fe\u906d\u9047\u65f6\u95f4\u540c\u6b65\u96be\u9898\uff1f\u53c8\u5982\u4f55\u4e88\u4ee5\u89e3\u51b3\uff1f\u671f\u671b\u60a8\u5728\u8bc4\u8bba\u533a\u5206\u4eab\u7ecf\u9a8c\u4e0e\u89c1\u89e3\uff0c\u5171\u8bba\u65f6\u95f4\u540c\u6b65\u4e4b\u5965\u79d8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u8ba8\u8bba\u65f6\u95f4\u540c\u6b65\u65f6\uff0c\u7f51\u7edc\u65f6\u95f4\u534f\u8bae\uff08NTP\uff09\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u73af\u3002\u65f6\u95f4\u540c\u6b65\u4e0d\u4ec5\u662f\u6280\u672f\u6311\u6218\uff0c\u66f4\u662f\u5851\u9020\u6211\u4eec\u672a\u6765\u751f\u6d3b\u7684\u6838\u5fc3\u8981\u7d20\u3002\u65f6\u95f4\u540c\u6b65\uff0c\u867d\u88ab\u89c6\u4e3a\u6280\u672f\u8bae\u9898\uff0c\u5374\u4e0e\u516c\u5171\u65e5\u5e38\u751f\u6d3b\u7d27\u5bc6\u76f8\u8fde\u3002\u5728Linux\u73af\u5883\u4e2d\uff0c\u65f6\u95f4\u540c\u6b65\u4e0d\u4ec5\u7cfb\u6280\u672f\u96be\u9898\uff0c\u4ea6\u878d\u5165\u751f\u6d3b\u7ec6\u679d\u672b\u8282\u3002<\/p>\n","protected":false},"author":1,"featured_media":293346,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[2597,109,1336,2936,3332],"class_list":["post-293345","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-h-4","tag-linux","tag-n-2","tag-sjtb","tag-wlsjxy"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293345","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=293345"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293345\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293346"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}