{"id":238,"date":"2026-05-18T15:56:17","date_gmt":"2026-05-18T07:56:17","guid":{"rendered":"https:\/\/www.zs1843.cn\/2026\/05\/18\/openclaw%e5%ae%8c%e5%85%a8%e6%8c%87%e5%8d%97%ef%bc%9a%e8%87%aa%e5%bb%ba%e4%b8%aa%e4%ba%baai%e5%8a%a9%e6%89%8b%e7%be%a4%e6%99%96nas%e9%83%a8%e7%bd%b2%e6%95%99%e7%a8%8b\/"},"modified":"2026-05-18T16:00:41","modified_gmt":"2026-05-18T08:00:41","slug":"openclaw%e5%ae%8c%e5%85%a8%e6%8c%87%e5%8d%97%ef%bc%9a%e8%87%aa%e5%bb%ba%e4%b8%aa%e4%ba%baai%e5%8a%a9%e6%89%8b%e7%be%a4%e6%99%96nas%e9%83%a8%e7%bd%b2%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.zs1843.cn\/?p=238","title":{"rendered":"OpenClaw\u5b8c\u5168\u6307\u5357\uff1a\u81ea\u5efa\u4e2a\u4ebaAI\u52a9\u624b+\u7fa4\u6656NAS\u90e8\u7f72\u6559\u7a0b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\">\u5e02\u9762\u4e0a\u7684 AI \u52a9\u624b\u5927\u591a\u8dd1\u5728\u4e91\u7aef\uff0c\u6570\u636e\u4e0a\u4f20\u5230\u522b\u4eba\u7684\u670d\u52a1\u5668\uff0c\u9690\u79c1\u548c\u5ef6\u8fdf\u90fd\u662f\u95ee\u9898\u3002OpenClaw \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u4e2a\u4eba AI \u52a9\u624b\uff0c\u5b9a\u4f4d&#8221;\u8dd1\u5728\u81ea\u5df1\u8bbe\u5907\u4e0a\u7684\u672c\u5730\u4f18\u5148 AI \u52a9\u624b&#8221;\uff0cGitHub \u5df2\u83b7 37 \u4e07 Star\uff0cMIT \u534f\u8bae\u5f00\u6e90\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5b83\u7684\u6838\u5fc3\u529f\u80fd\u3001\u4e24\u79cd\u90e8\u7f72\u65b9\u5f0f\uff0c\u4ee5\u53ca\u5728\u7fa4\u6656 NAS \u4e0a\u7684\u5b8c\u6574\u642d\u5efa\u6d41\u7a0b\u3002<\/p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:18px\">OpenClaw \u662f\u4ec0\u4e48<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\">OpenClaw \u7684\u67b6\u6784\u56f4\u7ed5\u4e00\u4e2a\u672c\u5730 Gateway \u5c55\u5f00\uff0cGateway \u662f&#8221;\u63a7\u5236\u9762&#8221;\uff0cAI \u52a9\u624b\u672c\u8eab\u662f&#8221;\u4ea7\u54c1&#8221;\u3002\u5b83\u652f\u6301\u5728 24 \u4e2a\u4ee5\u4e0a\u7684\u804a\u5929\u5e73\u53f0\u4e0a\u4e0e\u7528\u6237\u4ea4\u4e92\uff0c\u5305\u62ec WhatsApp\u3001Telegram\u3001Slack\u3001Discord\u3001Signal\u3001iMessage\u3001\u5fae\u4fe1\u3001QQ\u3001\u98de\u4e66\u3001LINE \u7b49\u3002\u8fd9\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u5728\u65e5\u5e38\u4f7f\u7528\u7684\u804a\u5929\u5de5\u5177\u91cc\u76f4\u63a5\u8ddf AI \u5bf9\u8bdd\uff0c\u65e0\u9700\u6253\u5f00\u7f51\u9875\u6216\u4e13\u7528 App\u3002<\/p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6838\u5fc3\u529f\u80fd\u4e00\u89c8<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u529f\u80fd\u6a21\u5757<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>\u591a\u6e20\u9053\u6536\u4ef6\u7bb1<\/td><td>\u63a5\u5165\u4e86 WhatsApp\u3001Telegram\u3001Slack\u3001Discord\u3001Signal\u3001\u5fae\u4fe1\u3001QQ\u3001\u98de\u4e66\u7b49 24+ \u5e73\u53f0<\/td><\/tr><tr><td>\u591a\u667a\u80fd\u4f53\u8def\u7531<\/td><td>\u4e0d\u540c\u6e20\u9053\u6216\u8054\u7cfb\u4eba\u53ef\u8def\u7531\u5230\u72ec\u7acb\u7684 AI Agent\uff0c\u5404\u81ea\u7ba1\u7406\u72ec\u7acb\u4f1a\u8bdd\u548c\u5de5\u4f5c\u533a<\/td><\/tr><tr><td>\u8bed\u97f3\u4ea4\u4e92<\/td><td>macOS\/iOS \u652f\u6301\u8bed\u97f3\u5524\u9192\u8bcd\uff0cAndroid \u652f\u6301\u8fde\u7eed\u8bed\u97f3\u5bf9\u8bdd\u6a21\u5f0f<\/td><\/tr><tr><td>Live Canvas<\/td><td>AI Agent \u9a71\u52a8\u7684\u53ef\u89c6\u5316\u5de5\u4f5c\u7a7a\u95f4\uff0c\u5b9e\u65f6\u5c55\u793a\u548c\u5904\u7406\u4efb\u52a1<\/td><\/tr><tr><td>\u6280\u80fd\u7cfb\u7edf<\/td><td>\u901a\u8fc7 ClawHub \u6ce8\u518c\u4e2d\u5fc3\u5b89\u88c5\u548c\u6269\u5c55\u6280\u80fd\uff0c\u6ee1\u8db3\u5404\u79cd\u573a\u666f\u9700\u6c42<\/td><\/tr><tr><td>\u6d4f\u89c8\u5668\u5de5\u5177<\/td><td>\u5185\u7f6e\u6d4f\u89c8\u5668\u64cd\u4f5c\u80fd\u529b\uff0cAgent \u53ef\u4ee5\u8bbf\u95ee\u7f51\u9875\u83b7\u53d6\u4fe1\u606f<\/td><\/tr><tr><td>\u5b89\u5168\u6c99\u7bb1<\/td><td>\u57fa\u4e8e Docker \u7684\u6c99\u7bb1\u540e\u7aef\uff0c\u975e\u4e3b\u4f1a\u8bdd\u5f3a\u5236\u9694\u79bb\u8fd0\u884c\uff0c\u9632\u6b62\u8d8a\u6743<\/td><\/tr><tr><td>DM \u914d\u5bf9\u4fdd\u62a4<\/td><td>\u964c\u751f\u4eba\u7684\u79c1\u804a\u6d88\u606f\u9700\u8981\u914d\u5bf9\u7801\u9a8c\u8bc1\u624d\u80fd\u88ab AI \u5904\u7406<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:18px\">\u65b9\u6cd5\u4e00\uff1anpm \u5168\u5c40\u5b89\u88c5\uff08\u63a8\u8350\u5165\u95e8\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\">\u8fd9\u662f\u6700\u7b80\u5355\u7684\u90e8\u7f72\u65b9\u5f0f\uff0c\u9002\u5408 macOS\u3001Linux \u548c Windows(WSL2) \u7528\u6237\u3002<\/p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#e1e4e8;--cbp-line-number-width:calc(1 * 0.6 * .75rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>npm install -g openclaw@latest\nopenclaw onboard --install-daemon<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">npm install <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">g openclaw@latest<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">openclaw onboard <\/span><span style=\"color: #F97583\">--<\/span><span style=\"color: #E1E4E8\">install<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">daemon<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\"><code>onboard<\/code>\u547d\u4ee4\u4f1a\u9010\u6b65\u5f15\u5bfc\u4f60\u5b8c\u6210 Gateway\u3001\u5de5\u4f5c\u533a\u3001\u6e20\u9053\u548c\u6280\u80fd\u7684\u914d\u7f6e\uff0c\u5e76\u901a\u8fc7 systemd\uff08Linux\uff09\u6216 launchd\uff08macOS\uff09\u5b89\u88c5\u5b88\u62a4\u8fdb\u7a0b\u6765\u4fdd\u6d3b\u3002\u8981\u6c42 Node 24 \u6216 Node 22.19 \u4ee5\u4e0a\u7248\u672c\u3002<\/p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:18px\">\u65b9\u6cd5\u4e8c\uff1aDocker Compose \u90e8\u7f72<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\">\u9002\u5408\u670d\u52a1\u5668\u6216 NAS \u573a\u666f\uff0c\u6838\u5fc3 docker-compose.yml \u7ec4\u6210\u5982\u4e0b\uff1a<\/p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#e1e4e8;--cbp-line-number-width:calc(2 * 0.6 * .75rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>services:\n  openclaw-gateway:\n    image: openclaw:local\n    build: .\n    ports:\n      - \"${OPENCLAW_GATEWAY_PORT:-18789}:18789\"\n      - \"${OPENCLAW_BRIDGE_PORT:-18790}:18790\"\n    command: node dist\/index.js gateway --bind lan --port 18789\n    restart: unless-stopped\n    environment:\n      - OPENCLAW_GATEWAY_TOKEN=\n      - TZ=${TZ:-UTC}\n    volumes:\n      - ${CONFIG_DIR:-~\/.openclaw}:\/home\/node\/.openclaw\n      - ${WORKSPACE_DIR:-~\/.openclaw\/workspace}:\/home\/node\/.openclaw\/workspace\n    healthcheck:\n      test: &#91;\"CMD\", \"node\", \"-e\", \"fetch('http:\/\/127.0.0.1:18789\/healthz')\"&#93;\n      interval: 30s\n\n  openclaw-cli:\n    image: openclaw:local\n    network_mode: \"service:openclaw-gateway\"\n    stdin_open: true\n    tty: true\n    entrypoint: node dist\/index.js\n    depends_on:\n      - openclaw-gateway<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #B392F0\">services<\/span><span style=\"color: #E1E4E8\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">  openclaw<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #B392F0\">gateway<\/span><span style=\"color: #E1E4E8\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">image<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #B392F0\">openclaw<\/span><span style=\"color: #E1E4E8\">:local<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">build<\/span><span style=\"color: #E1E4E8\">: .<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">ports<\/span><span style=\"color: #E1E4E8\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">&quot;${OPENCLAW_GATEWAY_PORT:-18789}:18789&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">&quot;${OPENCLAW_BRIDGE_PORT:-18790}:18790&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">command<\/span><span style=\"color: #E1E4E8\">: node dist<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">index.js gateway <\/span><span style=\"color: #F97583\">--<\/span><span style=\"color: #E1E4E8\">bind lan <\/span><span style=\"color: #F97583\">--<\/span><span style=\"color: #E1E4E8\">port <\/span><span style=\"color: #79B8FF\">18789<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">restart<\/span><span style=\"color: #E1E4E8\">: unless<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">stopped<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">environment<\/span><span style=\"color: #E1E4E8\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">OPENCLAW_GATEWAY_TOKEN<\/span><span style=\"color: #F97583\">=<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">TZ<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #E1E4E8\">${<\/span><span style=\"color: #B392F0\">TZ<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #79B8FF\">UTC<\/span><span style=\"color: #E1E4E8\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">volumes<\/span><span style=\"color: #E1E4E8\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> ${<\/span><span style=\"color: #B392F0\">CONFIG_DIR<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #F97583\">-~\/<\/span><span style=\"color: #E1E4E8\">.openclaw}:<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">home<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">node<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">.openclaw<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> ${<\/span><span style=\"color: #B392F0\">WORKSPACE_DIR<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #F97583\">-~\/<\/span><span style=\"color: #E1E4E8\">.openclaw<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">workspace}:<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">home<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">node<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">.openclaw<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">workspace<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">healthcheck<\/span><span style=\"color: #E1E4E8\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      <\/span><span style=\"color: #B392F0\">test<\/span><span style=\"color: #E1E4E8\">: &#91;<\/span><span style=\"color: #9ECBFF\">&quot;CMD&quot;<\/span><span style=\"color: #E1E4E8\">, <\/span><span style=\"color: #9ECBFF\">&quot;node&quot;<\/span><span style=\"color: #E1E4E8\">, <\/span><span style=\"color: #9ECBFF\">&quot;-e&quot;<\/span><span style=\"color: #E1E4E8\">, <\/span><span style=\"color: #9ECBFF\">&quot;fetch(&#39;http:\/\/127.0.0.1:18789\/healthz&#39;)&quot;<\/span><span style=\"color: #E1E4E8\">&#93;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      <\/span><span style=\"color: #B392F0\">interval<\/span><span style=\"color: #E1E4E8\">: 30s<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">  openclaw<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #B392F0\">cli<\/span><span style=\"color: #E1E4E8\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">image<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #B392F0\">openclaw<\/span><span style=\"color: #E1E4E8\">:local<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">network_mode<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #9ECBFF\">&quot;service:openclaw-gateway&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">stdin_open<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #79B8FF\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">tty<\/span><span style=\"color: #E1E4E8\">: <\/span><span style=\"color: #79B8FF\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">entrypoint<\/span><span style=\"color: #E1E4E8\">: node dist<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">index.js<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">    <\/span><span style=\"color: #B392F0\">depends_on<\/span><span style=\"color: #E1E4E8\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">      <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\"> openclaw<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">gateway<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\">\u542f\u52a8\u547d\u4ee4\uff1a<\/p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#e1e4e8;--cbp-line-number-width:calc(1 * 0.6 * .75rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>docker compose build\ndocker compose up -d\ndocker compose run openclaw-cli  # \u8fdb\u5165\u4ea4\u4e92\u5f0f CLI<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">docker compose build<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">docker compose up <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">d<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">docker compose run openclaw<\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">cli  # \u8fdb\u5165\u4ea4\u4e92\u5f0f <\/span><span style=\"color: #79B8FF\">CLI<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:18px\">\u7fa4\u6656 NAS \u90e8\u7f72\u5168\u6d41\u7a0b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\">\u5b8c\u5168\u53ef\u4ee5\u3002OpenClaw \u539f\u751f\u652f\u6301 Synology Chat \u4f5c\u4e3a\u63a5\u5165\u6e20\u9053\uff0cDocker \u90e8\u7f72\u4e5f\u5f88\u5951\u5408\u7fa4\u6656\u7684 Container Manager\u3002<\/p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:18px\">\u524d\u7f6e\u6761\u4ef6<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u9879\u76ee<\/th><th>\u8981\u6c42<\/th><\/tr><\/thead><tbody><tr><td>DSM \u7248\u672c<\/td><td>7.2 \u53ca\u4ee5\u4e0a\uff08\u81ea\u5e26 Container Manager\uff09\uff0c\u6216 6.x \u642d\u914d Docker \u5957\u4ef6<\/td><\/tr><tr><td>CPU<\/td><td>x86_64 \u673a\u578b\uff08Intel\/AMD\uff09\uff0c\u5982 DS920+\u3001DS723+\uff1bARM \u673a\u578b\u53ef\u80fd\u4e0d\u517c\u5bb9<\/td><\/tr><tr><td>\u5185\u5b58<\/td><td>\u5efa\u8bae 4GB \u4ee5\u4e0a\uff0cAI Agent \u8fd0\u884c\u65f6\u4f1a\u6301\u7eed\u6d88\u8017\u5185\u5b58<\/td><\/tr><tr><td>\u5b58\u50a8<\/td><td>\u5efa\u8bae\u4f7f\u7528 SSD \u5b58\u50a8\u5377\u6216 NVMe \u7f13\u5b58\u673a\u578b\uff0cAI \u8bfb\u5199\u64cd\u4f5c\u5bf9\u78c1\u76d8\u6709\u8981\u6c42<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:18px\">\u90e8\u7f72\u6b65\u9aa4<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\"><strong>1. \u5b89\u88c5 Container Manager<\/strong><\/p><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\">\u5728 DSM \u5957\u4ef6\u4e2d\u5fc3\u4e2d\u641c\u7d22\u5e76\u5b89\u88c5 &#8220;Container Manager&#8221;\u3002<\/p><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\"><strong>2. \u901a\u8fc7 SSH \u767b\u5f55\u7fa4\u6656<\/strong><\/p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#e1e4e8;--cbp-line-number-width:calc(1 * 0.6 * .75rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>ssh admin@\u4f60\u7684\u7fa4\u6656IP<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">ssh admin@\u4f60\u7684\u7fa4\u6656IP<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\"><strong>3. \u521b\u5efa\u76ee\u5f55\u5e76\u62c9\u53d6\u4ee3\u7801<\/strong><\/p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#e1e4e8;--cbp-line-number-width:calc(1 * 0.6 * .75rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>mkdir -p \/volume1\/docker\/openclaw\ncd \/volume1\/docker\/openclaw\ngit clone https:\/\/github.com\/openclaw\/openclaw.git .<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">mkdir <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">p <\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">volume1<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">docker<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">openclaw<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">cd <\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">volume1<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">docker<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">openclaw<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">git clone <\/span><span style=\"color: #B392F0\">https<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #6A737D\">\/\/github.com\/openclaw\/openclaw.git .<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\"><strong>4. \u521b\u5efa .env \u914d\u7f6e\u6587\u4ef6<\/strong><\/p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#e1e4e8;--cbp-line-number-width:calc(1 * 0.6 * .75rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>cat > .env &lt;&lt; 'EOF'\nOPENCLAW_GATEWAY_PORT=18789\nOPENCLAW_BRIDGE_PORT=18790\nOPENCLAW_CONFIG_DIR=\/volume1\/docker\/openclaw\/config\nOPENCLAW_WORKSPACE_DIR=\/volume1\/docker\/openclaw\/workspace\nOPENCLAW_TZ=Asia\/Shanghai\nEOF<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">cat <\/span><span style=\"color: #F97583\">&gt;<\/span><span style=\"color: #E1E4E8\"> .env <\/span><span style=\"color: #F97583\">&lt;&lt;<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">&#39;EOF&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">OPENCLAW_GATEWAY_PORT<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #79B8FF\">18789<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">OPENCLAW_BRIDGE_PORT<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #79B8FF\">18790<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">OPENCLAW_CONFIG_DIR<\/span><span style=\"color: #F97583\">=\/<\/span><span style=\"color: #E1E4E8\">volume1<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">docker<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">openclaw<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">config<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">OPENCLAW_WORKSPACE_DIR<\/span><span style=\"color: #F97583\">=\/<\/span><span style=\"color: #E1E4E8\">volume1<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">docker<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">openclaw<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">workspace<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">OPENCLAW_TZ<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #E1E4E8\">Asia<\/span><span style=\"color: #F97583\">\/<\/span><span style=\"color: #E1E4E8\">Shanghai<\/span><\/span>\n<span class=\"line\"><span style=\"color: #79B8FF\">EOF<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\"><strong>5. \u521b\u5efa\u6570\u636e\u76ee\u5f55\u5e76\u542f\u52a8<\/strong><\/p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#e1e4e8;--cbp-line-number-width:calc(1 * 0.6 * .75rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>mkdir -p config workspace\ndocker compose build\ndocker compose up -d<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">mkdir <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">p config workspace<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">docker compose build<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">docker compose up <\/span><span style=\"color: #F97583\">-<\/span><span style=\"color: #E1E4E8\">d<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\"><strong>6. \u9a8c\u8bc1\u72b6\u6001<\/strong><\/p><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#e1e4e8;--cbp-line-number-width:calc(1 * 0.6 * .75rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#24292e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>docker compose ps\ncurl http:\/\/localhost:18789\/healthz<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">docker compose ps<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">curl <\/span><span style=\"color: #B392F0\">http<\/span><span style=\"color: #E1E4E8\">:<\/span><span style=\"color: #6A737D\">\/\/localhost:18789\/healthz<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">\u7fa4\u6656\u90e8\u7f72\u6ce8\u610f\u4e8b\u9879<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6301\u4e45\u5316\u8def\u5f84<\/strong>\uff1aconfig \u548c workspace \u76ee\u5f55\u5fc5\u987b\u6620\u5c04\u5230 \/volume1\/ \u7b49\u5b58\u50a8\u6c60\u8def\u5f84\uff0c\u7cfb\u7edf\u5206\u533a\u91cd\u542f\u5373\u4e22\u5931<\/li>\n\n\n\n<li><strong>Docker \u6c99\u7bb1<\/strong>\uff1a\u5982\u9700\u6c99\u7bb1\u9694\u79bb\u529f\u80fd\uff0c\u9700\u8981\u5728 Container Manager \u4e2d\u5f00\u653e \/var\/run\/docker.sock \u6302\u8f7d\uff0c\u5e76\u5728 docker-compose.yml \u4e2d\u53d6\u6d88\u6c99\u7bb1\u76f8\u5173\u6ce8\u91ca<\/li>\n\n\n\n<li><strong>\u5f00\u673a\u81ea\u542f<\/strong>\uff1arestart: unless-stopped \u5df2\u914d\u7f6e\uff0c\u7fa4\u6656\u91cd\u542f\u540e\u5bb9\u5668\u4f1a\u81ea\u52a8\u62c9\u8d77<\/li>\n\n\n\n<li><strong>\u9632\u706b\u5899<\/strong>\uff1a\u786e\u4fdd\u7fa4\u6656\u9632\u706b\u5899\u672a\u62e6\u622a 18789\uff08Gateway\uff09\u548c 18790\uff08Bridge\uff09\u7aef\u53e3<\/li>\n\n\n\n<li><strong>\u52a8\u6001 DNS<\/strong>\uff1a\u5982\u9700\u5916\u7f51\u8bbf\u95ee\uff0c\u5efa\u8bae\u642d\u914d\u7fa4\u6656\u7684 DDNS \u670d\u52a1\u5e76\u914d\u7f6e\u53cd\u5411\u4ee3\u7406<\/li>\n\n\n\n<li><strong>\u5185\u5b58\u76d1\u63a7<\/strong>\uff1a\u957f\u65f6\u95f4\u8fd0\u884c\u540e\u6ce8\u610f\u89c2\u5bdf Resource Monitor \u4e2d\u7684\u5185\u5b58\u5360\u7528\uff0c\u5fc5\u8981\u65f6\u8bbe\u7f6e\u5bb9\u5668\u5185\u5b58\u9650\u5236<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u603b\u7ed3<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><p style=\"font-size:14px\">OpenClaw \u662f\u76ee\u524d\u5f00\u6e90\u793e\u533a\u4e2d\u6700\u6210\u719f\u7684\u4e2a\u4eba AI \u52a9\u624b\u65b9\u6848\u4e4b\u4e00\u3002\u5b83\u89e3\u51b3\u4e86&#8221;AI \u52a9\u624b\u6570\u636e\u638c\u63a7\u6743&#8221;\u8fd9\u4e2a\u6838\u5fc3\u75db\u70b9\u2014\u2014\u6240\u6709\u6570\u636e\u7559\u5728\u4f60\u81ea\u5df1\u7684\u8bbe\u5907\u4e0a\uff0c\u540c\u65f6\u4fdd\u7559\u4e86\u8de8\u5e73\u53f0\u529e\u516c\u80fd\u529b\u3002Docker \u90e8\u7f72\u65b9\u5f0f\u975e\u5e38\u6807\u51c6\uff0c\u5728\u7fa4\u6656 NAS \u4e0a\u642d\u5efa\u96be\u5ea6\u4e0d\u9ad8\uff0c\u53ea\u8981 NAS \u662f x86_64 \u673a\u578b\u4e14\u5185\u5b58\u591f\u7528\uff0c\u5c31\u80fd\u62e5\u6709\u4e00\u53f0 7&#215;24 \u5c0f\u65f6\u5728\u7ebf\u3001\u5b8c\u5168\u79c1\u6709\u7684\u4e2a\u4eba AI \u52a9\u624b\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ecb\u7ecdOpenClaw\u7684\u529f\u80fd\u4eae\u70b9\u3001npm\u548cDocker\u4e24\u79cd\u90e8\u7f72\u65b9\u5f0f\uff0c\u4ee5\u53ca\u7fa4\u6656NAS\u4e0a\u4ece\u96f6\u642d\u5efa\u7684\u5168\u6d41\u7a0b\uff0c\u9644\u5e26docker-compose\u914d\u7f6e\u548c\u907f\u5751\u8981\u70b9\u3002<\/p>\n","protected":false},"author":1,"featured_media":237,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-24"],"_links":{"self":[{"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=238"}],"version-history":[{"count":3,"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":242,"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions\/242"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=\/wp\/v2\/media\/237"}],"wp:attachment":[{"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zs1843.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}