{"id":1072,"date":"2021-08-22T15:23:53","date_gmt":"2021-08-22T07:23:53","guid":{"rendered":"https:\/\/blog.humh.cn\/?p=1072"},"modified":"2021-08-22T15:29:17","modified_gmt":"2021-08-22T07:29:17","slug":"windows-wsl%e5%ad%90%e7%b3%bb%e7%bb%9f%e7%9a%84%e7%90%86%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/blog.humh.cn\/?p=1072","title":{"rendered":"Windows WSL\u5b50\u7cfb\u7edf\u7684\u7406\u89e3"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>\u4e3b\u8981\u603b\u7ed3\u4e0b\u5728\u4e0d\u65ad\u4f7f\u7528WSL\u8fc7\u7a0b\u4e2d\u6240\u7406\u89e3\u7684\u5185\u5bb9\u3002\u4e0b\u6587\u4e2d\u7684WSL\u7684\u76f8\u5173\u5185\u5bb9\uff0c\u5747\u4e3a\u672c\u4eba\u5728windows10\u4e2d\u642d\u5efaWSL Ubuntu\u5b9e\u8df5\u6240\u5f97\u3002<\/p><\/blockquote>\n\n\n\n<h2>WSL\u5b50\u7cfb\u7edf\u4e2d\u7528\u6237\u7ec4\u7684\u7406\u89e3<\/h2>\n\n\n\n<p>\u5728\u5927\u591a\u6570\u7528\u6237\u7cfb\u7edf\u4e2d\uff0c\u90fd\u5b58\u5728\u591a\u7528\u6237\u6743\u9650\u7ba1\u7406\uff0c\u5982Windows\u548cLinux\u3002\u65e5\u5e38\u6211\u4eec\u5728\u4f7f\u7528Windows\uff0c\u4e5f\u662f\u4f7f\u7528\u666e\u901a\u7528\u6237\u767b\u5f55\u64cd\u4f5c\uff0c\u6d89\u53ca\u7ba1\u7406\u5458\u6743\u9650\u7684\u4f1a\u989d\u5916\u201c\u901a\u8fc7\u7ba1\u7406\u5458\u8fd0\u884c\u201d\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u767b\u5f55\u666e\u901a\u7528\u6237\uff0c\u7136\u540e\u642d\u5efaWSL Ubuntu\u3002<\/p>\n\n\n\n<p>\u767b\u5f55WSL Ubuntu\uff0c\u9ed8\u8ba4root\u7528\u6237\uff0c\u6211\u539f\u672c\u60f3\u7684\u662f\u521b\u5efa\u4e00\u4e2a\u548cWindows\u4e2d\u76f8\u540c\u7684\u7528\u6237\u7ec4\u7ed3\u6784\uff0c\u8fd9\u6837\u5728\u4f7f\u7528WSL\uff0c\u5c31\u4f1a\u50cf\u4f7f\u7528Windows\u4e00\u6837\uff0c\u53ea\u4e0d\u8fc7\u6240\u6709\u64cd\u4f5c\u90fd\u7ecf\u8fc7\u547d\u4ee4\u884c\u5904\u7406\uff0c\u4fdd\u6301\u65e5\u5e38cmd\u7684\u4e60\u60ef\u3002<\/p>\n\n\n\n<p>\u5982\u6211\u65e5\u5e38\u901a\u8fc7\u201chuker\u201d\u7528\u6237\u767b\u5f55Windos\uff0c\u4e8e\u662f\u6211\u540c\u6837\u5728WSL\u4e2d\u521b\u5efahuker\u547d\u540d\u7684\u7528\u6237\u548c\u7ec4\uff0c\u7136\u540e\u6211\u60f3\u5c06Windows huker\u4e0b\u7684\u6587\u4ef6\u5939\u8f6f\u94fe\u5230WSL huker\u4e2d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img alt=\"\"\/><\/figure>\n\n\n\n<p>\u4f46\u53d1\u73b0\u65e0\u6cd5\u8f6f\u94fe\uff0c\u662f\u56e0\u4e3aWindows huker\u4e0b\u7684\u8d44\u6e90\u5728WSL\u4e2droot\u7528\u6237\u6743\u9650\uff0c\u539f\u6765WSL\u662f\u901a\u8fc7root\u5c06Windows\u4e2d\u7684\u8d44\u6e90\u6302\u8f7d\u81f3WSL\u5b50\u7cfb\u7edf\u4e0a\u7684\uff0c\u6240\u4ee5WSL huker\u81ea\u7136\u6ca1\u6709\u6743\u9650\u8bbf\u95eeroot\u6743\u9650\u7684\u8d44\u6e90\u3002<\/p>\n\n\n\n<p>\u4ed4\u7ec6\u60f3\u4e00\u60f3\uff0c\u6b63\u786e\u7684WSL\u7528\u6237\u7ec4\u548c\u5bbf\u4e3b\u673aWindows\u7684\u5173\u7cfb\u5e94\u8be5\u662f\uff0cWSL\u7684root\u5c31\u7b49\u540c\u4e8eWindows\u521b\u5efaWSL\u65f6\u6240\u7528\u7684\u7528\u6237\uff0c\u5373\u8fd9\u91cc\u7684huker\uff0c\u800cWSL\u4e2d\u7684huker\u662f\u66f4\u4e0b\u7ea7\u7684\u7528\u6237\u3002\u6574\u4f53\u5173\u7cfb\u5373\u201cWindows huker\u201d = \u201cWSL root\u201d > \u201cWSL huker\u201d\u3002\u6240\u4ee5\u65e5\u5e38\u64cd\u4f5cWindows\u5f53\u524d\u7528\u6237\u4e0b\u7684\u8d44\u6e90\uff0c\u76f4\u63a5\u4f7f\u7528WSL root\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3b\u8981\u603b\u7ed3\u4e0b\u5728\u4e0d\u65ad\u4f7f\u7528WSL\u8fc7\u7a0b\u4e2d\u6240\u7406\u89e3\u7684\u5185\u5bb9\u3002\u4e0b\u6587\u4e2d\u7684WSL\u7684\u76f8\u5173\u5185\u5bb9\uff0c\u5747\u4e3a\u672c\u4eba\u5728windows10\u4e2d\u642d\u5efaWS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[68,70,124],"_links":{"self":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/1072"}],"collection":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1072"}],"version-history":[{"count":5,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/1072\/revisions"}],"predecessor-version":[{"id":1077,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/1072\/revisions\/1077"}],"wp:attachment":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}