{"id":170,"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-uninstall\/"},"modified":"2026-03-21T23:23:49","modified_gmt":"2026-03-21T15:23:49","slug":"install-uninstall","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/install-uninstall\/","title":{"rendered":"\u5378\u8f7d"},"content":{"rendered":"<h1>&#21368;&#36733;<\/h1>\n<p>&#20004;&#31181;&#26041;&#24335;&#65306;<\/p>\n<ul>\n<li>&#22914;&#26524; <code>openclaw<\/code> &#20173;&#24050;&#23433;&#35013;&#65292;&#20351;&#29992;<strong>&#31616;&#21333;&#26041;&#24335;<\/strong>&#12290;<\/li>\n<li>&#22914;&#26524; CLI &#24050;&#21024;&#38500;&#20294;&#26381;&#21153;&#20173;&#22312;&#36816;&#34892;&#65292;&#20351;&#29992;<strong>&#25163;&#21160;&#26381;&#21153;&#31227;&#38500;<\/strong>&#12290;<\/li>\n<\/ul>\n<h2>&#31616;&#21333;&#26041;&#24335;&#65288;CLI &#20173;&#24050;&#23433;&#35013;&#65289;<\/h2>\n<p>&#25512;&#33616;&#65306;&#20351;&#29992;&#20869;&#32622;&#21368;&#36733;&#31243;&#24207;&#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 uninstall<\/p>\n<pre><code>\n&#38750;&#20132;&#20114;&#24335;&#65288;&#33258;&#21160;&#21270; \/ npx&#65289;&#65306;\n\n```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\nopenclaw uninstall --all --yes --non-interactive\nnpx -y openclaw uninstall --all --yes --non-interactive\n<\/code><\/pre>\n<p>&#25163;&#21160;&#27493;&#39588;&#65288;&#25928;&#26524;&#30456;&#21516;&#65289;&#65306;<\/p>\n<ol>\n<li>&#20572;&#27490; Gateway &#32593;&#20851;&#26381;&#21153;&#65306;<\/li>\n<\/ol>\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 stop<\/p>\n<pre><code>\n2. &#21368;&#36733; Gateway &#32593;&#20851;&#26381;&#21153;&#65288;launchd\/systemd\/schtasks&#65289;&#65306;\n\n```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\nopenclaw gateway uninstall\n<\/code><\/pre>\n<ol start=\"3\">\n<li>&#21024;&#38500;&#29366;&#24577; + &#37197;&#32622;&#65306;<\/li>\n<\/ol>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nrm -rf &#8220;${OPENCLAW_STATE_DIR:-$HOME\/.openclaw}&#8221;<\/p>\n<pre><code>\n&#22914;&#26524;&#20320;&#23558; `OPENCLAW_CONFIG_PATH` &#35774;&#32622;&#20026;&#29366;&#24577;&#30446;&#24405;&#22806;&#30340;&#33258;&#23450;&#20041;&#20301;&#32622;&#65292;&#20063;&#35831;&#21024;&#38500;&#35813;&#25991;&#20214;&#12290;\n\n4. &#21024;&#38500;&#20320;&#30340;&#24037;&#20316;&#21306;&#65288;&#21487;&#36873;&#65292;&#31227;&#38500;&#26234;&#33021;&#20307;&#25991;&#20214;&#65289;&#65306;\n\n```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\nrm -rf ~\/.openclaw\/workspace\n<\/code><\/pre>\n<ol start=\"5\">\n<li>&#31227;&#38500; CLI &#23433;&#35013;&#65288;&#36873;&#25321;&#20320;&#20351;&#29992;&#30340;&#37027;&#20010;&#65289;&#65306;<\/li>\n<\/ol>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nnpm rm -g openclaw<br \/>\npnpm remove -g openclaw<br \/>\nbun remove -g openclaw<\/p>\n<pre><code>\n6. &#22914;&#26524;&#20320;&#23433;&#35013;&#20102; macOS &#24212;&#29992;&#65306;\n\n```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\nrm -rf \/Applications\/OpenClaw.app\n<\/code><\/pre>\n<p>&#27880;&#24847;&#20107;&#39033;&#65306;<\/p>\n<ul>\n<li>&#22914;&#26524;&#20320;&#20351;&#29992;&#20102;&#37197;&#32622;&#25991;&#20214;&#65288;<code>--profile<\/code> \/ <code>OPENCLAW_PROFILE<\/code>&#65289;&#65292;&#23545;&#27599;&#20010;&#29366;&#24577;&#30446;&#24405;&#37325;&#22797;&#27493;&#39588; 3&#65288;&#40664;&#35748;&#20026; <code>~\/.openclaw-&lt;profile&gt;<\/code>&#65289;&#12290;<\/li>\n<li>&#22312;&#36828;&#31243;&#27169;&#24335;&#19979;&#65292;&#29366;&#24577;&#30446;&#24405;&#20301;&#20110; <strong>Gateway &#32593;&#20851;&#20027;&#26426;<\/strong>&#19978;&#65292;&#22240;&#27492;&#20063;&#38656;&#35201;&#22312;&#37027;&#37324;&#36816;&#34892;&#27493;&#39588; 1-4&#12290;<\/li>\n<\/ul>\n<h2>&#25163;&#21160;&#26381;&#21153;&#31227;&#38500;&#65288;CLI &#26410;&#23433;&#35013;&#65289;<\/h2>\n<p>&#22914;&#26524; Gateway &#32593;&#20851;&#26381;&#21153;&#25345;&#32493;&#36816;&#34892;&#20294; <code>openclaw<\/code> &#32570;&#22833;&#65292;&#35831;&#20351;&#29992;&#27492;&#26041;&#27861;&#12290;<\/p>\n<h3>macOS&#65288;launchd&#65289;<\/h3>\n<p>&#40664;&#35748;&#26631;&#31614;&#26159; <code>bot.molt.gateway<\/code>&#65288;&#25110; <code>bot.molt.&lt;profile&gt;<\/code>&#65307;&#26087;&#29256; <code>com.openclaw.*<\/code> &#21487;&#33021;&#20173;&#28982;&#23384;&#22312;&#65289;&#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 \/>\nlaunchctl bootout gui\/$UID\/bot.molt.gateway<br \/>\nrm -f ~\/Library\/LaunchAgents\/bot.molt.gateway.plist<\/p>\n<pre><code>\n&#22914;&#26524;&#20320;&#20351;&#29992;&#20102;&#37197;&#32622;&#25991;&#20214;&#65292;&#35831;&#23558;&#26631;&#31614;&#21644; plist &#21517;&#31216;&#26367;&#25442;&#20026; `bot.molt.&lt;profile&gt;`&#12290;&#22914;&#26524;&#23384;&#22312;&#20219;&#20309;&#26087;&#29256; `com.openclaw.*` plist&#65292;&#35831;&#23558;&#20854;&#31227;&#38500;&#12290;\n\n### Linux&#65288;systemd &#29992;&#25143;&#21333;&#20803;&#65289;\n\n&#40664;&#35748;&#21333;&#20803;&#21517;&#31216;&#26159; `openclaw-gateway.service`&#65288;&#25110; `openclaw-gateway-&lt;profile&gt;.service`&#65289;&#65306;\n\n```bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}\nsystemctl --user disable --now openclaw-gateway.service\nrm -f ~\/.config\/systemd\/user\/openclaw-gateway.service\nsystemctl --user daemon-reload\n<\/code><\/pre>\n<h3>Windows&#65288;&#35745;&#21010;&#20219;&#21153;&#65289;<\/h3>\n<p>&#40664;&#35748;&#20219;&#21153;&#21517;&#31216;&#26159; <code>OpenClaw Gateway<\/code>&#65288;&#25110; <code>OpenClaw Gateway (&lt;profile&gt;)<\/code>&#65289;&#12290;<br \/>\n&#20219;&#21153;&#33050;&#26412;&#20301;&#20110;&#20320;&#30340;&#29366;&#24577;&#30446;&#24405;&#19979;&#12290;<\/p>\n<p><code>powershell  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\nschtasks \/Delete \/F \/TN \"OpenClaw Gateway\"<br \/>\nRemove-Item -Force \"$env:USERPROFILE.openclawgateway.cmd\"<\/code><\/p>\n<p>&#22914;&#26524;&#20320;&#20351;&#29992;&#20102;&#37197;&#32622;&#25991;&#20214;&#65292;&#35831;&#21024;&#38500;&#21305;&#37197;&#30340;&#20219;&#21153;&#21517;&#31216;&#21644; <code>~.openclaw-&lt;profile&gt;gateway.cmd<\/code>&#12290;<\/p>\n<h2>&#26222;&#36890;&#23433;&#35013; vs &#28304;&#30721;&#26816;&#20986;<\/h2>\n<h3>&#26222;&#36890;&#23433;&#35013;&#65288;install.sh \/ npm \/ pnpm \/ bun&#65289;<\/h3>\n<p>&#22914;&#26524;&#20320;&#20351;&#29992;&#20102; <code>https:\/\/openclaw.ai\/install.sh<\/code> &#25110; <code>install.ps1<\/code>&#65292;CLI &#26159;&#36890;&#36807; <code>npm install -g openclaw@latest<\/code> &#23433;&#35013;&#30340;&#12290;<br \/>\n&#20351;&#29992; <code>npm rm -g openclaw<\/code> &#31227;&#38500;&#65288;&#25110; <code>pnpm remove -g<\/code> \/ <code>bun remove -g<\/code>&#65292;&#22914;&#26524;&#20320;&#26159;&#29992;&#37027;&#31181;&#26041;&#24335;&#23433;&#35013;&#30340;&#65289;&#12290;<\/p>\n<h3>&#28304;&#30721;&#26816;&#20986;&#65288;git clone&#65289;<\/h3>\n<p>&#22914;&#26524;&#20320;&#20174;&#20179;&#24211;&#26816;&#20986;&#36816;&#34892;&#65288;<code>git clone<\/code> + <code>openclaw ...<\/code> \/ <code>bun run openclaw ...<\/code>&#65289;&#65306;<\/p>\n<ol>\n<li>&#22312;&#21024;&#38500;&#20179;&#24211;<strong>&#20043;&#21069;<\/strong>&#21368;&#36733; Gateway &#32593;&#20851;&#26381;&#21153;&#65288;&#20351;&#29992;&#19978;&#38754;&#30340;&#31616;&#21333;&#26041;&#24335;&#25110;&#25163;&#21160;&#26381;&#21153;&#31227;&#38500;&#65289;&#12290;<\/li>\n<li>&#21024;&#38500;&#20179;&#24211;&#30446;&#24405;&#12290;<\/li>\n<li>&#25353;&#19978;&#36848;&#26041;&#24335;&#31227;&#38500;&#29366;&#24577; + &#24037;&#20316;&#21306;&#12290;<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>&#21368;&#36733; &#20004;&#31181;&#26041;&#24335;&#038;#6530 [&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-170","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/170","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=170"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":805,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/170\/revisions\/805"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}