{"id":164,"date":"2026-03-21T22:47:20","date_gmt":"2026-03-21T14:47:20","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/install-migrating\/"},"modified":"2026-03-21T23:23:49","modified_gmt":"2026-03-21T15:23:49","slug":"install-migrating","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/install-migrating\/","title":{"rendered":"\u8fc1\u79fb\u6307\u5357"},"content":{"rendered":"<h1>&#36801;&#31227;&#25351;&#21335;<\/h1>\n<h1>&#23558; OpenClaw &#36801;&#31227;&#21040;&#26032;&#26426;&#22120;<\/h1>\n<p>&#26412;&#25351;&#21335;&#23558; OpenClaw Gateway &#32593;&#20851;&#20174;&#19968;&#21488;&#26426;&#22120;&#36801;&#31227;&#21040;&#21478;&#19968;&#21488;&#65292;<strong>&#26080;&#38656;&#37325;&#26032;&#36827;&#34892;&#26032;&#25163;&#24341;&#23548;<\/strong>&#12290;<\/p>\n<p>&#36801;&#31227;&#22312;&#27010;&#24565;&#19978;&#24456;&#31616;&#21333;&#65306;<\/p>\n<ul>\n<li>&#22797;&#21046;<strong>&#29366;&#24577;&#30446;&#24405;<\/strong>&#65288;<code>$OPENCLAW_STATE_DIR<\/code>&#65292;&#40664;&#35748;&#65306;<code>~\/.openclaw\/<\/code>&#65289;&mdash; &#36825;&#21253;&#25324;&#37197;&#32622;&#12289;&#35748;&#35777;&#12289;&#20250;&#35805;&#21644;&#28192;&#36947;&#29366;&#24577;&#12290;<\/li>\n<li>&#22797;&#21046;&#20320;&#30340;<strong>&#24037;&#20316;&#21306;<\/strong>&#65288;&#40664;&#35748; <code>~\/.openclaw\/workspace\/<\/code>&#65289;&mdash; &#36825;&#21253;&#25324;&#20320;&#30340;&#26234;&#33021;&#20307;&#25991;&#20214;&#65288;&#35760;&#24518;&#12289;&#25552;&#31034;&#31561;&#65289;&#12290;<\/li>\n<\/ul>\n<p>&#20294;&#22312;<strong>&#37197;&#32622;&#25991;&#20214;<\/strong>&#12289;<strong>&#26435;&#38480;<\/strong>&#21644;<strong>&#37096;&#20998;&#22797;&#21046;<\/strong>&#26041;&#38754;&#26377;&#24120;&#35265;&#30340;&#38519;&#38449;&#12290;<\/p>\n<h2>&#24320;&#22987;&#20043;&#21069;&#65288;&#20320;&#35201;&#36801;&#31227;&#20160;&#20040;&#65289;<\/h2>\n<h3>1&#65289;&#30830;&#23450;&#20320;&#30340;&#29366;&#24577;&#30446;&#24405;<\/h3>\n<p>&#22823;&#22810;&#25968;&#23433;&#35013;&#20351;&#29992;&#40664;&#35748;&#20540;&#65306;<\/p>\n<ul>\n<li><strong>&#29366;&#24577;&#30446;&#24405;&#65306;<\/strong> <code>~\/.openclaw\/<\/code><\/li>\n<\/ul>\n<p>&#20294;&#22914;&#26524;&#20320;&#20351;&#29992;&#20197;&#19979;&#26041;&#24335;&#65292;&#21487;&#33021;&#20250;&#19981;&#21516;&#65306;<\/p>\n<ul>\n<li><code>--profile &lt;name&gt;<\/code>&#65288;&#36890;&#24120;&#21464;&#25104; <code>~\/.openclaw-&lt;profile&gt;\/<\/code>&#65289;<\/li>\n<li><code>OPENCLAW_STATE_DIR=\/some\/path<\/code><\/li>\n<\/ul>\n<p>&#22914;&#26524;&#20320;&#19981;&#30830;&#23450;&#65292;&#22312;<strong>&#26087;<\/strong>&#26426;&#22120;&#19978;&#36816;&#34892;&#65306;<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw status<\/p>\n<pre><code>\n&#22312;&#36755;&#20986;&#20013;&#26597;&#25214; `OPENCLAW_STATE_DIR` \/ profile &#30340;&#25552;&#21450;&#12290;&#22914;&#26524;&#20320;&#36816;&#34892;&#22810;&#20010; Gateway &#32593;&#20851;&#65292;&#23545;&#27599;&#20010;&#37197;&#32622;&#25991;&#20214;&#37325;&#22797;&#27492;&#25805;&#20316;&#12290;\n\n### 2&#65289;&#30830;&#23450;&#20320;&#30340;&#24037;&#20316;&#21306;\n\n&#24120;&#35265;&#40664;&#35748;&#20540;&#65306;\n\n* `~\/.openclaw\/workspace\/`&#65288;&#25512;&#33616;&#30340;&#24037;&#20316;&#21306;&#65289;\n* &#20320;&#21019;&#24314;&#30340;&#33258;&#23450;&#20041;&#25991;&#20214;&#22841;\n\n&#20320;&#30340;&#24037;&#20316;&#21306;&#26159; `MEMORY.md`&#12289;`USER.md` &#21644; `memory\/*.md` &#31561;&#25991;&#20214;&#25152;&#22312;&#30340;&#20301;&#32622;&#12290;\n\n### 3&#65289;&#20102;&#35299;&#20320;&#23558;&#20445;&#30041;&#20160;&#20040;\n\n&#22914;&#26524;&#20320;&#22797;&#21046;**&#20004;&#32773;**&mdash;&mdash;&#29366;&#24577;&#30446;&#24405;&#21644;&#24037;&#20316;&#21306;&#65292;&#20320;&#23558;&#20445;&#30041;&#65306;\n\n* Gateway &#32593;&#20851;&#37197;&#32622;&#65288;`openclaw.json`&#65289;\n* &#35748;&#35777;&#37197;&#32622;&#25991;&#20214; \/ API &#23494;&#38053; \/ OAuth &#20196;&#29260;\n* &#20250;&#35805;&#21382;&#21490; + &#26234;&#33021;&#20307;&#29366;&#24577;\n* &#28192;&#36947;&#29366;&#24577;&#65288;&#20363;&#22914; WhatsApp &#30331;&#24405;\/&#20250;&#35805;&#65289;\n* &#20320;&#30340;&#24037;&#20316;&#21306;&#25991;&#20214;&#65288;&#35760;&#24518;&#12289;Skills &#31508;&#35760;&#31561;&#65289;\n\n&#22914;&#26524;&#20320;**&#21482;**&#22797;&#21046;&#24037;&#20316;&#21306;&#65288;&#20363;&#22914;&#36890;&#36807; Git&#65289;&#65292;&#20320;**&#19981;&#20250;**&#20445;&#30041;&#65306;\n\n* &#20250;&#35805;\n* &#20973;&#35777;\n* &#28192;&#36947;&#30331;&#24405;\n\n&#36825;&#20123;&#23384;&#20648;&#22312; `$OPENCLAW_STATE_DIR` &#19979;&#12290;\n\n## &#36801;&#31227;&#27493;&#39588;&#65288;&#25512;&#33616;&#65289;\n\n### &#27493;&#39588; 0 &mdash; &#22791;&#20221;&#65288;&#26087;&#26426;&#22120;&#65289;\n\n&#22312;**&#26087;**&#26426;&#22120;&#19978;&#65292;&#39318;&#20808;&#20572;&#27490; Gateway &#32593;&#20851;&#65292;&#36825;&#26679;&#25991;&#20214;&#19981;&#20250;&#22312;&#22797;&#21046;&#36807;&#31243;&#20013;&#21457;&#29983;&#21464;&#21270;&#65306;\n\n```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\nopenclaw gateway stop\n<\/code><\/pre>\n<p>&#65288;&#21487;&#36873;&#20294;&#25512;&#33616;&#65289;&#24402;&#26723;&#29366;&#24577;&#30446;&#24405;&#21644;&#24037;&#20316;&#21306;&#65306;<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<\/p>\n<h1>&#22914;&#26524;&#20320;&#20351;&#29992;&#37197;&#32622;&#25991;&#20214;&#25110;&#33258;&#23450;&#20041;&#20301;&#32622;&#65292;&#35831;&#35843;&#25972;&#36335;&#24452;<\/h1>\n<p>cd ~<br \/>\ntar -czf openclaw-state.tgz .openclaw<\/p>\n<p>tar -czf openclaw-workspace.tgz .openclaw\/workspace<\/p>\n<pre><code>\n&#22914;&#26524;&#20320;&#26377;&#22810;&#20010;&#37197;&#32622;&#25991;&#20214;\/&#29366;&#24577;&#30446;&#24405;&#65288;&#20363;&#22914; `~\/.openclaw-main`&#12289;`~\/.openclaw-work`&#65289;&#65292;&#20998;&#21035;&#24402;&#26723;&#27599;&#20010;&#12290;\n\n### &#27493;&#39588; 1 &mdash; &#22312;&#26032;&#26426;&#22120;&#19978;&#23433;&#35013; OpenClaw\n\n&#22312;**&#26032;**&#26426;&#22120;&#19978;&#65292;&#23433;&#35013; CLI&#65288;&#22914;&#26524;&#38656;&#35201;&#36824;&#26377; Node&#65289;&#65306;\n\n* &#21442;&#35265;&#65306;[&#23433;&#35013;](\/install)\n\n&#22312;&#36825;&#20010;&#38454;&#27573;&#65292;&#22914;&#26524;&#26032;&#25163;&#24341;&#23548;&#21019;&#24314;&#20102;&#19968;&#20010;&#26032;&#30340; `~\/.openclaw\/` &#20063;&#27809;&#20851;&#31995; &mdash; &#20320;&#23558;&#22312;&#19979;&#19968;&#27493;&#35206;&#30422;&#23427;&#12290;\n\n### &#27493;&#39588; 2 &mdash; &#23558;&#29366;&#24577;&#30446;&#24405; + &#24037;&#20316;&#21306;&#22797;&#21046;&#21040;&#26032;&#26426;&#22120;\n\n&#22797;&#21046;**&#20004;&#32773;**&#65306;\n\n* `$OPENCLAW_STATE_DIR`&#65288;&#40664;&#35748; `~\/.openclaw\/`&#65289;\n* &#20320;&#30340;&#24037;&#20316;&#21306;&#65288;&#40664;&#35748; `~\/.openclaw\/workspace\/`&#65289;\n\n&#24120;&#35265;&#26041;&#27861;&#65306;\n\n* `scp` &#21387;&#32553;&#21253;&#24182;&#35299;&#21387;\n* &#36890;&#36807; SSH &#20351;&#29992; `rsync -a`\n* &#22806;&#37096;&#39537;&#21160;&#22120;\n\n&#22797;&#21046;&#21518;&#65292;&#30830;&#20445;&#65306;\n\n* &#21253;&#21547;&#20102;&#38544;&#34255;&#30446;&#24405;&#65288;&#20363;&#22914; `.openclaw\/`&#65289;\n* &#25991;&#20214;&#25152;&#26377;&#26435;&#23545;&#20110;&#36816;&#34892; Gateway &#32593;&#20851;&#30340;&#29992;&#25143;&#26159;&#27491;&#30830;&#30340;\n\n### &#27493;&#39588; 3 &mdash; &#36816;&#34892; Doctor&#65288;&#36801;&#31227; + &#26381;&#21153;&#20462;&#22797;&#65289;\n\n&#22312;**&#26032;**&#26426;&#22120;&#19978;&#65306;\n\n```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\nopenclaw doctor\n<\/code><\/pre>\n<p>Doctor &#26159;&#8221;&#23433;&#20840;&#21487;&#38752;&#8221;&#30340;&#21629;&#20196;&#12290;&#23427;&#20462;&#22797;&#26381;&#21153;&#12289;&#24212;&#29992;&#37197;&#32622;&#36801;&#31227;&#65292;&#24182;&#35686;&#21578;&#19981;&#21305;&#37197;&#38382;&#39064;&#12290;<\/p>\n<p>&#28982;&#21518;&#65306;<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw gateway restart<br \/>\nopenclaw status<\/p>\n<pre><code>\n## &#24120;&#35265;&#38519;&#38449;&#65288;&#20197;&#21450;&#22914;&#20309;&#36991;&#20813;&#65289;\n\n### &#38519;&#38449;&#65306;&#37197;&#32622;&#25991;&#20214;\/&#29366;&#24577;&#30446;&#24405;&#19981;&#21305;&#37197;\n\n&#22914;&#26524;&#20320;&#22312;&#26087; Gateway &#32593;&#20851;&#19978;&#20351;&#29992;&#20102;&#37197;&#32622;&#25991;&#20214;&#65288;&#25110; `OPENCLAW_STATE_DIR`&#65289;&#65292;&#32780;&#26032; Gateway &#32593;&#20851;&#20351;&#29992;&#20102;&#19981;&#21516;&#30340;&#37197;&#32622;&#65292;&#20320;&#20250;&#30475;&#21040;&#22914;&#19979;&#30151;&#29366;&#65306;\n\n* &#37197;&#32622;&#26356;&#25913;&#19981;&#29983;&#25928;\n* &#28192;&#36947;&#20002;&#22833;\/&#24050;&#30331;&#20986;\n* &#20250;&#35805;&#21382;&#21490;&#20026;&#31354;\n\n&#20462;&#22797;&#65306;&#20351;&#29992;&#20320;&#36801;&#31227;&#30340;**&#30456;&#21516;**&#37197;&#32622;&#25991;&#20214;\/&#29366;&#24577;&#30446;&#24405;&#36816;&#34892; Gateway &#32593;&#20851;\/&#26381;&#21153;&#65292;&#28982;&#21518;&#37325;&#26032;&#36816;&#34892;&#65306;\n\n```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\nopenclaw doctor\n<\/code><\/pre>\n<h3>&#38519;&#38449;&#65306;&#21482;&#22797;&#21046; <code>openclaw.json<\/code><\/h3>\n<p><code>openclaw.json<\/code> &#26159;&#19981;&#22815;&#30340;&#12290;&#35768;&#22810;&#25552;&#20379;&#21830;&#22312;&#20197;&#19979;&#20301;&#32622;&#23384;&#20648;&#29366;&#24577;&#65306;<\/p>\n<ul>\n<li><code>$OPENCLAW_STATE_DIR\/credentials\/<\/code><\/li>\n<li><code>$OPENCLAW_STATE_DIR\/agents\/&lt;agentId&gt;\/...<\/code><\/li>\n<\/ul>\n<p>&#22987;&#32456;&#36801;&#31227;&#25972;&#20010; <code>$OPENCLAW_STATE_DIR<\/code> &#25991;&#20214;&#22841;&#12290;<\/p>\n<h3>&#38519;&#38449;&#65306;&#26435;&#38480;\/&#25152;&#26377;&#26435;<\/h3>\n<p>&#22914;&#26524;&#20320;&#20197; root &#36523;&#20221;&#22797;&#21046;&#25110;&#26356;&#25913;&#20102;&#29992;&#25143;&#65292;Gateway &#32593;&#20851;&#21487;&#33021;&#26080;&#27861;&#35835;&#21462;&#20973;&#35777;\/&#20250;&#35805;&#12290;<\/p>\n<p>&#20462;&#22797;&#65306;&#35831;&#30830;&#20445;&#29366;&#24577;&#30446;&#24405; + &#24037;&#20316;&#21306;&#30001;&#36816;&#34892; Gateway &#32593;&#20851;&#30340;&#29992;&#25143;&#25317;&#26377;&#12290;<\/p>\n<h3>&#38519;&#38449;&#65306;&#22312;&#36828;&#31243;\/&#26412;&#22320;&#27169;&#24335;&#20043;&#38388;&#36801;&#31227;<\/h3>\n<ul>\n<li>&#22914;&#26524;&#20320;&#30340; UI&#65288;WebUI\/TUI&#65289;&#25351;&#21521;<strong>&#36828;&#31243;<\/strong> Gateway &#32593;&#20851;&#65292;&#36828;&#31243;&#20027;&#26426;&#25317;&#26377;&#20250;&#35805;&#23384;&#20648; + &#24037;&#20316;&#21306;&#12290;<\/li>\n<li>&#36801;&#31227;&#20320;&#30340;&#31508;&#35760;&#26412;&#30005;&#33041;&#19981;&#20250;&#31227;&#21160;&#36828;&#31243; Gateway &#32593;&#20851;&#30340;&#29366;&#24577;&#12290;<\/li>\n<\/ul>\n<p>&#22914;&#26524;&#20320;&#22788;&#20110;&#36828;&#31243;&#27169;&#24335;&#65292;&#35831;&#36801;&#31227; <strong>Gateway &#32593;&#20851;&#20027;&#26426;<\/strong>&#12290;<\/p>\n<h3>&#38519;&#38449;&#65306;&#22791;&#20221;&#20013;&#30340;&#23494;&#38053;<\/h3>\n<p><code>$OPENCLAW_STATE_DIR<\/code> &#21253;&#21547;&#23494;&#38053;&#65288;API &#23494;&#38053;&#12289;OAuth &#20196;&#29260;&#12289;WhatsApp &#20973;&#35777;&#65289;&#12290;&#23558;&#22791;&#20221;&#35270;&#20026;&#29983;&#20135;&#23494;&#38053;&#65306;<\/p>\n<ul>\n<li>&#21152;&#23494;&#23384;&#20648;<\/li>\n<li>&#36991;&#20813;&#36890;&#36807;&#19981;&#23433;&#20840;&#30340;&#28192;&#36947;&#20849;&#20139;<\/li>\n<li>&#22914;&#26524;&#24576;&#30097;&#27844;&#38706;&#65292;&#36718;&#25442;&#23494;&#38053;<\/li>\n<\/ul>\n<h2>&#39564;&#35777;&#26816;&#26597;&#28165;&#21333;<\/h2>\n<p>&#22312;&#26032;&#26426;&#22120;&#19978;&#65292;&#30830;&#35748;&#65306;<\/p>\n<ul>\n<li><code>openclaw status<\/code> &#26174;&#31034; Gateway &#32593;&#20851;&#27491;&#22312;&#36816;&#34892;<\/li>\n<li>&#20320;&#30340;&#28192;&#36947;&#20173;&#28982;&#36830;&#25509;&#65288;&#20363;&#22914; WhatsApp &#19981;&#38656;&#35201;&#37325;&#26032;&#37197;&#23545;&#65289;<\/li>\n<li>&#20202;&#34920;&#26495;&#25171;&#24320;&#24182;&#26174;&#31034;&#29616;&#26377;&#20250;&#35805;<\/li>\n<li>&#20320;&#30340;&#24037;&#20316;&#21306;&#25991;&#20214;&#65288;&#35760;&#24518;&#12289;&#37197;&#32622;&#65289;&#23384;&#22312;<\/li>\n<\/ul>\n<h2>&#30456;&#20851;&#20869;&#23481;<\/h2>\n<ul>\n<li><a href=\"\/gateway\/doctor\">Doctor<\/a><\/li>\n<li><a href=\"\/gateway\/troubleshooting\">Gateway &#32593;&#20851;&#25925;&#38556;&#25490;&#38500;<\/a><\/li>\n<li><a href=\"\/help\/faq#where-does-openclaw-store-its-data\">OpenClaw &#22312;&#21738;&#37324;&#23384;&#20648;&#25968;&#25454;&#65311;<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>&#36801;&#31227;&#25351;&#21335; &#23558; OpenClaw &#038;#36 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-164","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=164"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"predecessor-version":[{"id":799,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/164\/revisions\/799"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}