{"id":30939,"date":"2025-04-21T06:25:57","date_gmt":"2025-04-20T22:25:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/30939.html"},"modified":"2025-04-21T06:25:57","modified_gmt":"2025-04-20T22:25:57","slug":"%e4%bd%bf%e7%94%a8linux%e5%91%bd%e4%bb%a4%e4%bf%ae%e6%94%b9%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%97%b6%e9%97%b4%e5%8f%8a%e8%ae%be%e7%bd%ae%e6%97%b6%e5%8c%ba","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/30939.html","title":{"rendered":"\u4f7f\u7528Linux\u547d\u4ee4\u4fee\u6539\u670d\u52a1\u5668\u65f6\u95f4\u53ca\u8bbe\u7f6e\u65f6\u533a"},"content":{"rendered":"<p>\u5728\u670d\u52a1\u5668\u7ba1\u7406\u548c\u7ef4\u62a4\u4e2d&#xff0c;\u51c6\u786e\u7684\u7cfb\u7edf\u65f6\u95f4\u5bf9\u4e8e\u4fdd\u8bc1\u670d\u52a1\u5668\u6b63\u5e38\u8fd0\u884c\u548c\u6570\u636e\u4e00\u81f4\u6027\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<p>\u800c\u6709\u65f6\u5019&#xff0c;\u6211\u4eec\u53ef\u80fd\u9700\u8981\u624b\u52a8\u4fee\u6539\u670d\u52a1\u5668\u4e0a\u7684\u7cfb\u7edf\u65f6\u95f4&#xff0c;\u4ee5\u8c03\u6574\u65f6\u533a\u3001\u4fee\u590d\u65f6\u95f4\u6f02\u79fb\u7b49\u95ee\u9898\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Linux\u547d\u4ee4\u6765\u4fee\u6539\u670d\u52a1\u5668\u65f6\u95f4\u3002<\/p>\n<p>\u4e00\u3001\u68c0\u67e5\u5f53\u524d\u65f6\u95f4 \u9996\u5148&#xff0c;\u6211\u4eec\u9700\u8981\u4f7f\u7528\u547d\u4ee4\u6765\u68c0\u67e5\u670d\u52a1\u5668\u7684\u5f53\u524d\u65f6\u95f4\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">date<\/span><\/p>\n<p>\u663e\u793a\u51fa\u5f53\u524d\u7684\u65e5\u671f\u548c\u65f6\u95f4&#xff0c;\u4ee5\u53ca\u6240\u8bbe\u7f6e\u7684\u65f6\u533a\u3002\u786e\u8ba4\u5f53\u524d\u65f6\u95f4\u548c\u65f6\u533a\u662f\u5426\u7b26\u5408\u9884\u671f&#xff0c;\u53ef\u7528\u4f5c\u540e\u7eed\u64cd\u4f5c\u7684\u6bd4\u5bf9\u6807\u51c6\u3002<\/p>\n<p>\u4e8c\u3001\u4fee\u6539\u65f6\u95f4\u65e5\u671f<\/p>\n<li>\u4fee\u6539\u65e5\u671f&#xff1a;\u8981\u4fee\u6539\u670d\u52a1\u5668\u7684\u65e5\u671f&#xff0c;\u53ef\u4ee5\u4f7f\u7528date\u547d\u4ee4\u5e76\u6307\u5b9a\u65e5\u671f\u683c\u5f0f&#xff0c;\u4f8b\u5982&#xff1a;<\/li>\n<p><span class=\"token function\">date<\/span> <span class=\"token parameter variable\">-s<\/span> <span class=\"token string\">&#034;2023-12-12&#034;<\/span><\/p>\n<p>\u5c06\u65e5\u671f\u8bbe\u7f6e\u4e3a\u6307\u5b9a\u7684\u65e5\u671f&#xff08;\u5e74-\u6708-\u65e5&#xff09;\u3002\u8bf7\u6ce8\u610f&#xff0c;\u60a8\u53ef\u80fd\u9700\u8981\u5177\u6709\u7ba1\u7406\u5458\u6743\u9650\u624d\u80fd\u66f4\u6539\u65e5\u671f\u3002<\/p>\n<li>\u4fee\u6539\u65f6\u95f4&#xff1a;\u8981\u4fee\u6539\u670d\u52a1\u5668\u7684\u65f6\u95f4&#xff0c;\u540c\u6837\u53ef\u4ee5\u4f7f\u7528date\u547d\u4ee4\u5e76\u6307\u5b9a\u65f6\u95f4\u683c\u5f0f&#xff0c;\u4f8b\u5982&#xff1a;<\/li>\n<p><span class=\"token function\">date<\/span> <span class=\"token parameter variable\">-s<\/span> <span class=\"token string\">&#034;21:57:12&#034;<\/span><\/p>\n<p>\u5c06\u65f6\u95f4\u8bbe\u7f6e\u4e3a\u6307\u5b9a\u7684\u65f6\u95f4&#xff08;\u65f6&#xff1a;\u5206&#xff1a;\u79d2&#xff09;\u3002<\/p>\n<li>\u540c\u65f6\u4fee\u6539\u65e5\u671f\u548c\u65f6\u95f4&#xff1a;\u5982\u679c\u8981\u540c\u65f6\u4fee\u6539\u65e5\u671f\u548c\u65f6\u95f4&#xff0c;\u53ef\u4ee5\u5c06\u65e5\u671f\u548c\u65f6\u95f4\u5408\u5e76\u5230\u4e00\u4e2a\u547d\u4ee4\u4e2d&#xff0c;\u4f8b\u5982&#xff1a;<\/li>\n<p><span class=\"token function\">date<\/span> <span class=\"token parameter variable\">-s<\/span> <span class=\"token string\">&#034;2023-12-12 21:57:12&#034;<\/span><\/p>\n<p>\u540c\u65f6\u4fee\u6539\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/p>\n<p>\u4e09\u3001\u8bbe\u7f6e\u65f6\u533a<\/p>\n<li>\u67e5\u770b\u5f53\u524d\u65f6\u533a&#xff1a;\u8981\u67e5\u770b\u5f53\u524d\u7684\u65f6\u533a\u8bbe\u7f6e&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/li>\n<p>timedatectl show <span class=\"token parameter variable\">&#8211;property<\/span><span class=\"token operator\">&#061;<\/span>Timezone<\/p>\n<p>\u663e\u793a\u51fa\u5f53\u524d\u7684\u65f6\u533a\u3002<\/p>\n<li>\u4fee\u6539\u65f6\u533a&#xff1a;\u8981\u4fee\u6539\u670d\u52a1\u5668\u7684\u65f6\u533a&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u5e76\u5c06&#034;Asia\/Shanghai&#034;\u66ff\u6362\u4e3a\u6240\u9700\u7684\u65f6\u533a\u6807\u8bc6\u7b26&#xff1a;<\/li>\n<p>timedatectl set-timezone Asia\/Shanghai<\/p>\n<p>\u5c06\u65f6\u533a\u8bbe\u7f6e\u4e3a\u6307\u5b9a\u7684\u65f6\u533a\u3002<\/p>\n<p>\u56db\u3001\u9a8c\u8bc1\u4fee\u6539\u7ed3\u679c<\/p>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u64cd\u4f5c\u540e&#xff0c;\u6211\u4eec\u53ef\u4ee5\u518d\u6b21\u4f7f\u7528date\u547d\u4ee4\u6765\u9a8c\u8bc1\u662f\u5426\u6210\u529f\u4fee\u6539\u4e86\u670d\u52a1\u5668\u7684\u65f6\u95f4\u548c\u65f6\u533a\u3002\u786e\u8ba4\u7cfb\u7edf\u65f6\u95f4\u4ee5\u53ca\u65f6\u533a\u662f\u5426\u4e0e\u9884\u671f\u4e00\u81f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4w\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf29\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Linux\u670d\u52a1\u5668\u4e0a\u901a\u8fc7\u547d\u4ee4\u884c\u68c0\u67e5\u548c\u4fee\u6539\u7cfb\u7edf\u65f6\u95f4\u3001\u65e5\u671f\u3001\u65f6\u533a\uff0c\u5305\u62ec\u4f7f\u7528date\u548ctimedatectl\u547d\u4ee4\u8fdb\u884c\u64cd\u4f5c\uff0c\u5e76\u63d0\u4f9b\u9a8c\u8bc1\u65b9\u6cd5\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":[58,43,44],"topic":[],"class_list":["post-30939","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>\u4f7f\u7528Linux\u547d\u4ee4\u4fee\u6539\u670d\u52a1\u5668\u65f6\u95f4\u53ca\u8bbe\u7f6e\u65f6\u533a - \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\/30939.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Linux\u547d\u4ee4\u4fee\u6539\u670d\u52a1\u5668\u65f6\u95f4\u53ca\u8bbe\u7f6e\u65f6\u533a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4w\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf29\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Linux\u670d\u52a1\u5668\u4e0a\u901a\u8fc7\u547d\u4ee4\u884c\u68c0\u67e5\u548c\u4fee\u6539\u7cfb\u7edf\u65f6\u95f4\u3001\u65e5\u671f\u3001\u65f6\u533a\uff0c\u5305\u62ec\u4f7f\u7528date\u548ctimedatectl\u547d\u4ee4\u8fdb\u884c\u64cd\u4f5c\uff0c\u5e76\u63d0\u4f9b\u9a8c\u8bc1\u65b9\u6cd5\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/30939.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-20T22:25:57+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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/30939.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/30939.html\",\"name\":\"\u4f7f\u7528Linux\u547d\u4ee4\u4fee\u6539\u670d\u52a1\u5668\u65f6\u95f4\u53ca\u8bbe\u7f6e\u65f6\u533a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-20T22:25:57+00:00\",\"dateModified\":\"2025-04-20T22:25:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/30939.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/30939.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/30939.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Linux\u547d\u4ee4\u4fee\u6539\u670d\u52a1\u5668\u65f6\u95f4\u53ca\u8bbe\u7f6e\u65f6\u533a\"}]},{\"@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":"\u4f7f\u7528Linux\u547d\u4ee4\u4fee\u6539\u670d\u52a1\u5668\u65f6\u95f4\u53ca\u8bbe\u7f6e\u65f6\u533a - \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\/30939.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Linux\u547d\u4ee4\u4fee\u6539\u670d\u52a1\u5668\u65f6\u95f4\u53ca\u8bbe\u7f6e\u65f6\u533a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4w\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf29\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Linux\u670d\u52a1\u5668\u4e0a\u901a\u8fc7\u547d\u4ee4\u884c\u68c0\u67e5\u548c\u4fee\u6539\u7cfb\u7edf\u65f6\u95f4\u3001\u65e5\u671f\u3001\u65f6\u533a\uff0c\u5305\u62ec\u4f7f\u7528date\u548ctimedatectl\u547d\u4ee4\u8fdb\u884c\u64cd\u4f5c\uff0c\u5e76\u63d0\u4f9b\u9a8c\u8bc1\u65b9\u6cd5\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/30939.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-20T22:25:57+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/30939.html","url":"https:\/\/www.wsisp.com\/helps\/30939.html","name":"\u4f7f\u7528Linux\u547d\u4ee4\u4fee\u6539\u670d\u52a1\u5668\u65f6\u95f4\u53ca\u8bbe\u7f6e\u65f6\u533a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-20T22:25:57+00:00","dateModified":"2025-04-20T22:25:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/30939.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/30939.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/30939.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Linux\u547d\u4ee4\u4fee\u6539\u670d\u52a1\u5668\u65f6\u95f4\u53ca\u8bbe\u7f6e\u65f6\u533a"}]},{"@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\/30939","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=30939"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/30939\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=30939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=30939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=30939"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=30939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}