{"id":184000,"date":"2020-10-29T11:10:19","date_gmt":"2020-10-29T03:10:19","guid":{"rendered":"http:\/\/4563.org\/?p=184000"},"modified":"2020-10-29T11:10:19","modified_gmt":"2020-10-29T03:10:19","slug":"%e8%af%b7%e6%95%99%e4%b8%80%e4%b8%8b%ef%bc%8c-windows-%e4%b8%8b%e9%9d%a2%e7%9a%84-wsl1-%e5%92%8c-wsl2-%e5%8c%ba%e5%88%ab%e5%a4%a7%e4%b9%88%ef%bc%9f%e7%89%88%e6%9c%ac%e4%b8%8d%e5%a4%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=184000","title":{"rendered":"\u8bf7\u6559\u4e00\u4e0b\uff0c windows \u4e0b\u9762\u7684 WSL1 \u548c WSL2 \u533a\u522b\u5927\u4e48\uff1f\u7248\u672c\u4e0d\u591f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u4e00\u4e0b\uff0c windows \u4e0b\u9762\u7684 WSL1 \u548c WSL2 \u533a\u522b\u5927\u4e48\uff1f\u7248\u672c\u4e0d\u591f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yazoox <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u624d\u53d1\u73b0\uff0cOS \u662f win10 LTSC \u7684\uff0c\u7248\u672c\u662f 1809 17763 \u3002\u8fd9\u4e2a\u597d\u50cf\u4e0d\u80fd\u5b89\u88c5 WSL2.<\/p>\n<p>\u548b\u6574\uff1f\u8c8c\u4f3c LTSC \u6ca1\u6709\u66f4\u65b0\u7684\u7248\u672c\u4e86\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48 \u5b89\u88c5 WSL\uff0c\u55ef&#8230;\u56e0\u4e3a\u9879\u76ee\uff08 nodejs \u7684\u524d\u7aef\uff09\uff0c\u5728 windows \u4e0b\u9762\uff0cjest \u7684\u6d4b\u8bd5\uff0c\u8dd1\u4e0d\u5b8c\u5168\uff0c\u4f1a fail \u5728 EPIPE\uff0c\u4e00\u76f4\u89e3\u51b3\u4e0d\u4e86\u3002\u4f46\u662f\u5728 linux \u673a\u5668\u4e0a\u9762\u6ca1\u95ee\u9898\u3002\u6240\u4ee5\uff0c\u60f3\u6574\u4e2a linux \u8dd1 unit test\uff0c\u65b9\u4fbf\u67e5\u770b code coverage<\/p>\n<p>\u60f3\u8bf7\u6559\u4e00\u4e0b\u4f7f\u7528\u8fc7 wsl \u7684\u5144\u5f1f\u59d0\u59b9\u4eec\uff0c\u8fd9\u4e2a\u7248\u672c 1 \u548c 2 \u5dee\u522b\u5927\u4e48\uff1f\u6216\u8005\u8fd8\u6709\u5176\u5b83\u65b9\u6cd5\u4e48\uff1f\u76f4\u63a5 windows \u4e0b\u9762\u5b89\u88c5\u4e00\u4e2a docker \uff1f\u7136\u540e\u8dd1 docker image?<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3966542\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             WSL 1 \u548c 2 \u5dee\u522b\u5f88\u5927\u3002<br \/>1 \u662f\u4e00\u4e2a\u771f\u7684\u5b50\u7cfb\u7edf\uff0c\u5728 NT \u5185\u6838\u4e0b\u5b9e\u73b0\u4e86 Linux \u7684 systemcall\uff0c\u53ea\u662f\u4e2a\u201c\u770b\u8d77\u6765\u50cf Linux \u7684\u5b50\u7cfb\u7edf\u201d\u3002<br \/>2 \u662f\u7528\u865a\u62df\u673a\u8dd1\u4e00\u4e2a\u7cbe\u7b80\u8fc7\u7684 Linux \u5185\u6838\uff0c\u662f\u771f\u7684 Linux \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3966543\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SenLief <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             LTSC \u5e94\u8be5\u662f\u5b89\u88c5\u4e0d\u4e86 WSL2 \u7684\u3002\u9700\u8981\u8f6c\u6362\u6210\u4e13\u4e1a\u7248\u624d\u884c\u3002<\/p>\n<p>\u4e0a\u8bf4\u4e86\uff0cWSL2 \u5c31\u662f\u4e2a\u865a\u62df\u673a\u3002\u6240\u4ee5\u4e0d\u5982\u76f4\u63a5 vbox \u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3966544\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hez2010 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @SenLief vbox \u6ca1\u6cd5\u505a\u5230 Linux \u548c Windows \u7684\u4e92\u64cd\u4f5c\u3002\u6bd4\u5982\u5728 Linux \u5185\u76f4\u63a5\u8c03\u7528\u542f\u52a8 Windows \u91cc\u7684\u7a0b\u5e8f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3966545\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SenLief <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hez2010 \u989d\uff0c\u8fd9\u4e2a\u9700\u6c42\u53ef\u80fd\u65e0\u6cd5\u5b8c\u6210\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3966546\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wty <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             wsl1 \u9609\u5272\u4e86 nanosleep\uff0c\u65b0\u7248\u672c\u7684 Linux \u4f1a\u6709\u4e00\u5806\u7a0b\u5e8f\u7206\u70b8\u3002\u6211\u73b0\u5728\u5168\u7528 wsl2 \u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3966547\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mmdsun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             wsl 2 \u6bd4\u865a\u62df\u673a\u5feb\u591a\u4e86 \u5b8c\u5168\u611f\u89c9\u4e0d\u5230\u662f\u865a\u62df\u673a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u4e00\u4e0b\uff0c windows \u4e0b\u9762\u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/184000"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=184000"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/184000\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=184000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=184000"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=184000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}