{"id":396935,"date":"2021-03-17T06:20:45","date_gmt":"2021-03-16T22:20:45","guid":{"rendered":"http:\/\/4563.org\/?p=396935"},"modified":"2021-03-17T06:20:45","modified_gmt":"2021-03-16T22:20:45","slug":"%e8%af%b7%e9%97%ae%e4%b8%80%e4%b8%8b%e5%86%85%e5%ad%98%e7%9a%84%e9%80%9f%e5%ba%a6%e5%92%8c%e5%ae%b9%e9%87%8f%e4%bd%bf%e7%94%a8%e7%8e%87%e6%9c%89%e7%9b%b4%e6%8e%a5%e5%85%b3%e7%b3%bb%e5%90%97","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=396935","title":{"rendered":"\u8bf7\u95ee\u4e00\u4e0b\u5185\u5b58\u7684\u901f\u5ea6\u548c\u5bb9\u91cf\u4f7f\u7528\u7387\u6709\u76f4\u63a5\u5173\u7cfb\u5417"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u95ee\u4e00\u4e0b\u5185\u5b58\u7684\u901f\u5ea6\u548c\u5bb9\u91cf\u4f7f\u7528\u7387\u6709\u76f4\u63a5\u5173\u7cfb\u5417               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MengiNo <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u8feb\u4e8e\u5f53\u4e0b\u5fc5\u987b\u8981\u6362\u7535\u8111\uff0c\u9274\u4e8e M1 \u76ee\u524d\u8fd8\u4e0d\u592a\u7a33\u5b9a\u7684\u5f62\u52bf\uff08\u7279\u522b\u662f\u65e0\u98ce\u6247 \u4f1a\u4e0d\u4f1a\u50cf\u4e4b\u524d MacBook \u4e00\u6837\u540e\u7eed\u7a7a\u710a\u8fd8\u4e0d\u662f\u5f88\u786e\u5b9a\uff09\uff0c\u672c\u6765\u53ea\u60f3\u5165\u624b Air 8 + 256 \u4e10\u4e2d\u4e10\u7248\uff0c\u7b97\u662f\u6b62\u635f\u3002\u4f46\u662f\u4e3a\u4e86\u907f\u514d\u91cd\u8e48 8G \u8986\u8f99\u8fd8\u662f\u5f88\u5728\u610f\u5185\u5b58\u7684\u95ee\u9898\u3002<\/p>\n<p>\u6bd4\u5982 docker \uff08\u8fd9\u91cc\u7279\u6307 docker desktop \uff09\u6216\u8005 \u4f20\u7edf\u865a\u62df\u673a\uff0c \u6211\u8bbe\u7f6e\u7ed9\u4ed6 4g \u5185\u5b58\uff0c\u5728\u6211\u7684\u7406\u89e3\u4e2d\uff0c\u8fd9\u4e2a\u8fdb\u7a0b\u53ea\u8981\u5f00\u7740\uff0c\u65e0\u8bba\u7528\u4e0d\u7528\u76f4\u63a5\u5c31\u5403\u6389 4g \u5185\u5b58\uff0c\u800c\u4e14\u4f5c\u4e3a\u4e00\u4e2a\u670d\u52a1\u5e38\u9a7b\u4e0b\u6765\uff0c\u9664\u975e\u4f60\u5173\u6389\u5426\u5219\u4ed6\u4e0d\u4f1a\u91ca\u653e\u3002\u6211\u4eec\u6309 8G \u5185\u5b58\u7684 M1 Mac \u4e3a\u4f8b\uff0c\u8fd9\u4e0d\u76f4\u63a5 \u5f00\u673a\u4e00\u4e2a docker\uff0c\u5185\u5b58\u5168\u9760 swap \uff1f<\/p>\n<p>\u5982\u679c\u8bf4\u662f\u9891\u7e41\u8dd1\u666e\u901a\u7684\u4e00\u6b21\u6027\u811a\u672c\u6216\u8005\u5176\u4ed6\u670d\u52a1\u53ef\u4ee5\u8bf4\u501f\u52a9\u6240\u8c13\u7edf\u4e00\u5185\u5b58\uff0c\u7b97\u7684\u5feb\u7b97\u5b8c\u5c31\u628a\u5185\u5b58\u91ca\u653e\u51fa\u6765\u8ba9\u5185\u5b58\u770b\u8d77\u6765\u6ca1\u90a3\u4e48\u5403\u7d27\uff0c\u8fd8\u6709\u70b9\u9053\u7406\u3002 \u8fd9\u79cd\u5927\u5f00\u9500\u7684\u5e38\u9a7b\u8fdb\u7a0b\u4f1a\u56e0\u4e3a\u7edf\u4e00\u5185\u5b58\u901f\u5ea6\u52a0\u5feb\u800c\u8d77\u5230\u4ec0\u4e48\u6548\u679c\u5462\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5536700\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 1qazse77 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             windows \u4e0a VM \u865a\u62df\u673a\u597d\u50cf\u662f\u53ef\u4ee5\u5171\u4eab\u5185\u5b58\u7684\uff0c\u8bbe\u7f6e\u7684 4G \u5185\u5b58\u662f\u6307\u865a\u62df\u673a\u6700\u5927\u80fd\u7528\u5185\u5b58\uff0c\u8981\u662f\u7535\u8111 8G \u5185\u5b58\uff0c\u865a\u62df\u673a\u7528 2G \u5176\u4ed6\u8f6f\u4ef6\u7528 6G \u662f\u53ef\u4ee5\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5536701\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : MengiNo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @1qazse77 \u4f46\u662f Windows \u7684 Linux \u5b50\u7cfb\u7edf\u4e0b\u7684\u8868\u73b0\u4e5f\u4e0d\u4f73\uff0c\u53cd\u800c\u4f1a\u5403\u6389\u7535\u8111\u6240\u6709\u7684\u5269\u4f59\u5185\u5b58\u628a Windows \u997f\u6b7b\uff0c\u867d\u7136\u6709 .wslconfig \u53ef\u4ee5\u8fdb\u884c\u9650\u5236\uff0c\u4f46\u662f\u9650\u5236\u540e\u7684\u8868\u73b0\u8fd8\u662f\u548c docker desktop \u60c5\u51b5\u7c7b\u4f3c\uff0c\u53ea\u8981\u8fdb\u7a0b\u4e0d\u5173\u5185\u5b58\u6c38\u8fdc\u5403\u7740\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5536702\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : secondwtq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4f60\u8bf4\u7684\u662f\u4ec0\u4e48\u6837\u7684\u865a\u62df\u673a\uff0c\u6bd4\u5982\u6211\u5728 Linux \u4e0b\u9762\u7528 KVM \u8dd1 Linux \u865a\u62df\u673a\uff0c\u597d\u50cf\u5c31\u53ef\u4ee5\u865a\u62df\u673a\u5b9e\u9645\u7528\u591a\u5c11\u5185\u5b58\u5728\u4e3b\u673a\u5206\u914d\u591a\u5c11\u5185\u5b58\uff0c\u800c\u4e0d\u662f\u76f4\u63a5\u628a\u8bbe\u5b9a\u7684\u5185\u5b58\u9650\u989d\u4e00\u68ad\u5b50\u5168\u90fd\u5206\u914d\u7ed9\u865a\u62df\u673a\u3002\u4f46\u662f\u8dd1 Windows \u865a\u62df\u673a\u8c8c\u4f3c\u5c31\u4e0d\u884c\uff0c\u5e94\u8be5\u662f\u8981\u5185\u6838\u652f\u6301\u3002<br \/>\u6240\u8c13\u7edf\u4e00\u5185\u5b58\u6211\u4e2a\u4eba\u611f\u89c9\u4e3b\u8981\u662f\u5728\u4f7f\u7528\u52a0\u901f\u5668\u7684\u60c5\u51b5\u4e0b\uff0c\u63d0\u5347\u4e86\u5185\u5b58\u7684\u4f7f\u7528\u6548\u7387\uff08 Apple \u4f20\u7edf\u827a\u80fd\uff0c\u544a\u8bc9\u4f60\u5f88\u725b\u903c\uff0c\u4e0d\u544a\u8bc9\u4f60\u600e\u4e48\u725b\u903c\uff09\u3002\u4e3b\u8fd9\u4e2a\u573a\u666f\u770b\u8d77\u6765\u4e0d\u6d89\u53ca\u52a0\u901f\u5668\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5536703\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ch2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @MengiNo \u4f60\u8bf4\u7684\u90a3\u90fd\u662f\u5f88\u4e45\u4e4b\u524d\u7684\u4e8b\u4e86\uff0c\u73b0\u5728 WSL2 \u5185\u5b58\u56de\u6536\u5f88\u9760\u8c31\u7684\uff0c\u800c\u4e14\u53ef\u4ee5 config \u914d\u7f6e\u5b50\u7cfb\u7edf\u5360\u7528\u7684\u6700\u9ad8\u5185\u5b58\uff0cWSL2 \u7684 Docker \u5f88\u9760\u8c31                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u95ee\u4e00\u4e0b\u5185\u5b58\u7684\u901f\u5ea6\u548c\u5bb9\u91cf\u4f7f\u7528\u7387\u6709\u76f4&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\/396935"}],"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=396935"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/396935\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=396935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=396935"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=396935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}