{"id":3342,"date":"2026-03-31T17:40:52","date_gmt":"2026-03-31T09:40:52","guid":{"rendered":"https:\/\/smproject.com.tw\/wordpress\/?p=3342"},"modified":"2026-04-01T13:49:17","modified_gmt":"2026-04-01T05:49:17","slug":"windows-%e7%94%a8%e6%88%b6%e7%ac%ac%e4%b8%80%e6%ac%a1%e5%ae%89%e8%a3%9d-openclaw-%e5%b0%b1%e4%b8%8a%e6%89%8b%ef%bc%81wsl2-%e6%87%b6%e4%ba%ba%e5%8c%85","status":"publish","type":"post","link":"https:\/\/smproject.com.tw\/wordpress\/2026\/03\/windows-%e7%94%a8%e6%88%b6%e7%ac%ac%e4%b8%80%e6%ac%a1%e5%ae%89%e8%a3%9d-openclaw-%e5%b0%b1%e4%b8%8a%e6%89%8b%ef%bc%81wsl2-%e6%87%b6%e4%ba%ba%e5%8c%85\/","title":{"rendered":"Windows \u7528\u6236\u7b2c\u4e00\u6b21\u5b89\u88dd OpenClaw \u5c31\u4e0a\u624b\uff01WSL2 \u61f6\u4eba\u5305"},"content":{"rendered":"<div class=\"article-wrap\">\n<h1>Windows \u7528\u6236\u7b2c\u4e00\u6b21\u5b89\u88dd OpenClaw \u5c31\u4e0a\u624b\uff01WSL2 \u61f6\u4eba\u5305<\/h1>\n<p class=\"subtitle\">\u4e0d\u7528\u96d9\u7cfb\u7d71\u3001\u4e0d\u7528\u865b\u64ec\u6a5f\uff0c\u4e00\u500b\u6307\u4ee4\u8b93\u4f60\u7684 Windows \u77ac\u9593\u8b8a\u6210 AI \u958b\u767c\u5229\u5668<\/p>\n<div class=\"intro-box\">\n<p>\u4f60\u662f\u4e0d\u662f\u66fe\u7d93\u770b\u5225\u4eba\u7528 AI \u52a9\u7406\u7528\u5f97\u8d85\u9806\u624b\uff0c\u81ea\u5df1\u537b\u5361\u5728\u300c\u8a72\u600e\u9ebc\u88dd\u300d\uff1f\u9019\u7bc7\u5e6b\u4f60\u5f9e\u96f6\u958b\u59cb\uff0c\u7528\u6700\u76f4\u89ba\u7684\u65b9\u5f0f\uff0c\u5728 Windows \u4e0a\u7528 WSL2 \u8dd1\u8d77 OpenClaw\u3002\u5168\u7a0b\u4e0d\u7528\u80cc\u6307\u4ee4\uff0c\u770b\u5b8c\u5c31\u6703\uff01<\/p>\n<\/div>\n<h2>\u524d\u8a00\uff1a\u70ba\u4ec0\u9ebc\u8981\u88dd WSL2\uff1f<\/h2>\n<p>WSL2\uff08Windows Subsystem for Linux 2\uff09\u662f Windows \u5167\u5efa\u7684 Linux \u74b0\u5883\uff0c\u901f\u5ea6\u5feb\u3001\u5360\u7528\u8cc7\u6e90\u5c11\uff0c\u800c\u4e14\u8ddf Windows \u672c\u4f86\u7684\u6771\u897f\u5b8c\u5168\u4e0d\u76f8\u6c96\u3002\u7c21\u55ae\u4f86\u8aaa\uff1a<\/p>\n<ul>\n<li>\u2705 \u4e0d\u9700\u8981\u96d9\u7cfb\u7d71\u958b\u6a5f<\/li>\n<li>\u2705 \u4e0d\u9700\u8981 VMware \/ VirtualBox<\/li>\n<li>\u2705 \u6548\u80fd\u63a5\u8fd1\u539f\u751f Linux<\/li>\n<li>\u2705 OpenClaw \u5c31\u662f\u70ba Linux \u74b0\u5883\u8a2d\u8a08\u7684<\/li>\n<\/ul>\n<p>\u6240\u4ee5\u5566\uff0c\u60f3\u5728 Windows \u4e0a\u597d\u597d\u7528 OpenClaw\uff0cWSL2 \u662f\u6a19\u914d\uff0c\u4e0d\u662f\u9078\u914d \ud83d\ude0e<\/p>\n<h2>Step 1\uff5c\u555f\u7528 WSL2\uff0c\u5b89\u88dd Ubuntu<\/h2>\n<p>\u9019\u662f\u6700\u95dc\u9375\u7684\u4e00\u6b65\uff0c\u4f46\u610f\u5916\u5730\u8d85\u7d1a\u7c21\u55ae\u3002<\/p>\n<div class=\"card\">\n<div class=\"card-title\">\ud83d\udd27 \u958b\u59cb\u4e4b\u524d<\/div>\n<p>\u8acb\u4f7f\u7528<strong>\u7cfb\u7d71\u7ba1\u7406\u54e1\u8eab\u4efd<\/strong>\u958b\u555f PowerShell \u6216 Windows Terminal\u3002\u6ed1\u9f20\u53f3\u9375\u9ede\u9078\u300c\u4ee5\u7cfb\u7d71\u7ba1\u7406\u54e1\u8eab\u4efd\u57f7\u884c\u300d\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<\/div>\n<p>\u5728\u7d42\u7aef\u6a5f\u88e1\u8f38\u5165\u9019\u884c\u6307\u4ee4\uff0c\u7136\u5f8c\u6309 Enter\uff1a<\/p>\n<pre><code>wsl --install<\/code><\/pre>\n<p>\u63a5\u4e0b\u4f86\u5c31\u662f\u7b49\u8457\u3002WSL2 \u6703\u81ea\u52d5\u5e6b\u4f60\uff1a<\/p>\n<ul>\n<li>\u555f\u7528\u76f8\u95dc\u7684 Windows \u529f\u80fd<\/li>\n<li>\u4e0b\u8f09 WSL2 \u6838\u5fc3\u66f4\u65b0<\/li>\n<li>\u5b89\u88dd Ubuntu\uff08\u6700\u65b0 LTS \u7248\u672c\uff09<\/li>\n<\/ul>\n<div class=\"warning\">\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u7d42\u7aef\u6a5f\u53ef\u80fd\u6703<strong>\u81ea\u52d5\u91cd\u958b\u6a5f\u6216\u8981\u6c42\u91cd\u958b<\/strong>\u3002\u91cd\u958b\u4e4b\u5f8c Ubuntu \u6703\u7b2c\u4e00\u6b21\u555f\u52d5\uff0c\u9019\u662f\u6b63\u5e38\u7684\uff01<\/div>\n<h2>Step 2\uff5c\u8a2d\u5b9a Ubuntu \u4f7f\u7528\u8005\u5e33\u865f\u5bc6\u78bc<\/h2>\n<p>\u7b2c\u4e00\u6b21\u555f\u52d5 Ubuntu\uff0c\u7cfb\u7d71\u6703\u8981\u6c42\u4f60\u5efa\u7acb\u4e00\u500b\u4f7f\u7528\u8005\u5e33\u865f\u548c\u5bc6\u78bc\uff1a<\/p>\n<pre><code>Enter new UNIX username:\uff08\u8f38\u5165\u4f60\u7684\u4f7f\u7528\u8005\u540d\u7a31\uff09\nEnter new password:\uff08\u8f38\u5165\u5bc6\u78bc\uff0c\u756b\u9762\u4e0d\u6703\u986f\u793a\uff0c\u653e\u5fc3\u8f38\u5165\uff09\nConfirm password:\uff08\u518d\u8f38\u5165\u4e00\u6b21\u5bc6\u78bc\u78ba\u8a8d\uff09<\/code><\/pre>\n<div class=\"tip\">\u9019\u500b\u5e33\u865f\u5bc6\u78bc\u662f Ubuntu \u88e1\u7684 root \u6b0a\u9650\u5e33\u865f\uff0c\u8acb\u8a18\u6e05\u695a\uff01\u672a\u4f86\u5b89\u88dd\u8edf\u9ad4\u3001\u4fee\u6539\u7cfb\u7d71\u8a2d\u5b9a\u90fd\u9760\u5b83\u3002<\/div>\n<h2>Step 3\uff5c\u8a2d\u5b9a systemd\uff08\u8b93\u7cfb\u7d71\u66f4\u7a69\u5b9a\uff09<\/h2>\n<p>Ubuntu 24.04 \u96d6\u7136\u9810\u8a2d\u6709 systemd\uff0c\u4f46 WSL2 \u74b0\u5883\u6709\u6642\u5019\u9700\u8981\u624b\u52d5\u958b\u555f\u3002\u6211\u5011\u4f86\u8a2d\u5b9a\u4e00\u4e0b\uff1a<\/p>\n<pre><code>sudo nano \/etc\/wsl.conf<\/code><\/pre>\n<p>\u9032\u5230\u7de8\u8f2f\u5668\u4e4b\u5f8c\uff0c\u8f38\u5165\u4ee5\u4e0b\u5167\u5bb9\uff1a<\/p>\n<pre><code>[boot]\nsystemd=true<\/code><\/pre>\n<p>\u7de8\u8f2f\u5b8c\u6210\u5f8c\uff0c\u6309 <code>Ctrl + X<\/code> \u2192 \u6309 <code>Y<\/code> \u2192 \u6309 <code>Enter<\/code> \u5132\u5b58\u96e2\u958b\u3002<\/p>\n<div class=\"tip\">\u8a2d\u5b9a\u597d\u4e4b\u5f8c\uff0c\u5efa\u8b70\u95dc\u9589 Ubuntu \u8996\u7a97\uff0c\u7136\u5f8c\u5728 PowerShell \u57f7\u884c <code>wsl --shutdown<\/code>\uff0c\u518d\u91cd\u65b0\u958b\u555f Ubuntu\uff0c\u8a2d\u5b9a\u624d\u6703\u751f\u6548\u3002<\/div>\n<h2>Step 4\uff5c\u5b89\u88dd Node.js\uff08v24.x LTS\uff09<\/h2>\n<p>OpenClaw \u662f\u7528 Node.js \u8dd1\u7684\uff0c\u6240\u4ee5\u5fc5\u9808\u5148\u88dd\u597d\u3002\u6211\u5011\u7528 NodeSource \u63d0\u4f9b\u7684\u5b98\u65b9\u4f86\u6e90\uff0c\u5b89\u88dd\u76ee\u524d\u6700\u63a8\u85a6\u7684 v24.x LTS \u7248\u672c\u3002<\/p>\n<p>\u5148\u65b0\u589e Node.js \u4f86\u6e90\uff1a<\/p>\n<pre><code>curl -fsSL https:\/\/deb.nodesource.com\/setup_24.x | sudo bash -<\/code><\/pre>\n<p>\u4f86\u6e90\u8a2d\u5b9a\u597d\u4e4b\u5f8c\uff0c\u5b89\u88dd Node.js\uff1a<\/p>\n<pre><code>sudo apt-get install -y nodejs<\/code><\/pre>\n<p>\u7b49\u500b\u4e00\u5169\u5206\u9418\uff0c\u5b89\u88dd\u5b8c\u6210\u4e4b\u5f8c\u78ba\u8a8d\u4e00\u4e0b\u7248\u672c\uff1a<\/p>\n<pre><code>node --version<\/code><\/pre>\n<p>\u5982\u679c\u770b\u5230 <code>v24.14.1<\/code>\uff08\u6216\u985e\u4f3c\u7684 24.x \u7248\u672c\uff09\uff0c\u4ee3\u8868\u5b89\u88dd\u6210\u529f\uff01\ud83c\udf89<\/p>\n<h2>Step 5\uff5c\u5b89\u88dd OpenClaw<\/h2>\n<p>Node.js \u6e96\u5099\u597d\u4e86\uff0c\u73fe\u5728\u8f2a\u5230\u4e3b\u89d2\u767b\u5834\u3002\u7528\u4e00\u884c\u6307\u4ee4\u628a OpenClaw \u88dd\u8d77\u4f86\uff1a<\/p>\n<pre><code>curl -fsSL https:\/\/openclaw.ai\/install.sh | bash<\/code><\/pre>\n<p>\u8dd1\u5b8c\u4e4b\u5f8c\uff0c\u7d42\u7aef\u6a5f\u53ef\u80fd\u6703\u8acb\u4f60\u8a2d\u5b9a\u4e00\u4e0b\u8def\u5f91\uff08PATH\uff09\u3002<\/p>\n<h3>\u8a2d\u5b9a PATH\uff08\u8b93\u7cfb\u7d71\u627e\u5f97\u5230 OpenClaw\uff09<\/h3>\n<p>\u5148\u628a\u8def\u5f91\u5beb\u9032\u8a2d\u5b9a\u6a94\uff0c\u9019\u6a23\u6bcf\u6b21\u958b Ubuntu \u4e0d\u7528\u91cd\u65b0\u8a2d\u5b9a\uff1a<\/p>\n<pre><code>export PATH=\"\/home\/\u4f60\u7684\u4f7f\u7528\u8005\u540d\u7a31\/.npm-global\/bin:$PATH\"<\/code><\/pre>\n<p>\u628a\u300c<code>\u4f60\u7684\u4f7f\u7528\u8005\u540d\u7a31<\/code>\u300d\u7f6e\u63db\u6210\u4f60\u5728 Step 2 \u8a2d\u5b9a\u7684\u540d\u5b57\u5594\uff01<\/p>\n<div class=\"warning\">\u6bcf\u6b21\u91cd\u958b Ubuntu \u90fd\u8981\u91cd\u65b0\u57f7\u884c\u9019\u884c\u55ce\uff1f\u4e0d\u7528\uff01\u53ea\u8981\u4f60\u628a\u8def\u5f91\u5beb\u9032\u4e86 shell \u8a2d\u5b9a\u6a94\u5c31\u53ef\u4ee5\u3002\u5efa\u8b70\u628a\u4e0a\u9762\u7684\u6307\u4ee4\u52a0\u9032 <code>~\/.bashrc<\/code> \u6216 <code>~\/.zshrc<\/code>\uff0c\u9019\u6a23\u65b0\u958b\u7d42\u7aef\u6a5f\u6642\u81ea\u52d5\u751f\u6548\u3002<\/div>\n<h2>Step 6\uff5c\u57f7\u884c\u8a2d\u5b9a\u7cbe\u9748\uff08onboard\uff09<\/h2>\n<p>\u842c\u4e8b\u4ff1\u5099\uff0c\u958b\u5de5\uff01\u555f\u52d5 OpenClaw \u7684\u8a2d\u5b9a\u7cbe\u9748\uff1a<\/p>\n<pre><code>openclaw onboard --install-daemon<\/code><\/pre>\n<p>\u57f7\u884c\u4e4b\u5f8c\uff0c\u4f60\u7684\u7d42\u7aef\u6a5f\u6703\u8dd1\u51fa\u4e00\u500b\u5f88\u5e25\u7684 ASCII \u9f8d\u8766 logo\uff0c\u7136\u5f8c\u662f\u4e00\u9023\u4e32\u7684\u554f\u984c\uff0c\u4e00\u500b\u4e00\u500b\u56de\u7b54\u5c31\u597d\u3002\u4ee5\u4e0b\u662f\u5404\u500b\u6b65\u9a5f\u7684\u8a73\u7d30\u8aaa\u660e\uff1a<\/p>\n<h3>\u2460 \u5b89\u5168\u8b66\u544a<\/h3>\n<p>\u7b2c\u4e00\u500b\u8df3\u51fa\u4f86\u7684\u662f\u5b89\u5168\u8b66\u544a\uff0c\u8aaa\u660e OpenClaw \u7684\u5b89\u5168\u908a\u754c\u3002<\/p>\n<pre><code>\u25c6 I understand this is personal-by-default and shared\/multi-user use requires lock-down. Continue?\n\u2502 \u25cb Yes \/ \u25cf No<\/code><\/pre>\n<p><strong>\u2192 \u9078\u64c7\u300cYes\u300d\u7e7c\u7e8c\u3002<\/strong><\/p>\n<h3>\u2461 \u9078\u64c7\u8a2d\u5b9a\u6a21\u5f0f<\/h3>\n<pre><code>\u25c6 Setup mode\n\u2502 \u25cf QuickStart (Configure details later via openclaw configure.)\n\u2502 \u25cb Manual<\/code><\/pre>\n<p><strong>\u2192 \u9078\u64c7\u300cQuickStart\u300d\uff0c\u7528\u9810\u8a2d\u914d\u7f6e\u5feb\u901f\u555f\u52d5\u3002<\/strong><\/p>\n<h3>\u2462 \u9078\u64c7 AI \u6a21\u578b<\/h3>\n<pre><code>\u25c6 Model\/auth provider\n\u2502 \u25cb Anthropic\n\u2502 \u25cb BytePlus\n\u2502 \u25cb DeepSeek\n\u2502 \u25cb Google\n\u2502 \u25cf MiniMax (M2.7 (recommended))  \u2190 \u79fb\u52d5\u9375\u9078\u9019\u500b\n\u2502 \u25cb Mistral AI\n\u2502 \u25cb Moonshot AI\n\u2502 \u25cb OpenAI\n...<\/code><\/pre>\n<p><strong>\u2192 \u79fb\u52d5\u9375\u79fb\u5230\u300cMiniMax (M2.7)\u300d\uff0c\u6309\u7a7a\u767d\u9375\u6216 Enter \u9078\u5b83\u3002<\/strong><\/p>\n<h3>\u2463 \u9078\u64c7 API \u5340\u57df<\/h3>\n<pre><code>\u25c6 MiniMax auth method\n\u2502 \u25cb MiniMax API key (CN)\n\u2502 \u25cf MiniMax API key (Global) \u2190 \u9019\u500b\uff0c\u570b\u969b\u677f\n\u2502 \u25cb MiniMax OAuth (CN)\n\u2502 \u25cb MiniMax OAuth (Global)<\/code><\/pre>\n<p><strong>\u2192 \u9078\u64c7\u300cMiniMax API key (Global)\u300d\u3002<\/strong><\/p>\n<div class=\"tip\">\u6ce8\u610f\uff01\u4e0d\u662f CN\uff0cCN \u662f\u7d66\u4e2d\u570b\u7528\u6236\u7684\uff0c\u53f0\u7063\u7528\u6236\u4e00\u5b9a\u8981\u9078 Global\uff08\u570b\u969b\u677f\uff09\u3002<\/div>\n<h3>\u2464 \u586b\u5165 API Key<\/h3>\n<pre><code>Enter MiniMax API key (sk-api- or sk-cp-)\nhttps:\/\/platform.minimax.io\/user-center\/basic-information\/interface-key\n\u2502 _<\/code><\/pre>\n<p>\u7d42\u7aef\u6a5f\u6703\u986f\u793a\u63d0\u793a\u7db2\u5740\uff0c\u4e26\u7b49\u5f85\u4f60\u8f38\u5165\u3002<\/p>\n<p><strong>\u2192 \u5148\u53bb\u9019\u500b\u7db2\u5740\u7533\u8acb API Key\uff0c\u8907\u88fd\u56de\u4f86\u8cbc\u4e0a\u3002<\/strong><\/p>\n<p>\u683c\u5f0f\u9577\u9019\u6a23\uff1a<code>sk-api-xxxxxxxxxxxxxxxx<\/code><\/p>\n<h3>\u2465 \u9078\u64c7\u6a21\u578b\u7248\u672c<\/h3>\n<pre><code>\u25c6 Default model\n\u2502 \u25cf Keep current (minimax\/MiniMax-M2.7) \u2190 \u4e00\u822c\u7528\u9014\u9078\u9019\u500b\n\u2502 \u25cb Enter model manually\n\u2502 \u25cb minimax\/MiniMax-M2.7-highspeed \u2190 \u6709\u9ad8\u901f\u914d\u984d\u7684\u9078\u9019\u500b<\/code><\/pre>\n<p><strong>\u2192 \u76f4\u63a5 Enter \u78ba\u8a8d M2.7\u3002<\/strong><\/p>\n<h3>\u2466 \u9078\u64c7\u804a\u5929\u983b\u9053<\/h3>\n<pre><code>Select channel (QuickStart)\n\u2502 \u25cf Telegram (Bot API) (recommended)\n\u2502 \u25cb WhatsApp (QR link)\n\u2502 \u25cb Discord (Bot API)\n\u2502 \u25cb Skip for now<\/code><\/pre>\n<p><strong>\u2192 \u60f3\u5148\u8df3\u904e\u5c31\u9078\u300cSkip for now\u300d\u3002<\/strong><\/p>\n<div class=\"tip\">Telegram \u6700\u5bb9\u6613\u8a2d\u5b9a\uff0c\u4f46\u4e5f\u53ef\u4ee5\u4e4b\u5f8c\u518d\u4e32\u3002\u9019\u88e1\u5148 Skip \u4e5f\u6c92\u95dc\u4fc2\u3002<\/div>\n<h3>\u2467 \u9078\u64c7\u641c\u5c0b\u5f15\u64ce<\/h3>\n<pre><code>\u25c6 Search provider\n\u2502 \u25cb Brave Search\n\u2502 \u25cf DuckDuckGo Search (experimental) \u2190 \u514d\u8cbb\u3001\u4e0d\u7528 API Key\n\u2502 \u25cb Skip for now<\/code><\/pre>\n<p><strong>\u2192 \u9078 DuckDuckGo \u6216 Skip\u3002<\/strong><\/p>\n<h3>\u2468 \u5b89\u88dd Skills<\/h3>\n<pre><code>\u25c6 Configure skills now? (recommended)\n\u2502 \u25cf Yes \/ \u25cb No<\/code><\/pre>\n<p><strong>\u2192 \u9078\u300cYes\u300d\u7e7c\u7e8c\u3002<\/strong><\/p>\n<pre><code> Install missing skill dependencies\n \u2502 \u25fb Skip for now\n \u2502 \u25fb \ud83d\udd10 1password\n \u2502 \u25fb \ud83d\udcf0 blogwatcher\n \u2502 \u25fb \ud83e\udde9 clawhub \u2190 \u5efa\u8b70\u4e00\u5b9a\u8981\u9078\u9019\u500b\n \u2502 \u25fb \ud83d\udce7 himalaya\n \u2502 \u25fb \ud83d\udc19 github\n \u2502 ...<\/code><\/pre>\n<p><strong>\u2192 \u79fb\u52d5\u5230\u5e95\u4e0b\uff0c\u7528\u7a7a\u767d\u9375\u52fe\u9078\u300cclawhub\u300d\uff0c\u5176\u9918\u5168\u90e8 Skip\u3002<\/strong><\/p>\n<div class=\"tip\">clawhub \u662f\u6280\u80fd\u5e02\u96c6\uff0c\u672a\u4f86\u8981\u88dd\u5176\u4ed6 Skills \u90fd\u5f9e\u9019\u88e1\u4f86\uff0c\u9019\u500b\u4e00\u5b9a\u8981\u88dd\u3002<\/div>\n<h3>\u2469 \u9078\u64c7 Node \u7248\u672c\u7ba1\u7406\u5de5\u5177<\/h3>\n<pre><code>\u25c6 Preferred node manager for skill installs\n\u2502 \u25cf npm\n\u2502 \u25cb pnpm\n\u2502 \u25cb bun<\/code><\/pre>\n<p><strong>\u2192 \u9078\u300cnpm\u300d\u3002<\/strong><\/p>\n<h3>\u246a \u8a2d\u5b9a\u984d\u5916 API Key<\/h3>\n<pre><code>\u25c7 Set GOOGLE_PLACES_API_KEY for goplaces? \u2192 No\n\u25c7 Set NOTION_API_KEY for notion? \u2192 No\n\u25c7 Set OPENAI_API_KEY for openai-whisper-api? \u2192 No\n\u25c7 Set ELEVENLABS_API_KEY for sag? \u2192 No<\/code><\/pre>\n<p><strong>\u2192 \u5168\u90e8\u9078\u300cNo\u300d\u8df3\u904e\u3002<\/strong><\/p>\n<div class=\"tip\">\u9019\u4e9b\u90fd\u662f\u9032\u968e\u529f\u80fd\uff0c\u73fe\u5728\u7528\u4e0d\u5230\uff0c\u5168\u90e8\u8df3\u904e\u5c31\u597d\u3002<\/div>\n<h3>\u246b \u8a2d\u5b9a Hooks\uff08\u81ea\u52d5\u5316\u8173\u672c\uff09<\/h3>\n<pre><code>\u25c6 Enable hooks?\n\u2502 \u25fb Skip for now\n\u2502 \u25fb \ud83d\ude80 boot-md\n\u2502 \u25fb \ud83d\udcce bootstrap-extra-files\n\u2502 \u25fb \ud83d\udcdd command-logger\n\u2502 \u25fb \ud83d\udcbe session-memory<\/code><\/pre>\n<p><strong>\u2192 \u5efa\u8b70\u5168\u90e8\u52fe\u9078\u3002<\/strong><\/p>\n<div class=\"tip\">Hooks \u53ef\u4ee5\u8b93 AI \u81ea\u52d5\u8a18\u4f4f\u5c0d\u8a71\u5167\u5bb9\u3001\u66f4\u65b0\u72c0\u614b\uff0c\u5c0d\u672a\u4f86\u4f7f\u7528\u5f88\u6709\u5e6b\u52a9\uff0c\u5168\u958b\u5c31\u5c0d\u4e86\u3002<\/div>\n<h3>\u246c \u5b8c\u6210\uff01<\/h3>\n<p>\u770b\u5230\u9019\u4e9b\u8f38\u51fa\u4ee3\u8868\u8a2d\u5b9a\u5b8c\u6210\uff1a<\/p>\n<pre><code>Config written: ~\/.openclaw\/openclaw.json\nSystemd lingering enabled.\nGateway service installed.\nAgents: main (default)\nHeartbeat interval: 30m (main)<\/code><\/pre>\n<h3>\u246d \u958b\u555f\u63a7\u5236\u53f0<\/h3>\n<pre><code>\u25c6 How do you want to hatch your bot?\n\u2502 \u25cf Open the Web UI\n\u2502 \u25cb Hatch in TUI\n\u2502 \u25cb Do this later<\/code><\/pre>\n<p><strong>\u2192 \u9078\u300cOpen the Web UI\u300d\u3002<\/strong><\/p>\n<p>\u7cfb\u7d71\u6703\u56de\u8986\u4e00\u500b\u9023\u7d50\uff1a<\/p>\n<pre><code>Dashboard ready\nhttp:\/\/127.0.0.1:18789\/#token=\u4f60\u7684Token<\/code><\/pre>\n<p><strong>\u628a\u90a3\u500b\u5b8c\u6574\u7db2\u5740\uff08\u5305\u542b #token=xxx\uff09\u8907\u88fd\uff0c\u8cbc\u9032\u700f\u89bd\u5668\u3002<\/strong><\/p>\n<p>\u770b\u5230\u63a7\u5236\u53f0\u4ecb\u9762\u51fa\u73fe\uff0c\u5c31\u4ee3\u8868\u4e00\u5207\u5b8c\u6210\u4e86\uff01\ud83c\udf89<\/p>\n<h2>Step 7\uff5c\u5f9e Windows \u700f\u89bd\u5668\u5b58\u53d6 Web UI<\/h2>\n<p>\u9810\u8a2d\u60c5\u6cc1\u4e0b\uff0cOpenClaw \u7684 Web UI \u662f\u7d81\u5b9a\u5728 Linux \u5167\u90e8\u7684 localhost\u3002\u5982\u679c\u4f60\u60f3\u5f9e Windows \u7684\u700f\u89bd\u5668\u5b58\u53d6\uff0c\u9700\u8981\u5efa\u7acb SSH tunnel\u3002<\/p>\n<p>\u5728<strong>Windows \u7aef<\/strong>\uff08\u65b0\u958b\u4e00\u500b PowerShell \u6216 CMD \u8996\u7a97\uff09\u57f7\u884c\uff1a<\/p>\n<pre><code>ssh -L 18789:localhost:18789 \u4f60\u7684\u4f7f\u7528\u8005\u540d\u7a31@localhost -p 22<\/code><\/pre>\n<p>\u8f38\u5165 Ubuntu \u7684\u5bc6\u78bc\u4e4b\u5f8c\uff0cSSH tunnel \u5c31\u5efa\u7acb\u5b8c\u6210\u4e86\u3002\u9019\u6642\u5019\u6253\u958b Windows \u7684\u700f\u89bd\u5668\uff0c\u8f38\u5165\uff1a<\/p>\n<pre><code>http:\/\/localhost:18789<\/code><\/pre>\n<p>\u5c31\u80fd\u770b\u5230 OpenClaw \u7684 Web UI \u5566\uff01<\/p>\n<div class=\"tip\">\u4e0d\u60f3\u6bcf\u6b21\u624b\u52d5\u6253 SSH tunnel\uff1f\u4e5f\u53ef\u4ee5\u8a2d\u5b9a Windows \u7684 SSH \u670d\u52d9\u81ea\u52d5\u958b\u6a5f\uff0c\u9019\u6a23\u66f4\u65b9\u4fbf\u3002\u53ef\u4ee5\u5728 PowerShell \u57f7\u884c <code>Get-Service sshd<\/code> \u78ba\u8a8d\u72c0\u614b\u3002<\/div>\n<h2>\u5e38\u898b\u554f\u984c<\/h2>\n<h3>Q1\uff1a\u8f38\u5165 <code>node --version<\/code> \u6c92\u53cd\u61c9\u600e\u9ebc\u8fa6\uff1f<\/h3>\n<p>\u53ef\u80fd\u662f PATH \u6c92\u6709\u8a2d\u5b9a\u597d\u3002\u91cd\u65b0\u57f7\u884c\uff1a<br \/><code>export PATH=\"\/home\/\u4f60\u7684\u4f7f\u7528\u8005\u540d\u7a31\/.npm-global\/bin:$PATH\"<\/code><br \/>\u7136\u5f8c\u78ba\u8a8d\u8def\u5f91\u662f\u5426\u51fa\u73fe\u5728 <code>echo $PATH<\/code> \u88e1\u9762\u3002<\/p>\n<h3>Q2\uff1a\u5b89\u88dd OpenClaw \u6642\u986f\u793a\u627e\u4e0d\u5230\u6307\u4ee4\uff1f<\/h3>\n<p>\u78ba\u8a8d Node.js \u5b89\u88dd\u6210\u529f\u4e86\uff1a<code>node --version<\/code> \u548c <code>npm --version<\/code> \u90fd\u8981\u6709\u8f38\u51fa\u3002\u5982\u679c\u90fd\u6b63\u5e38\uff0c\u91cd\u65b0\u57f7\u884c\u5b89\u88dd\u6307\u4ee4\u3002<\/p>\n<h3>Q3\uff1aWSL2 \u5b89\u88dd\u5931\u6557\u600e\u9ebc\u8655\u7406\uff1f<\/h3>\n<p>\u5148\u78ba\u8a8d Windows \u7248\u672c\uff1a<code>winver<\/code>\u3002WSL2 \u9700\u8981 Windows 10 2004 \u4ee5\u4e0a\uff0c\u6216 Windows 11\u3002\u5982\u679c\u7248\u672c\u592a\u820a\uff0c\u5148\u66f4\u65b0 Windows\u3002<\/p>\n<h3>Q4\uff1aSSH tunnel \u9023\u4e0d\u4e0a\uff1f<\/h3>\n<p>\u6aa2\u67e5\u5169\u4ef6\u4e8b\uff1a\u2460 WSL2 \u88e1\u7684 SSH \u670d\u52d9\u662f\u5426\u555f\u52d5\uff08<code>sudo service ssh status<\/code>\uff09\uff1b\u2461 Windows \u7aef\u7684 SSH \u7528\u6236\u7aef\u662f\u5426\u5df2\u555f\u7528\uff08\u53ef\u5728 Windows \u529f\u80fd\u88e1\u958b\u555f\u300cOpenSSH \u7528\u6236\u7aef\u300d\uff09\u3002<\/p>\n<h2>\u7d50\u8a9e<\/h2>\n<p>\u5f9e\u96f6\u5230\u8dd1\u8d77\u4f86\u5c31\u662f\u9019 14 \u500b\u6b65\u9a5f\uff0c\u6c92\u6709\u90a3\u9ebc\u96e3\u5c0d\u5427\uff1fWSL2 \u8b93 Windows \u7528\u6236\u4e0d\u9700\u8981\u653e\u68c4\u719f\u6089\u7684\u74b0\u5883\uff0c\u5c31\u80fd\u7121\u75db\u4f7f\u7528 Linux \u751f\u614b\u7cfb\u7684\u5de5\u5177\u3002OpenClaw \u5b89\u88dd\u597d\u4e4b\u5f8c\uff0c\u4f60\u7684\u96fb\u8166\u5c31\u7b49\u65bc\u591a\u4e86\u4e00\u500b 24 \u5c0f\u6642\u5168\u5e74\u7121\u4f11\u5047\u52e4\u7684 AI \u52a9\u7406\u3002<\/p>\n<p>\u6709\u554f\u984c\u6b61\u8fce\u7559\u8a00\uff0c\u6211\u5011\u90fd\u6703\u770b \ud83d\ude0a<\/p>\n<div class=\"hashtags\"><span>#WSL2<\/span> <span>#Windows11<\/span> <span>#Ubuntu<\/span> <span>#OpenClaw<\/span> <span>#NodeJS<\/span> <span>#AI\u52a9\u624b<\/span> <span>#\u6559\u5b78<\/span> <span>#\u65b0\u624b\u6559\u5b78<\/span> <span>#\u958b\u767c\u74b0\u5883<\/span> <span>#WindowsSubsystemLinux<\/span><\/div>\n<div class=\"brand\"><strong>S.M.Project \u26ab\u26aa\u2728<\/strong> \u4f60\u7684\u96fb\u8166\u5c08\u5bb6<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Windows \u7528\u6236\u7b2c\u4e00\u6b21\u5b89\u88dd OpenClaw \u5c31\u4e0a\u624b\uff01WSL2 \u61f6\u4eba\u5305 \u4e0d\u7528\u96d9\u7cfb\u7d71\u3001\u4e0d\u7528\u865b\u64ec\u6a5f\uff0c\u4e00\u500b\u6307\u4ee4\u8b93 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-3342","post","type-post","status-publish","format-standard","hentry","category--openclaw"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/smproject.com.tw\/wordpress\/wp-json\/wp\/v2\/posts\/3342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smproject.com.tw\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smproject.com.tw\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smproject.com.tw\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smproject.com.tw\/wordpress\/wp-json\/wp\/v2\/comments?post=3342"}],"version-history":[{"count":2,"href":"https:\/\/smproject.com.tw\/wordpress\/wp-json\/wp\/v2\/posts\/3342\/revisions"}],"predecessor-version":[{"id":3354,"href":"https:\/\/smproject.com.tw\/wordpress\/wp-json\/wp\/v2\/posts\/3342\/revisions\/3354"}],"wp:attachment":[{"href":"https:\/\/smproject.com.tw\/wordpress\/wp-json\/wp\/v2\/media?parent=3342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smproject.com.tw\/wordpress\/wp-json\/wp\/v2\/categories?post=3342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smproject.com.tw\/wordpress\/wp-json\/wp\/v2\/tags?post=3342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}