{"id":40917,"date":"2022-09-11T06:57:06","date_gmt":"2023-11-04T00:58:56","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/"},"modified":"2024-01-15T10:48:43","modified_gmt":"2024-01-15T02:48:43","slug":"%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/","title":{"rendered":"\u4f7f\u7528WSL2+Warden\u65b9\u5f0f\u642d\u5efaMagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55"},"content":{"rendered":"<h1>\u7b80\u8ff0<\/h1>\n<p>WSL2+Warden\u662f\u4e00\u79cd\u57282021\u5e743\u6708\u4e3aMagento2\u5efa\u7acb\u73af\u5883\u7684\u65b9\u6cd5\uff0c\u4e0b\u9762\u662f\u8be6\u7ec6\u5907\u5fd8\u5f55\u3002<\/p>\n<h1>\u7ae0\u8282\u5217\u8868<\/h1>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u57282021\u5e743\u6708\u65f6\uff08\u7248\u672c0.10.1\uff09\u5b89\u88c5WSL2<\/ol>\n<\/li>\n<\/ol>\n<p>\u5728\u5b89\u88c5Warden<\/p>\n<p>\u5728WSL2\u4e2d\u8fdb\u884c\u73af\u5883\u8bbe\u7f6e\u7684\u65b9\u6cd5\u3002<\/p>\n<h1>\u5b89\u88c5WSL2<\/h1>\n<p>WSL2\uff08Windows Subsystem for Linux 2\uff09\u662f\u4e00\u79cd\u5728Windows\u7cfb\u7edf\u5185\u8fd0\u884cLinux\u7684\u673a\u5236\u3002\uff08\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u8bf7\u53c2\u8003\u5fae\u8f6f\u7684\u6587\u6863\uff09<br \/>\n\u6309\u7167\u5fae\u8f6f\u6587\u6863\u4e2d\u63d0\u4f9b\u7684\u5b89\u88c5\u65b9\u6cd5\u8fdb\u884c\u64cd\u4f5c\uff0c\u5c31\u53ef\u4ee5\u5b89\u88c5wsl2\u3002<\/p>\n<h1>\u76d1\u72f1\u7ba1\u7406\u8005\u7684\u5b89\u88c5<\/h1>\n<p>Yamashita\u5148\u751f\u7684\u6587\u7ae0\u4eceWarden\u7684\u539f\u7406\u548c\u5b89\u88c5\u65b9\u6cd5\uff0c\u5230Magento2\u7684\u73af\u5883\u642d\u5efa\uff0c\u6e05\u695a\u5730\u89e3\u91ca\u4e86\uff08\u622a\u81f32020\u5e743\u6708\uff0c\u5728macOS\u4e0a\uff09\u7684\u5185\u5bb9\u3002<\/p>\n<h3>2021\u5e743\u6708\u65f6\uff08\u7248\u672c0.10.1\uff09\u7684WSL2\u73af\u5883\u8bbe\u7f6e\u65b9\u6cd5\u3002<\/h3>\n<p>1. \u5b89\u88c5Homebrew<\/p>\n<pre class=\"post-pre\"><code>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"\r\n<\/code><\/pre>\n<p>\u5b89\u88c5Warden\u5e76\u542f\u52a8\u5168\u7403\u670d\u52a1\u3002<\/p>\n<pre class=\"post-pre\"><code>brew install davidalger\/warden\/warden\r\nwarden svc up\r\n<\/code><\/pre>\n<p>\u8d77\u52d5\u6210\u529f\u540e\uff0c\u53ef\u901a\u8fc7\u4ee5\u4e0bURL\u8fdb\u884c\u786e\u8ba4\uff1a<br \/>\n&#8211; https:\/\/traefik.warden.test\/<br \/>\n&#8211; https:\/\/portainer.warden.test\/<br \/>\n&#8211; https:\/\/dnsmasq.warden.test\/<br \/>\n&#8211; https:\/\/mailhog.warden.test\/<\/p>\n<p>\u5982\u679c\u65e0\u6cd5\u8fde\u63a5\uff0c\u8bf7\u53c2\u8003\u9644\u5f553\u3002<\/p>\n<p>\u5728\u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>warden env-init [projectname] [environment type]\r\n<\/code><\/pre>\n<p>[projectname]\uff1a\u81ea\u7531\u5730\u53d6\u4e00\u4e2a\u9879\u76ee\u540d\u79f0\u3002<br \/>\n[environment type]\uff1a\u4ece\u6587\u4ef6\u4e2d\u9009\u62e9\u4e00\u4e2a\u7c7b\u578b\u3002\u7531\u4e8e\u6b64\u6b21\u662fMagento2\u7684\u5efa\u8bbe\uff0c\u6240\u4ee5\u9009\u62e9Magento2\u3002<\/p>\n<p>\u751f\u6210\u4e00\u4e2a\u540d\u4e3a.env\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u91cc\u53ef\u4ee5\u8bb0\u5f55\u9700\u8981\u66f4\u6539\u7684PHP\u7248\u672c\u7b49\u5185\u5bb9\u3002<\/p>\n<p>5. \u521b\u5efaSSL\u8bc1\u4e66<\/p>\n<pre class=\"post-pre\"><code>warden sign-certificate [projectname].test\r\n<\/code><\/pre>\n<p>6.\u542f\u52a8\u9879\u76ee\u7684\u73af\u5883<\/p>\n<pre class=\"post-pre\"><code>warden env up -d\r\n<\/code><\/pre>\n<p>\u8fdb\u51657.php-fpm\u5bb9\u5668<\/p>\n<pre class=\"post-pre\"><code>warden shell\r\n<\/code><\/pre>\n<p>\u8bf7\u4f7f\u7528Composer\u4e0b\u8f7dMagento2\u3002<\/p>\n<pre class=\"post-pre\"><code>META_PACKAGE=magento\/project-community-edition META_VERSION=2.4.x\r\n\r\ncomposer create-project --repository-url=https:\/\/repo.magento.com\/ \\\r\n    \"${META_PACKAGE}\" \/tmp\/exampleproject \"${META_VERSION}\"\r\n\r\nrsync -a \/tmp\/exampleproject\/ \/var\/www\/html\/\r\nrm -rf \/tmp\/exampleproject\/\r\n<\/code><\/pre>\n<p>\u5c06Magento\u7248\u672c\u5b89\u88c5\u5728META_VERSION=2.4.x\u4e0a\u3002<br \/>\n\uff08\u5148\u4e0b\u8f7d\u5230\/tmp\uff0c\u7136\u540e\u79fb\u52a8\u5230\/var\/www\/html\/\uff0c\u56e0\u4e3acreate-project\u65e0\u6cd5\u76f4\u63a5\u4e0b\u8f7d\u5230\u5f53\u524d\u76ee\u5f55\u3002\uff09<\/p>\n<p>\u5b89\u88c5Magento2\uff082.4.x\u7248\u672c\uff09<\/p>\n<pre class=\"post-pre\"><code>bin\/magento setup:install \\\r\n    --backend-frontname=backend \\\r\n    --amqp-host=rabbitmq \\\r\n    --amqp-port=5672 \\\r\n    --amqp-user=guest \\\r\n    --amqp-password=guest \\\r\n    --db-host=db \\\r\n    --db-name=magento \\\r\n    --db-user=magento \\\r\n    --db-password=magento \\\r\n    --search-engine=elasticsearch7 \\\r\n    --elasticsearch-host=elasticsearch \\\r\n    --elasticsearch-port=9200 \\\r\n    --elasticsearch-index-prefix=magento2 \\\r\n    --elasticsearch-enable-auth=0 \\\r\n    --elasticsearch-timeout=15 \\\r\n    --http-cache-hosts=varnish:80 \\\r\n    --session-save=redis \\\r\n    --session-save-redis-host=redis \\\r\n    --session-save-redis-port=6379 \\\r\n    --session-save-redis-db=2 \\\r\n    --session-save-redis-max-concurrency=20 \\\r\n    --cache-backend=redis \\\r\n    --cache-backend-redis-server=redis \\\r\n    --cache-backend-redis-db=0 \\\r\n    --cache-backend-redis-port=6379 \\\r\n    --page-cache=redis \\\r\n    --page-cache-redis-server=redis \\\r\n    --page-cache-redis-db=1 \\\r\n    --page-cache-redis-port=6379\r\n\r\n## Configure Application\r\nbin\/magento config:set --lock-env web\/unsecure\/base_url \\\r\n    \"https:\/\/${TRAEFIK_SUBDOMAIN}.${TRAEFIK_DOMAIN}\/\"\r\n\r\nbin\/magento config:set --lock-env web\/secure\/base_url \\\r\n    \"https:\/\/${TRAEFIK_SUBDOMAIN}.${TRAEFIK_DOMAIN}\/\"\r\n\r\nbin\/magento config:set --lock-env web\/secure\/offloader_header X-Forwarded-Proto\r\n\r\nbin\/magento config:set --lock-env web\/secure\/use_in_frontend 1\r\nbin\/magento config:set --lock-env web\/secure\/use_in_adminhtml 1\r\nbin\/magento config:set --lock-env web\/seo\/use_rewrites 1\r\n\r\nbin\/magento config:set --lock-env system\/full_page_cache\/caching_application 2\r\nbin\/magento config:set --lock-env system\/full_page_cache\/ttl 604800\r\n\r\nbin\/magento config:set --lock-env catalog\/search\/enable_eav_indexer 1\r\n\r\nbin\/magento config:set --lock-env dev\/static\/sign 0\r\n\r\nbin\/magento deploy:mode:set -s developer\r\nbin\/magento cache:disable block_html full_page\r\n\r\nbin\/magento indexer:reindex\r\nbin\/magento cache:flush\r\n<\/code><\/pre>\n<p>\u5982\u679c\u662f2.4.x\u7248\u672c\u4e4b\u524d\u7684\u60c5\u51b5\uff0c\u5219\u53ef\u4ee5\u7701\u7565\u4ee5\u4e0bElasticsearch\u53c2\u6570\u3002<\/p>\n<pre class=\"post-pre\"><code>--search-engine=elasticsearch7 \\\r\n--elasticsearch-host=elasticsearch \\\r\n--elasticsearch-port=9200 \\\r\n--elasticsearch-index-prefix=magento2 \\\r\n--elasticsearch-enable-auth=0 \\\r\n--elasticsearch-timeout=15 \\\r\n<\/code><\/pre>\n<p>\u6253\u51fa\u4ee5\u4e0b\u7684Elasticsearch\u914d\u7f6e\u547d\u4ee4\u6765\u4ee3\u66ff\u3002<\/p>\n<pre class=\"post-pre\"><code>bin\/magento config:set --lock-env catalog\/search\/elasticsearch7_server_hostname elasticsearch\r\nbin\/magento config:set --lock-env catalog\/search\/elasticsearch7_server_port 9200\r\nbin\/magento config:set --lock-env catalog\/search\/elasticsearch7_index_prefix magento2\r\nbin\/magento config:set --lock-env catalog\/search\/elasticsearch7_enable_auth 0\r\nbin\/magento config:set --lock-env catalog\/search\/elasticsearch7_server_timeout 15\r\n<\/code><\/pre>\n<p>Magento2\u7684\u5b89\u88c5\u5df2\u5b8c\u6210\u3002<\/p>\n<p>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0bURL\u8bbf\u95ee\u5e94\u7528\u7a0b\u5e8f\uff1a<br \/>\n&#8211; https:\/\/app.[projectname].test\/<br \/>\n&#8211; https:\/\/app.[projectname].test\/backend\/<br \/>\n&#8211; https:\/\/rabbitmq.[projectname].test\/<br \/>\n&#8211; https:\/\/elasticsearch.[projectname].test\/<\/p>\n<h3>\u586b\u88dc<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>warden\u7684Global Service\u7684\u542f\u52a8\u65b9\u6cd5\u57282021\u5e743\u6708\u5df2\u66f4\u6539\u4e3awarden svc up\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>warden sync start\u662f\u5728macOS\u4e0a\u4e14\u9700\u8981\u57280.3.0\u7248\u672c\u4ee5\u524d\u4f7f\u7528\u7684\u547d\u4ee4\u3002\uff08warden sync stop\u4e5f\u662f\u540c\u6837\uff09<br \/>\n\u6b63\u5982Warden\u6587\u6863\u4e2d\u6240\u8ff0\uff0c\u4f7f\u7528dnsmasq\u670d\u52a1\u8fdb\u884cDNS\u81ea\u52a8\u89e3\u6790\u9700\u8981\u901a\u8fc7\u672c\u5730\u7f51\u7edc\u8fdb\u884cDNS\u8bf7\u6c42\u3002<br \/>\nWindows\u7684\u8bbe\u7f6e\u65b9\u6cd5\u5728\u8fd9\u4e2a\u7f51\u7ad9\u4e0a\u6709\u6e05\u695a\u7684\u8bf4\u660e\u3002<br \/>\n\u5c06Internet Protocol Version 4 (TCP\/IPv4)\u7684\u9996\u9009DNS\u8bbe\u7f6e\u4e3a127.0.0.1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u8ff0 WSL2+Warden\u662f\u4e00\u79cd\u57282021\u5e743\u6708\u4e3aMagento2\u5efa\u7acb\u73af\u5883\u7684\u65b9\u6cd5\uff0c\u4e0b\u9762\u662f\u8be6\u7ec6\u5907\u5fd8\u5f55\u3002 \u7ae0\u8282\u5217 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40917","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528WSL2+Warden\u65b9\u5f0f\u642d\u5efaMagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55 - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u4f7f\u7528wsl2warden\u65b9\u5f0f\u642d\u5efamagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528WSL2+Warden\u65b9\u5f0f\u642d\u5efaMagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55\" \/>\n<meta property=\"og:description\" content=\"\u7b80\u8ff0 WSL2+Warden\u662f\u4e00\u79cd\u57282021\u5e743\u6708\u4e3aMagento2\u5efa\u7acb\u73af\u5883\u7684\u65b9\u6cd5\uff0c\u4e0b\u9762\u662f\u8be6\u7ec6\u5907\u5fd8\u5f55\u3002 \u7ae0\u8282\u5217 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528wsl2warden\u65b9\u5f0f\u642d\u5efamagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-04T00:58:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T02:48:43+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/\",\"name\":\"\u4f7f\u7528WSL2+Warden\u65b9\u5f0f\u642d\u5efaMagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-04T00:58:56+00:00\",\"dateModified\":\"2024-01-15T02:48:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528WSL2+Warden\u65b9\u5f0f\u642d\u5efaMagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528WSL2+Warden\u65b9\u5f0f\u642d\u5efaMagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55 - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u4f7f\u7528wsl2warden\u65b9\u5f0f\u642d\u5efamagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528WSL2+Warden\u65b9\u5f0f\u642d\u5efaMagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55","og_description":"\u7b80\u8ff0 WSL2+Warden\u662f\u4e00\u79cd\u57282021\u5e743\u6708\u4e3aMagento2\u5efa\u7acb\u73af\u5883\u7684\u65b9\u6cd5\uff0c\u4e0b\u9762\u662f\u8be6\u7ec6\u5907\u5fd8\u5f55\u3002 \u7ae0\u8282\u5217 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528wsl2warden\u65b9\u5f0f\u642d\u5efamagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-04T00:58:56+00:00","article_modified_time":"2024-01-15T02:48:43+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/","name":"\u4f7f\u7528WSL2+Warden\u65b9\u5f0f\u642d\u5efaMagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-04T00:58:56+00:00","dateModified":"2024-01-15T02:48:43+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528WSL2+Warden\u65b9\u5f0f\u642d\u5efaMagento2\u73af\u5883\u7684\u5907\u5fd8\u5f55"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8wsl2warden%e6%96%b9%e5%bc%8f%e6%90%ad%e5%bb%bamagento2%e7%8e%af%e5%a2%83%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40917"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40917\/revisions"}],"predecessor-version":[{"id":58768,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40917\/revisions\/58768"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}