{"id":194963,"date":"2020-07-04T09:00:37","date_gmt":"2020-07-04T01:00:37","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=194963"},"modified":"2020-06-27T22:25:24","modified_gmt":"2020-06-27T14:25:24","slug":"simplify-wsl-installation","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/simplify-wsl-installation.html","title":{"rendered":"\u5fae\u8f6f\u7b80\u5316Win10\u4e0a\u7684WSL\u5b89\u88c5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728 Windows 10 \u7684\u6700\u65b0\u5185\u6d4b\u7248\u672c\u4e2d(Windows 10 Insider Preview Build 20150)\uff0c\u5fae\u8f6f\u4e3a WSL \u7684\u5b89\u88c5\u548c\u5185\u6838\u5347\u7ea7\u65b0\u589e\u4e86\u4e24\u4e2a\u547d\u4ee4\uff0c\u5206\u522b\u662fwsl.exe --install\u548cwsl.exe --update\u3002Windows 10 \u7528\u6237\u53ef\u901a\u8fc7\u547d\u4ee4\u884c\u5de5\u5177\u6216 Windows Terminal \u8fd0\u884c\u4e0a\u8ff0\u547d\u4ee4\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u5728\u5c1a\u672a\u5f00\u542f WSL \u7684\u673a\u5668\u4e0a\u8fd0\u884cwsl.exe --install\u547d\u4ee4\u5c06\u4f1a\u542f\u7528 WSL \u53ef\u9009\u7ec4\u4ef6\u548c\u865a\u62df\u673a\u5e73\u53f0\u53ef\u9009\u7ec4\u4ef6\uff0c\u5e76\u63d0\u793a\u91cd\u542f\u673a\u5668\u3002\u901a\u8fc7\u6b64\u65b9\u5f0f\u5b89\u88c5 WSL \u4f1a\u5c06 WSL2 \u4f5c\u4e3a\u65b0\u5b89\u88c5\u7684 WSL \u7684\u9ed8\u8ba4\u7248\u672c\uff0c\u56e0\u4e3a\u5fae\u8f6f\u53d1\u73b0\u5927\u591a\u6570\u5185\u6d4b\u7528\u6237\u4f7f\u7528\u7684\u6b63\u662f WSL2\u3002<\/p>\n

\u5fae\u8f6f\u8fd8\u8868\u793a\u5c06\u6765\u8ba1\u5212\u4e3a\u6b64\u547d\u4ee4\u6dfb\u52a0\u81ea\u52a8\u5b89\u88c5 WSL \u7684 Linux \u53d1\u884c\u7248\uff08\u5982 Ubuntu\uff09\u7684\u652f\u6301\u3002<\/p>\n

wsl.exe --update\u547d\u4ee4\u7528\u4e8e\u7ba1\u7406 WSL \u5185\u6838\u7684\u66f4\u65b0\uff0c\u5e76\u63d0\u4f9b\u4e86\u591a\u4e2a\u9009\u9879\uff1a<\/p>\n

    \n
  1. wsl.exe --update \u7ba1\u7406\u5185\u6838\u7684\u66f4\u65b0\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u4efb\u4f55\u9009\u9879\uff0c\u901a\u8fc7\u8be5\u547d\u4ee4\u5c06\u5347\u7ea7\u5230\u6700\u65b0\u7684\u5185\u6838\u7248\u672c<\/li>\n
  2. wsl.exe --update --status \u67e5\u770b\u66f4\u65b0\u72b6\u6001\uff0c\u53ef\u663e\u793a WSL \u76ee\u524d\u4f7f\u7528\u7684\u5185\u6838\u7248\u672c\uff0c\u4ee5\u53ca\u6700\u540e\u4e00\u6b21\u66f4\u65b0\u7684\u65f6\u95f4<\/li>\n
  3. wsl.exe --update --rollback \u56de\u6eda\u5230\u4e0a\u4e00\u6b21\u4f7f\u7528\u7684 Linux \u5185\u6838\u7248\u672c<\/li>\n<\/ol>\n

    \u9664\u4e86\u4e0a\u8ff0\u7684\u66f4\u65b0\uff0cWindows 10 \u65b0\u7248\u5185\u6d4b\u7684 WSL \u8fd8\u589e\u52a0\u4e86\u5bf9 GPU \u8ba1\u7b97\u7684\u652f\u6301\uff0c\u8fd9\u610f\u5473\u7740 Linux \u4e8c\u8fdb\u5236\u6587\u4ef6\u53ef\u5229\u7528 GPU \u8d44\u6e90\u4ece\u800c\u5728 WSL \u4e2d\u8fd0\u884c\u8ba1\u7b97\u91cf\u66f4\u5927\u7684\u4efb\u52a1\uff0c\u8be6\u60c5\u67e5\u770b\u53d1\u5e03\u516c\u544a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u5728\u5c1a\u672a\u5f00\u542f WSL \u7684\u673a\u5668\u4e0a\u8fd0\u884cwsl.exe –install\u547d\u4ee4\u5c06\u4f1a\u542f\u7528 WSL \u53ef\u9009\u7ec4\u4ef6\u548c\u865a\u62df\u673a\u5e73\u53f0\u53ef […]<\/p>\n","protected":false},"author":1893,"featured_media":194965,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-194963","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/194963","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\/1893"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=194963"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/194963\/revisions"}],"predecessor-version":[{"id":195113,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/194963\/revisions\/195113"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/194965"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=194963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=194963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=194963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}