{"id":80049,"date":"2026-03-04T08:17:13","date_gmt":"2026-03-04T00:17:13","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/80049.html"},"modified":"2026-03-04T08:17:13","modified_gmt":"2026-03-04T00:17:13","slug":"windows%e4%b8%8b%e7%8e%a9%e8%bd%acemqx%ef%bc%9a%e7%94%a8wsl2docker%e6%90%ad%e5%bb%ba%e7%89%a9%e8%81%94%e7%bd%91%e6%b6%88%e6%81%af%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e9%81%bf%e5%9d%91%e7%89%88","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/80049.html","title":{"rendered":"Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09"},"content":{"rendered":"<h2>Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09<\/h2>\n<p>\u4f5c\u4e3a\u4e00\u540d\u5728Windows\u4e0a\u6478\u722c\u6eda\u6253\u591a\u5e74\u7684\u5f00\u53d1\u8005\uff0c\u6211\u6df1\u77e5\u5728\u672c\u5730\u642d\u5efa\u4e00\u4e2a\u201c\u50cf\u6837\u201d\u7684\u7269\u8054\u7f51\u6d4b\u8bd5\u73af\u5883\u6709\u591a\u9ebb\u70e6\u3002\u4f60\u60f3\u5feb\u901f\u9a8c\u8bc1\u4e00\u4e2aMQTT\u5ba2\u6237\u7aef\uff0c\u6216\u8005\u6d4b\u8bd5\u4e00\u4e0b\u8bbe\u5907\u4e0a\u62a5\u6570\u636e\u7684\u6d41\u7a0b\uff0c\u7ed3\u679c\u53d1\u73b0\u5b98\u65b9\u6587\u6863\u8f7b\u98d8\u98d8\u4e00\u53e5\u201c\u751f\u4ea7\u73af\u5883\u4e0d\u63a8\u8350Windows\u201d\uff0c\u5c31\u628a\u4f60\u6253\u53d1\u4e86\u3002\u865a\u62df\u673a\u592a\u91cd\uff0c\u53cc\u7cfb\u7edf\u592a\u6298\u817e\uff0c\u76f4\u63a5\u5728Windows\u4e0a\u8dd1Docker Desktop\u53c8\u603b\u89c9\u5f97\u54ea\u91cc\u4e0d\u5bf9\u52b2\uff0c\u7f51\u7edc\u914d\u7f6e\u3001\u6587\u4ef6\u8def\u5f84\u3001\u6027\u80fd\u635f\u8017\uff0c\u5904\u5904\u662f\u5751\u3002<\/p>\n<p>\u5176\u5b9e\uff0c\u5bf9\u4e8e\u7edd\u5927\u591a\u6570Windows\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u6211\u4eec\u9700\u8981\u7684\u53ea\u662f\u4e00\u4e2a\u8f7b\u91cf\u3001\u7a33\u5b9a\u3001\u4e14\u4e0e\u751f\u4ea7\u73af\u5883\u9ad8\u5ea6\u4e00\u81f4\u7684\u672c\u5730\u6d4b\u8bd5\u670d\u52a1\u5668\u3002\u7ecf\u8fc7\u65e0\u6570\u6b21\u8e29\u5751\u548c\u5c1d\u8bd5\uff0c\u6211\u53d1\u73b0WSL2\uff08Windows Subsystem for Linux 2\uff09\u914d\u5408Docker\uff0c\u662f\u76ee\u524dWindows\u5e73\u53f0\u4e0a\u642d\u5efaEMQX\u8fd9\u7c7b\u670d\u52a1\u7684\u6700\u4f73\u5e73\u8861\u70b9\u3002\u5b83\u65e2\u4fdd\u7559\u4e86Linux\u5185\u6838\u7684\u539f\u751f\u517c\u5bb9\u6027\uff0c\u53c8\u80fd\u65e0\u7f1d\u878d\u5165Windows\u7684\u65e5\u5e38\u5de5\u4f5c\u6d41\u3002\u4eca\u5929\uff0c\u6211\u5c31\u628a\u81ea\u5df1\u8d9f\u8fc7\u7684\u8def\u3001\u586b\u8fc7\u7684\u5751\uff0c\u4ee5\u53ca\u4e00\u4e9b\u80fd\u6781\u5927\u63d0\u5347\u6548\u7387\u7684\u914d\u7f6e\u6280\u5de7\uff0c\u6574\u7406\u6210\u8fd9\u4efd\u201c\u907f\u5751\u6307\u5357\u201d\u3002\u65e0\u8bba\u4f60\u662f\u7269\u8054\u7f51\u65b0\u624b\uff0c\u8fd8\u662f\u60f3\u4f18\u5316\u73b0\u6709\u672c\u5730\u5f00\u53d1\u6d41\u7a0b\u7684\u8001\u624b\uff0c\u8fd9\u7bc7\u6587\u7ae0\u90fd\u80fd\u5e2e\u4f60\u5feb\u901f\u5728Windows\u4e0a\u6784\u5efa\u4e00\u4e2a\u5f97\u5fc3\u5e94\u624b\u7684MQTT\u6d88\u606f\u670d\u52a1\u5668\u3002<\/p>\n<h3>1. \u73af\u5883\u51c6\u5907\uff1a\u6253\u9020\u575a\u5b9e\u7684WSL2+Docker\u57fa\u7840<\/h3>\n<p>\u5728\u5f00\u59cb\u5b89\u88c5EMQX\u4e4b\u524d\uff0c\u6211\u4eec\u5fc5\u987b\u786e\u4fddWSL2\u548cDocker\u7684\u57fa\u77f3\u8db3\u591f\u7a33\u56fa\u3002\u5f88\u591a\u540e\u7eed\u7684\u201c\u7384\u5b66\u201d\u95ee\u9898\uff0c\u6839\u6e90\u90fd\u51fa\u5728\u57fa\u7840\u73af\u5883\u914d\u7f6e\u4e0a\u3002<\/p>\n<h4>1.1 \u542f\u7528\u5e76\u4f18\u5316WSL2<\/h4>\n<p>\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684Windows 10\u7248\u672c\u57282004\u53ca\u4ee5\u4e0a\uff0c\u6216Windows 11\u3002\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u6253\u5f00PowerShell\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u542f\u7528WSL\u548c\u865a\u62df\u673a\u5e73\u53f0\u529f\u80fd\uff1a<\/p>\n<p># \u542f\u7528WSL\u529f\u80fd<br \/>\ndism.exe \/online \/enable-feature \/featurename:Microsoft-Windows-Subsystem-Linux \/all \/norestart<\/p>\n<p># \u542f\u7528\u865a\u62df\u673a\u5e73\u53f0\u529f\u80fd\uff08\u8fd9\u662fWSL2\u7684\u6838\u5fc3\uff09<br \/>\ndism.exe \/online \/enable-feature \/featurename:VirtualMachinePlatform \/all \/norestart<\/p>\n<p>\u6267\u884c\u5b8c\u6210\u540e\uff0c\u52a1\u5fc5\u91cd\u542f\u8ba1\u7b97\u673a\u3002\u91cd\u542f\u540e\uff0c\u5c06WSL2\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u7248\u672c\uff1a<\/p>\n<p>wsl &#8211;set-default-version 2<\/p>\n<p>\u63a5\u4e0b\u6765\u662f\u9009\u62e9\u5e76\u5b89\u88c5Linux\u53d1\u884c\u7248\u3002\u6211\u5f3a\u70c8\u63a8\u8350\u4f7f\u7528Ubuntu 22.04 LTS\uff0c\u5b83\u5728\u8f6f\u4ef6\u5305\u517c\u5bb9\u6027\u548c\u793e\u533a\u652f\u6301\u65b9\u9762\u90fd\u8868\u73b0\u6700\u4f73\u3002\u4eceMicrosoft Store\u641c\u7d22\u201cUbuntu 22.04 LTS\u201d\u5e76\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9996\u6b21\u542f\u52a8\u4f1a\u8981\u6c42\u4f60\u8bbe\u7f6e\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/p>\n<p>\u63d0\u793a\uff1a\u4e3aWSL\u8bbe\u7f6e\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u662f\u72ec\u7acb\u7684\uff0c\u4e0eWindows\u8d26\u6237\u65e0\u5173\u3002\u5efa\u8bae\u5bc6\u7801\u4e0d\u8981\u8bbe\u7f6e\u5f97\u592a\u590d\u6742\uff0c\u56e0\u4e3a\u540e\u7eed\u5728\u547d\u4ee4\u884c\u4e2d\u64cd\u4f5c\u65f6\u4f1a\u9891\u7e41\u4f7f\u7528\u3002<\/p>\n<p>\u5b89\u88c5\u597d\u53d1\u884c\u7248\u540e\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u5bf9WSL2\u8fdb\u884c\u4e00\u4e9b\u5173\u952e\u4f18\u5316\uff0c\u8fd9\u5bf9\u540e\u7eed\u8fd0\u884cDocker\u5bb9\u5668\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<li>\n<p>\u5185\u5b58\u4e0eCPU\u9650\u5236\uff1a\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cWSL2\u4f1a\u8d2a\u5a6a\u5730\u5360\u7528\u5927\u91cf\u4e3b\u673a\u5185\u5b58\u3002\u6211\u4eec\u9700\u8981\u5728\u7528\u6237\u76ee\u5f55\uff08C:\\\\Users\\\\&lt;\u4f60\u7684\u7528\u6237\u540d&gt;\\\\\uff09\u4e0b\u521b\u5efa\u6216\u4fee\u6539\u4e00\u4e2a\u540d\u4e3a .wslconfig \u7684\u6587\u672c\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p> [wsl2]<br \/>\nmemory=4GB   # \u9650\u5236WSL2\u6700\u5927\u4f7f\u75284GB\u5185\u5b58\uff0c\u6839\u636e\u4f60\u4e3b\u673a\u5185\u5b58\u8c03\u6574<br \/>\nprocessors=4 # \u9650\u5236\u4f7f\u75284\u4e2aCPU\u6838\u5fc3<br \/>\nswap=2GB     # \u8bbe\u7f6e\u4ea4\u6362\u7a7a\u95f4\u5927\u5c0f<br \/>\nlocalhostForwarding=true # \u786e\u4fddlocalhost\u8f6c\u53d1\u6b63\u5e38\u5de5\u4f5c<\/p>\n<p>\u4fdd\u5b58\u540e\uff0c\u5728PowerShell\u4e2d\u6267\u884c wsl &#8211;shutdown \u5173\u95edWSL\uff0c\u518d\u91cd\u65b0\u542f\u52a8Ubuntu\uff0c\u914d\u7f6e\u5373\u53ef\u751f\u6548\u3002<\/p>\n<\/li>\n<li>\n<p>\u78c1\u76d8\u6027\u80fd\uff1a\u907f\u514d\u5c06\u9879\u76ee\u6587\u4ef6\u653e\u5728Windows\u7684 \/mnt\/c\/ \u7b49\u6302\u8f7d\u76d8\u4e0b\u8fdb\u884c\u9891\u7e41\u7684IO\u64cd\u4f5c\uff0c\u8fd9\u4f1a\u6709\u663e\u8457\u7684\u6027\u80fd\u635f\u5931\u3002\u5efa\u8bae\u5728WSL\u5185\u90e8\u7684Linux\u6587\u4ef6\u7cfb\u7edf\uff08\u5982 \/home\/yourname\/projects\uff09\u4e2d\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<h4>1.2 \u5728WSL2\u4e2d\u5b89\u88c5Docker\u5f15\u64ce<\/h4>\n<p>\u8fd9\u91cc\u6709\u4e00\u4e2a\u5173\u952e\u51b3\u7b56\u70b9\uff1a\u662f\u4f7f\u7528Docker Desktop for Windows\uff0c\u8fd8\u662f\u76f4\u63a5\u5728WSL2\u5185\u90e8\u5b89\u88c5Docker Engine\uff1f\u6211\u63a8\u8350\u540e\u8005\u3002<\/p>\n<p>Docker Desktop\u867d\u7136\u65b9\u4fbf\uff0c\u4f46\u5b83\u662f\u4e00\u4e2a\u8fd0\u884c\u5728Windows\u4e0a\u7684\u5e9e\u7136\u5927\u7269\uff0c\u901a\u8fc7Hyper-V\u4e0eWSL2\u540e\u7aef\u901a\u4fe1\uff0c\u6709\u65f6\u4f1a\u5e26\u6765\u4e0d\u5fc5\u8981\u7684\u590d\u6742\u6027\u548c\u8d44\u6e90\u5f00\u9500\u3002\u800c\u5728WSL2\u5185\u90e8\u5b89\u88c5\u539f\u751f\u7684Docker Engine\uff0c\u4f53\u9a8c\u66f4\u63a5\u8fd1\u7eaf\u7cb9\u7684Linux\u670d\u52a1\u5668\uff0c\u4e5f\u66f4\u8f7b\u91cf\u3002<\/p>\n<p>\u5728Ubuntu\u7ec8\u7aef\u4e2d\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Docker\uff1a<\/p>\n<p># \u66f4\u65b0\u8f6f\u4ef6\u5305\u7d22\u5f15<br \/>\nsudo apt-get update<\/p>\n<p># \u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u5305\uff0c\u5141\u8bb8apt\u901a\u8fc7HTTPS\u4f7f\u7528\u4ed3\u5e93<br \/>\nsudo apt<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09<br \/>\n\u4f5c\u4e3a\u4e00\u540d\u5728Windows\u4e0a\u6478\u722c\u6eda\u6253\u591a\u5e74\u7684\u5f00\u53d1\u8005\uff0c\u6211\u6df1\u77e5\u5728\u672c\u5730\u642d\u5efa\u4e00\u4e2a\u201c\u50cf\u6837\u201d\u7684\u7269\u8054\u7f51\u6d4b\u8bd5\u73af\u5883\u6709\u591a\u9ebb\u70e6\u3002\u4f60\u60f3\u5feb\u901f\u9a8c\u8bc1\u4e00\u4e2aMQTT\u5ba2\u6237\u7aef\uff0c\u6216\u8005\u6d4b\u8bd5\u4e00\u4e0b\u8bbe\u5907\u4e0a\u62a5\u6570\u636e\u7684\u6d41\u7a0b\uff0c\u7ed3\u679c\u53d1\u73b0\u5b98\u65b9\u6587\u6863\u8f7b\u98d8\u98d8\u4e00\u53e5\u201c\u751f\u4ea7\u73af\u5883\u4e0d\u63a8\u8350Windows\u201d\uff0c\u5c31\u628a\u4f60\u6253\u53d1\u4e86\u3002\u865a\u62df\u673a\u592a\u91cd\uff0c\u53cc\u7cfb\u7edf\u592a\u6298\u817e\uff0c\u76f4\u63a5\u5728Windows\u4e0a\u8dd1Docker Desktop\u53c8\u603b\u89c9\u5f97\u54ea\u91cc\u4e0d\u5bf9\u52b2\uff0c\u7f51\u7edc\u914d\u7f6e\u3001\u6587\u4ef6\u8def\u5f84\u3001\u6027\u80fd\u635f\u8017\uff0c\u5904\u5904\u662f\u5751\u3002<br \/>\n\u5176\u5b9e\uff0c\u5bf9\u4e8e<\/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":[8969,27,714,320],"topic":[],"class_list":["post-80049","post","type-post","status-publish","format-standard","hentry","category-server","tag-wsl2","tag-docker","tag-emqx","tag-mqtt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09 - \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\/80049.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09 \u4f5c\u4e3a\u4e00\u540d\u5728Windows\u4e0a\u6478\u722c\u6eda\u6253\u591a\u5e74\u7684\u5f00\u53d1\u8005\uff0c\u6211\u6df1\u77e5\u5728\u672c\u5730\u642d\u5efa\u4e00\u4e2a\u201c\u50cf\u6837\u201d\u7684\u7269\u8054\u7f51\u6d4b\u8bd5\u73af\u5883\u6709\u591a\u9ebb\u70e6\u3002\u4f60\u60f3\u5feb\u901f\u9a8c\u8bc1\u4e00\u4e2aMQTT\u5ba2\u6237\u7aef\uff0c\u6216\u8005\u6d4b\u8bd5\u4e00\u4e0b\u8bbe\u5907\u4e0a\u62a5\u6570\u636e\u7684\u6d41\u7a0b\uff0c\u7ed3\u679c\u53d1\u73b0\u5b98\u65b9\u6587\u6863\u8f7b\u98d8\u98d8\u4e00\u53e5\u201c\u751f\u4ea7\u73af\u5883\u4e0d\u63a8\u8350Windows\u201d\uff0c\u5c31\u628a\u4f60\u6253\u53d1\u4e86\u3002\u865a\u62df\u673a\u592a\u91cd\uff0c\u53cc\u7cfb\u7edf\u592a\u6298\u817e\uff0c\u76f4\u63a5\u5728Windows\u4e0a\u8dd1Docker Desktop\u53c8\u603b\u89c9\u5f97\u54ea\u91cc\u4e0d\u5bf9\u52b2\uff0c\u7f51\u7edc\u914d\u7f6e\u3001\u6587\u4ef6\u8def\u5f84\u3001\u6027\u80fd\u635f\u8017\uff0c\u5904\u5904\u662f\u5751\u3002 \u5176\u5b9e\uff0c\u5bf9\u4e8e\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/80049.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-04T00:17:13+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\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80049.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/80049.html\",\"name\":\"Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-04T00:17:13+00:00\",\"dateModified\":\"2026-03-04T00:17:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/80049.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/80049.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80049.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09\"}]},{\"@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":"Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09 - \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\/80049.html","og_locale":"zh_CN","og_type":"article","og_title":"Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09 \u4f5c\u4e3a\u4e00\u540d\u5728Windows\u4e0a\u6478\u722c\u6eda\u6253\u591a\u5e74\u7684\u5f00\u53d1\u8005\uff0c\u6211\u6df1\u77e5\u5728\u672c\u5730\u642d\u5efa\u4e00\u4e2a\u201c\u50cf\u6837\u201d\u7684\u7269\u8054\u7f51\u6d4b\u8bd5\u73af\u5883\u6709\u591a\u9ebb\u70e6\u3002\u4f60\u60f3\u5feb\u901f\u9a8c\u8bc1\u4e00\u4e2aMQTT\u5ba2\u6237\u7aef\uff0c\u6216\u8005\u6d4b\u8bd5\u4e00\u4e0b\u8bbe\u5907\u4e0a\u62a5\u6570\u636e\u7684\u6d41\u7a0b\uff0c\u7ed3\u679c\u53d1\u73b0\u5b98\u65b9\u6587\u6863\u8f7b\u98d8\u98d8\u4e00\u53e5\u201c\u751f\u4ea7\u73af\u5883\u4e0d\u63a8\u8350Windows\u201d\uff0c\u5c31\u628a\u4f60\u6253\u53d1\u4e86\u3002\u865a\u62df\u673a\u592a\u91cd\uff0c\u53cc\u7cfb\u7edf\u592a\u6298\u817e\uff0c\u76f4\u63a5\u5728Windows\u4e0a\u8dd1Docker Desktop\u53c8\u603b\u89c9\u5f97\u54ea\u91cc\u4e0d\u5bf9\u52b2\uff0c\u7f51\u7edc\u914d\u7f6e\u3001\u6587\u4ef6\u8def\u5f84\u3001\u6027\u80fd\u635f\u8017\uff0c\u5904\u5904\u662f\u5751\u3002 \u5176\u5b9e\uff0c\u5bf9\u4e8e","og_url":"https:\/\/www.wsisp.com\/helps\/80049.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-04T00:17:13+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/80049.html","url":"https:\/\/www.wsisp.com\/helps\/80049.html","name":"Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-04T00:17:13+00:00","dateModified":"2026-03-04T00:17:13+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/80049.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/80049.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/80049.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Windows\u4e0b\u73a9\u8f6cEMQX\uff1a\u7528WSL2+Docker\u642d\u5efa\u7269\u8054\u7f51\u6d88\u606f\u670d\u52a1\u5668\uff08\u907f\u5751\u7248\uff09"}]},{"@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\/80049","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=80049"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80049\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=80049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=80049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=80049"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=80049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}