<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>CherryHua Blog</title>
        <link>https://tangly1024.com/</link>
        <description>一个好用的Blog喔</description>
        <lastBuildDate>Wed, 13 May 2026 02:28:55 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2026, NotionNext</copyright>
        <item>
            <title><![CDATA[claudecode和codex使用教程]]></title>
            <link>https://tangly1024.com/article/post-82</link>
            <guid>https://tangly1024.com/article/post-82</guid>
            <pubDate>Wed, 13 May 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[claudecode和codex使用教程]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-31a8322b63ae803daa79e28f85c53039"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35f8322b63ae8058973afadbe2dd6185" data-id="35f8322b63ae8058973afadbe2dd6185"><span><div id="35f8322b63ae8058973afadbe2dd6185" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35f8322b63ae8058973afadbe2dd6185" title="一、最根本的两把钥匙"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">一、最根本的两把钥匙</span></span></h2><div class="notion-text notion-block-35f8322b63ae8025a8cfd23c79e60e96">提升工作效率</div><div class="notion-text notion-block-35f8322b63ae80d6b449cafaddadcfa0"><b>技能1：</b><b><span class="notion-inline-underscore">Skill Creator</span></b></div><div class="notion-text notion-block-35f8322b63ae806e9f91e7f4475c3de7">全局安装，自定义创建属于自己好用的工作流技能</div><div class="notion-text notion-block-35f8322b63ae8028bfd1e4505d939934"><b>技能2：</b><b><span class="notion-inline-underscore">Find Skills </span></b></div><div class="notion-text notion-block-35f8322b63ae8086a839c4225f3a267a">技能自动搜索查找现成的技能去使用</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-35f8322b63ae80faa5c4e960e1e51a6d" data-id="35f8322b63ae80faa5c4e960e1e51a6d"><span><div id="35f8322b63ae80faa5c4e960e1e51a6d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35f8322b63ae80faa5c4e960e1e51a6d" title="二、具体应用场景的Skills"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">二、具体应用场景的Skills</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-35f8322b63ae80f984f3d2605bae20b8" data-id="35f8322b63ae80f984f3d2605bae20b8"><span><div id="35f8322b63ae80f984f3d2605bae20b8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35f8322b63ae80f984f3d2605bae20b8" title="场景1：软件开发"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">场景1：软件开发</span></span></h3><div class="notion-text notion-block-35f8322b63ae806e84b0f3b6f10f1bf8">需要的技能：（Superpowers、GStac、前端大神（mattpocock/skills））</div><ol start="1" class="notion-list notion-list-numbered notion-block-35f8322b63ae80c69870fbec854abe62" style="list-style-type:decimal"><li><b><span class="notion-inline-underscore">Superpowers</span></b></li><ol class="notion-list notion-list-numbered notion-block-35f8322b63ae80c69870fbec854abe62" style="list-style-type:lower-alpha"><div class="notion-text notion-block-35f8322b63ae8030b26ddbdf5ac64e4e">测试驱动开发（TDD）为该技能的核心驱动</div><div class="notion-text notion-block-35f8322b63ae80dda3ddd39205950f5f">标准化工作流程：需求头脑风暴→任务精细拆解→子Agent执行</div></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-35f8322b63ae80e68f7ae452ff37409b" style="list-style-type:decimal"><li><b><span class="notion-inline-underscore">GStac</span></b></li><ol class="notion-list notion-list-numbered notion-block-35f8322b63ae80e68f7ae452ff37409b" style="list-style-type:lower-alpha"><div class="notion-text notion-block-35f8322b63ae80188b7cfe32ee7094ad">全能专家团队阵容（23+专家角色）：首席执行官、视觉设计师、后端工程师等等</div><div class="notion-text notion-block-35f8322b63ae80b1a696cc57e148f4ac"><b><span class="notion-inline-underscore">实战全流程：</span></b><div class="notion-text-children"><div class="notion-text notion-block-35f8322b63ae80cab0f3f657d09b8410">运行命令/office-hours,ai就会用记者模式（拷问模式）询问你关键信息</div><div class="notion-text notion-block-35f8322b63ae80288caeee7f2fb3728c">→/plan-ceo-review(CEO高度审视计划)，确保战略最优解，排除低效逻辑</div><div class="notion-text notion-block-35f8322b63ae80b6be24d90cc1a5ecb4">→/review, 资深工程师复核</div><div class="notion-text notion-block-35f8322b63ae80ff8b1af86fcf5c427b">→（额外验证）/qa 浏览器验证</div><div class="notion-text notion-block-35f8322b63ae809fa166db011c4c6dd5">→/ship,自动化发布；同步代码》运行测试》推送代码》开启PR</div></div></div></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-35f8322b63ae80f1809fe3e556e8addd" style="list-style-type:decimal"><li><span class="notion-inline-underscore">前端大神（mattpocock/skills）</span></li><ol class="notion-list notion-list-numbered notion-block-35f8322b63ae80f1809fe3e556e8addd" style="list-style-type:lower-alpha"><div class="notion-text notion-block-35f8322b63ae80568e40ef1cf31a5378">解决人类和AI Agent沟通对不齐的问题：<div class="notion-text-children"><div class="notion-text notion-block-35f8322b63ae80e9991fe12f38bef3cb">困境一：理解偏差（AI没听懂，废话连篇）</div><div class="notion-text notion-block-35f8322b63ae8041af4def2672c36819">困境二：执行失效（代码跑不通，逻辑不可用）</div><div class="notion-text notion-block-35f8322b63ae80a6a872e3be00ff5f67">困境三：架构隐患（缺乏规划，维护火葬场）</div></div></div><div class="notion-text notion-block-35f8322b63ae802893ddf0d51184b51a"><b><span class="notion-inline-underscore">实战流程：</span></b><div class="notion-text-children"><div class="notion-text notion-block-35f8322b63ae8043b4f6f0a1b5cbe97d">“帮我加个登录功能”→/grill-me 拷问模式开启 （得出需求精准化：SSO多租户登录）→/triage   Issue 分诊（核心阻塞任务，分清轻重缓急，细枝末节小bug）→/improve (架构急救包，站在全局视角审视代码，重构未来可能出现的问题)</div></div></div><h3 class="notion-h notion-h2 notion-block-35f8322b63ae803f9960d71cff1c1174" data-id="35f8322b63ae803f9960d71cff1c1174"><span><div id="35f8322b63ae803f9960d71cff1c1174" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35f8322b63ae803f9960d71cff1c1174" title="场景二：前端页面设计"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b><span class="notion-inline-underscore">场景二：前端页面设计</span></b></span></span></h3><div class="notion-text notion-block-35f8322b63ae80a99932dede402da655">缺点：样式单一死板</div><div class="notion-text notion-block-35f8322b63ae80e489fbdabcfc085270"><b>推荐技能：</b></div><div class="notion-text notion-block-35f8322b63ae8043a8a5e15b53576d9c"><b>1、frontend-design:现代布局，极简风格，动感交互，内置50+顶级设计规范</b></div><div class="notion-text notion-block-35f8322b63ae80feb3a5f0b2d41902a8"><b>2、ui-ux-pro-max-skill:直接配了一个设计总监，不靠直觉，靠专业设计底层逻辑，内置行业160多个风格设计细节</b></div><div class="notion-text notion-block-35f8322b63ae8038aacefd753ef92d9e"><span class="notion-inline-underscore">frontend-design(负责“出彩”) + ui-ux-pro-max（负责“专业”）</span></div><div class="notion-blank notion-block-35f8322b63ae801888bfd2fc5b5bb135"> </div><h3 class="notion-h notion-h2 notion-block-35f8322b63ae80c19fcdcf0b124009c2" data-id="35f8322b63ae80c19fcdcf0b124009c2"><span><div id="35f8322b63ae80c19fcdcf0b124009c2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#35f8322b63ae80c19fcdcf0b124009c2" title="场景三：内容创作"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">场景三：内容创作</span></span></h3><div class="notion-text notion-block-35f8322b63ae80f99beef91502b27713">推荐技能</div><div class="notion-text notion-block-35f8322b63ae8015b4bac84372e6f103"><b><span class="notion-inline-underscore">baoyu-skills</span></b></div><div class="notion-text notion-block-35f8322b63ae80b0932ed8ece18f7cd8">高质量产出、专业设计师水平封面</div><div class="notion-text notion-block-35f8322b63ae806c9727f4a9b027339b">文字》信息图（可视化信息图）》自动碎活（转格式，做排版）》一键发布</div><div class="notion-text notion-block-35f8322b63ae808ba9d1dc537639a337">生产和发布内容一体化</div><div class="notion-text notion-block-35f8322b63ae80f4a9e6cb23d829c742">里面好用的技能：<div class="notion-text-children"><div class="notion-text notion-block-35f8322b63ae8010b9ecd4108bfd2538">内容技能（content skills）：内容的生成和发布，极其丰富的模板</div><div class="notion-text notion-block-35f8322b63ae80b69f51cbdb01b04789">xhs-images skill：8种排版模式，markdown格式→html页面格式</div><div class="notion-text notion-block-35f8322b63ae80bfb926d256840dd043">翻译skill：分析→翻译→校正→润色</div><div class="notion-text notion-block-35f8322b63ae80fb8f30dcad9b586b85">发布微信skill、发布微博skill：一键跨平台分发</div></div></div><div class="notion-text notion-block-35f8322b63ae80f5b6fdf2c2b40b6c99"><div class="notion-text-children"><div class="notion-blank notion-block-35f8322b63ae8041af03c179db87a0a6"> </div></div></div><div class="notion-blank notion-block-35f8322b63ae801f937bdc2b58fb2587"> </div></ol></ol><div class="notion-blank notion-block-35f8322b63ae80368b65fd1a42f56a0f"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ OpenClaw安装教程]]></title>
            <link>https://tangly1024.com/article/post-81</link>
            <guid>https://tangly1024.com/article/post-81</guid>
            <pubDate>Thu, 05 Mar 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[ OpenClaw安装教程]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-3048322b63ae80caad51ceb9521ab7c5"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-31a8322b63ae80b999c4fdcce6911d75" data-id="31a8322b63ae80b999c4fdcce6911d75"><span><div id="31a8322b63ae80b999c4fdcce6911d75" class="notion-header-anchor"></div><a class="notion-hash-link" href="#31a8322b63ae80b999c4fdcce6911d75" title="1、windows下安装openclaw（不推荐）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1、windows下安装openclaw（不推荐）</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-31a8322b63ae80db9569f7bb25bf0452" data-id="31a8322b63ae80db9569f7bb25bf0452"><span><div id="31a8322b63ae80db9569f7bb25bf0452" class="notion-header-anchor"></div><a class="notion-hash-link" href="#31a8322b63ae80db9569f7bb25bf0452" title="1.1 安装nodejs"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.1 安装nodejs</span></span></h3><div class="notion-text notion-block-31a8322b63ae80d381e1c2d92898dbd6">官方下载地址：<a class="notion-link" href="https://cloud.tencent.com/developer/tools/blog-entry?target=https%3A%2F%2Fnodejs.org%2Fzh-cn%2Fdownload&amp;objectId=2626160&amp;objectType=1&amp;contentType=undefined" target="_blank" rel="noopener noreferrer">https://nodejs.org/zh-cn/download</a></div><div class="notion-text notion-block-31a8322b63ae8022ad8ccabef094c699">根据环境执行安装程序</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-31a8322b63ae803b9347e30b9fca6376" data-id="31a8322b63ae803b9347e30b9fca6376"><span><div id="31a8322b63ae803b9347e30b9fca6376" class="notion-header-anchor"></div><a class="notion-hash-link" href="#31a8322b63ae803b9347e30b9fca6376" title="1.2 开始安装openclaw"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.2 开始安装openclaw</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-31a8322b63ae80ab9acec13bf0160bc4" data-id="31a8322b63ae80ab9acec13bf0160bc4"><span><div id="31a8322b63ae80ab9acec13bf0160bc4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#31a8322b63ae80ab9acec13bf0160bc4" title="1.2.1 设置 PowerShell 执行权限"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.2.1 <b>设置 PowerShell 执行权限</b></span></span></h4><div class="notion-text notion-block-31a8322b63ae8033b5f1ee421741f0bd">以管理员身份运行 PowerShell：</div><ol start="1" class="notion-list notion-list-numbered notion-block-31a8322b63ae803baf4ec4b5fa474e15" style="list-style-type:decimal"><li>按 <code class="notion-inline-code">Win</code> 键，搜索 <b>PowerShell</b></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-31a8322b63ae80908566ca1686f4b512" style="list-style-type:decimal"><li>右键点击 <b>Windows PowerShell</b></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-31a8322b63ae80babbbdcb4ef92282f7" style="list-style-type:decimal"><li>选择 <b>以管理员身份运行</b></li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-31a8322b63ae806e9f23e044fd865c3c" style="list-style-type:decimal"><li>点击 <b>是</b> 确认</li></ol><div class="notion-text notion-block-31a8322b63ae80e0975cfe60130b51ba">在管理员 PowerShell 窗口中，依次执行以下两条命令：</div><div class="notion-text notion-block-31a8322b63ae807fb58bed6f7ab6d288"><b>（按全是）</b></div><div class="notion-text notion-block-31a8322b63ae80ce8c90f0bbb15aeeae"><b>这是什么意思？</b></div><ul class="notion-list notion-list-disc notion-block-31a8322b63ae803aa17fdf195f78258b"><li>第一条命令：允许当前用户运行本地和下载的脚本</li></ul><ul class="notion-list notion-list-disc notion-block-31a8322b63ae802aa0eefc99ddafaeb1"><li>第二条命令：允许当前用户运行本地和下载的脚本</li></ul><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-31a8322b63ae804d9684c62585bbccf0" data-id="31a8322b63ae804d9684c62585bbccf0"><span><div id="31a8322b63ae804d9684c62585bbccf0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#31a8322b63ae804d9684c62585bbccf0" title="1.2.2 执行一键安装命令"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.2.2 <b>执行一键安装命令</b></span></span></h4><div class="notion-text notion-block-31a8322b63ae8008aac3c5158882db12"><b>安装过程会自动完成：</b></div><ul class="notion-list notion-list-disc notion-block-31a8322b63ae808f8fd4ccc695faae1f"><li>检测系统环境</li></ul><ul class="notion-list notion-list-disc notion-block-31a8322b63ae80df8e04d510ff7cf24f"><li>安装必要依赖（Node.js 等）</li></ul><ul class="notion-list notion-list-disc notion-block-31a8322b63ae8054b99bc89250fd282f"><li>下载 OpenClaw 核心文件</li></ul><ul class="notion-list notion-list-disc notion-block-31a8322b63ae80da810bc67ef3a6f86e"><li>配置环境变量</li></ul><ul class="notion-list notion-list-disc notion-block-31a8322b63ae805c80b2c3c1f4a6aad9"><li>启动配置向导</li></ul><div class="notion-text notion-block-31a8322b63ae8016ae3fdcd9ab2ab030">注意：如果命令执行后，还是报错，可以自己到官网下载node安装包，自己安装node环境，注意版本最好在 node v22.x 以上，node官网下载地址：<a class="notion-link" href="https://cloud.tencent.com/developer/tools/blog-entry?target=https%3A%2F%2Fnodejs.org%2Fzh-cn%2Fdownload&amp;objectId=2626160&amp;objectType=1&amp;contentType=undefined" target="_blank" rel="noopener noreferrer">https://nodejs.org/zh-cn/download</a>，若还是不懂怎么安装，点头像进我主页找到我，拉你进交流群</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-31a8322b63ae805b90e0c753d9a5713d" data-id="31a8322b63ae805b90e0c753d9a5713d"><span><div id="31a8322b63ae805b90e0c753d9a5713d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#31a8322b63ae805b90e0c753d9a5713d" title="1.3 初始配置向导"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.3 <b>初始配置向导</b></span></span></h3><div class="notion-text notion-block-31a8322b63ae804594f5d0c1aa37ccd7">根据自己的需求配置即可</div><div class="notion-blank notion-block-31a8322b63ae80dea4cfc08237a8b281"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-31a8322b63ae802ebf79c17f2256b39f" data-id="31a8322b63ae802ebf79c17f2256b39f"><span><div id="31a8322b63ae802ebf79c17f2256b39f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#31a8322b63ae802ebf79c17f2256b39f" title="1.4 参考链接"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.4 参考链接</span></span></h3><div class="notion-text notion-block-31a8322b63ae8015b292dc80713f015f"><a class="notion-link" href="https://cloud.tencent.com/developer/article/2626160" target="_blank" rel="noopener noreferrer">https://cloud.tencent.com/developer/article/2626160</a></div><div class="notion-blank notion-block-3348322b63ae80f195ead40f28d5313f"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3348322b63ae80cc9980dc2a74afcabf" data-id="3348322b63ae80cc9980dc2a74afcabf"><span><div id="3348322b63ae80cc9980dc2a74afcabf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3348322b63ae80cc9980dc2a74afcabf" title="2、WSL下安装openclaw（推荐）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2、WSL下安装openclaw（推荐）</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3348322b63ae80b7965aca9a47d65fb4" data-id="3348322b63ae80b7965aca9a47d65fb4"><span><div id="3348322b63ae80b7965aca9a47d65fb4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3348322b63ae80b7965aca9a47d65fb4" title="2.1在Windows上安装wsl"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.1在Windows上安装wsl</span></span></h3><div class="notion-text notion-block-3348322b63ae80449817fe79bc7a1aa4">1.启动配置：</div><div class="notion-text notion-block-3348322b63ae8071a03ae376a77cb88c">启用适用于 Linux 的 Windows 子系统：打开powershell并输入：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3348322b63ae80ab8ca3d81d2788a98e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae487b73b-63e8-4018-bc29-a4e16e6a7b1a%3Aimage.png?table=block&amp;id=3348322b-63ae-80ab-8ca3-d81d2788a98e&amp;t=3348322b-63ae-80ab-8ca3-d81d2788a98e" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3348322b63ae80a8bae6e68e822c558a">2.检查WSL2的要求：win+R打开运行，然后输入winver检查windows版本</div><div class="notion-text notion-block-3348322b63ae80148045c1878d7e9896">3. 此版本需要大于1903</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3348322b63ae808bb3b4f67e5151980a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:517.984375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5022e189-af24-4efc-aa41-863730651cfe%3Aimage.png?table=block&amp;id=3348322b-63ae-808b-b3b4-f67e5151980a&amp;t=3348322b-63ae-808b-b3b4-f67e5151980a" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3348322b63ae80c5aaebff10dea1fd06">4. 启用虚拟化:以管理员打开powershell输入下列命令</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-3348322b63ae808fa801eebfe2785200"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2402b971-eab6-40bc-bf14-0be59b569c40%3Aimage.png?table=block&amp;id=3348322b-63ae-808f-a801-eebfe2785200&amp;t=3348322b-63ae-808f-a801-eebfe2785200" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-3348322b63ae805fbf41c74a0a93181e">5.安装</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-31a8322b63ae80bb8318f599aed23e50" data-id="31a8322b63ae80bb8318f599aed23e50"><span><div id="31a8322b63ae80bb8318f599aed23e50" class="notion-header-anchor"></div><a class="notion-hash-link" href="#31a8322b63ae80bb8318f599aed23e50" title="2.2给配置wsl相关内容"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.2给配置wsl相关内容</span></span></h3><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3348322b63ae803b8240e51a59749a25" data-id="3348322b63ae803b8240e51a59749a25"><span><div id="3348322b63ae803b8240e51a59749a25" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3348322b63ae803b8240e51a59749a25" title="2.2.1配置镜像网络模式"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.2.1<b>配置镜像网络模式</b></span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-3348322b63ae80aba18cc147d132ade7" style="list-style-type:decimal"><li><b>创建配置文件：</b> 在 Windows 文件资源管理器中导航至 <code class="notion-inline-code">C:\Users\&lt;你的用户名&gt;\</code>。若不存在 <code class="notion-inline-code">.wslconfig</code> 文件，则新建一个（注意文件名以 <code class="notion-inline-code">.</code> 开头）。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3348322b63ae80e99836dd0d849fddfa" style="list-style-type:decimal"><li><b>编辑配置：</b> 用记事本打开该文件，填入以下内容：</li></ol><div class="notion-text notion-block-3348322b63ae809ebb2bc61245e956e6"><b>应用配置与验证：</b> 保存文件后，在 PowerShell 中执行以下命令关闭 WSL：</div><h4 class="notion-h notion-h3 notion-h-indent-2 notion-block-3348322b63ae80f8a6fdda25542dbd9a" data-id="3348322b63ae80f8a6fdda25542dbd9a"><span><div id="3348322b63ae80f8a6fdda25542dbd9a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3348322b63ae80f8a6fdda25542dbd9a" title="2.2.2配置防火墙规则（示例）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.2.2<b>配置防火墙规则（示例）</b></span></span></h4><div class="notion-text notion-block-3348322b63ae804cbc69d4c8126d6f22">若需要在 WSL 中运行服务并开放特定端口（例如 OpenClaw 使用的 <code class="notion-inline-code">18789</code> 端口），可在 Windows PowerShell（管理员）中创建入站规则：</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3348322b63ae80c487b9efcf7669c56a" data-id="3348322b63ae80c487b9efcf7669c56a"><span><div id="3348322b63ae80c487b9efcf7669c56a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3348322b63ae80c487b9efcf7669c56a" title="2.3wsl内部安装基础组件和openclaw的环境"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.3wsl内部<b>安装基础组件和openclaw的环境</b></span></span></h3><div class="notion-text notion-block-3348322b63ae8016b185f0a7a781ebf7">1.安装基础工具</div><div class="notion-text notion-block-3348322b63ae8037963ec4d13a43061d">2.<b>安装nvm</b></div><div class="notion-text notion-block-3348322b63ae80b9bfece9a9451ce8fd">3.<b>安装 Node</b></div><div class="notion-blank notion-block-3348322b63ae80518bd6de9619875e23"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3348322b63ae8033a815c02879bd4b1e" data-id="3348322b63ae8033a815c02879bd4b1e"><span><div id="3348322b63ae8033a815c02879bd4b1e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3348322b63ae8033a815c02879bd4b1e" title="2.4安装openclaw"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.4安装openclaw</span></span></h3><div class="notion-text notion-block-3348322b63ae80dc97b5f91a78a221f0">然后按需求配置openclaw的初始化配置相关内容</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-3348322b63ae80cdb68ac35f44d08b3d" data-id="3348322b63ae80cdb68ac35f44d08b3d"><span><div id="3348322b63ae80cdb68ac35f44d08b3d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3348322b63ae80cdb68ac35f44d08b3d" title="2.5参考链接"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.5参考链接</span></span></h3><ul class="notion-list notion-list-disc notion-block-3348322b63ae80918268db41a7dd6258"><li><a class="notion-link" href="https://zhuanlan.zhihu.com/p/386590591" target="_blank" rel="noopener noreferrer">https://zhuanlan.zhihu.com/p/386590591</a></li></ul><ul class="notion-list notion-list-disc notion-block-3348322b63ae80bf92bcc4a4b24cf4a3"><li><a class="notion-link" href="https://zhuanlan.zhihu.com/p/2008182925712183676" target="_blank" rel="noopener noreferrer">https://zhuanlan.zhihu.com/p/2008182925712183676</a></li></ul><ul class="notion-list notion-list-disc notion-block-3348322b63ae8089a929e410d2577e47"><li><a class="notion-link" href="https://damodev.csdn.net/69b1295c0a2f6a37c5969993.html#devmenu6" target="_blank" rel="noopener noreferrer">https://damodev.csdn.net/69b1295c0a2f6a37c5969993.html#devmenu6</a></li></ul><ul class="notion-list notion-list-disc notion-block-3348322b63ae8026870ffaa1062a3a1f"><li>配置飞书：<a class="notion-link" href="https://cloud.tencent.com/developer/article/2626160" target="_blank" rel="noopener noreferrer">https://cloud.tencent.com/developer/article/2626160</a></li></ul><ul class="notion-list notion-list-disc notion-block-3348322b63ae80b2a8c4edf306b0eb49"><li>clawhub安装配置：<a class="notion-link" href="https://docs.openclaw.ai/zh-CN/tools/clawhub" target="_blank" rel="noopener noreferrer">https://docs.openclaw.ai/zh-CN/tools/clawhub</a></li></ul></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Win10/11系统下WSL2+Ubuntu20.04的全流程安装指南]]></title>
            <link>https://tangly1024.com/article/post-76</link>
            <guid>https://tangly1024.com/article/post-76</guid>
            <pubDate>Fri, 12 Dec 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[全网最全Win10/11系统下WSL2+Ubuntu20.04的全流程安装指南（两种支持安装至 D 盘方式）]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-2778322b63ae8019b743eb30c34715db"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2c78322b63ae8071bff9ca8aa3075f39" data-id="2c78322b63ae8071bff9ca8aa3075f39"><span><div id="2c78322b63ae8071bff9ca8aa3075f39" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2c78322b63ae8071bff9ca8aa3075f39" title="前言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前言</span></span></h2><div class="notion-text notion-block-2c78322b63ae80198822fb00b0ccc047">WSL2（Windows Subsystem for Linux 2）是 Windows 提供的一种轻量级 Linux 运行环境，具备完整的 Linux 内核，并支持更好的文件系统性能和兼容性。它允许用户在 Windows 系统中运行 Linux 命令行工具和应用程序，而无需安装虚拟机或双系统。</div><div class="notion-text notion-block-2c78322b63ae80a8a73cc5b9e76dfe2b">本教程将介绍 如何安装 WSL2 并将 Ubuntu-20.04 安装到 D 盘，涵盖 WSL2 的启用、Ubuntu 的下载与解压、WSL2 发行版的导入，以及普通用户的设置与安装验证。这是全网最全的 WSL2 安装与配置指南，参考了大量博客教程，并结合实践经验，整理出最实用、最详细的方法，适用于所有 Windows 10/11 用户</div><div class="notion-blank notion-block-2c78322b63ae80cb81f6fc780db04172"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2c78322b63ae804f8cbcc70c88825d17" data-id="2c78322b63ae804f8cbcc70c88825d17"><span><div id="2c78322b63ae804f8cbcc70c88825d17" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2c78322b63ae804f8cbcc70c88825d17" title="1、安装WSL2"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1、安装WSL2</span></span></h2><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-2c78322b63ae80449f4ecfc2a99d5d30" data-id="2c78322b63ae80449f4ecfc2a99d5d30"><span><div id="2c78322b63ae80449f4ecfc2a99d5d30" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2c78322b63ae80449f4ecfc2a99d5d30" title="方法一：PowerShell 命令行快速安装 WSL2（推荐）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>方法一：PowerShell 命令行快速安装 WSL2（推荐）</b></span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-2c78322b63ae80849085eeeded7625e0" data-id="2c78322b63ae80849085eeeded7625e0"><span><div id="2c78322b63ae80849085eeeded7625e0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2c78322b63ae80849085eeeded7625e0" title="1. 启用 Windows 子系统（WSL）功能"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>1. 启用 Windows 子系统（WSL）功能</b></span></span></h4><div class="notion-text notion-block-2c78322b63ae807bbcbec0a1165ec70e">在 PowerShell（管理员模式）中运行：</div><div class="notion-text notion-block-2c78322b63ae80f09708f9dbc0e11fc0"><b>解释：</b></div><ul class="notion-list notion-list-disc notion-block-2c78322b63ae80529115f0094c696331"><li><code class="notion-inline-code">/all</code>：在所有用户上启用该功能</li></ul><ul class="notion-list notion-list-disc notion-block-2c78322b63ae80a0886cddfec993de18"><li><code class="notion-inline-code">/norestart</code>：启用功能后不会立即重启</li></ul><div class="notion-blank notion-block-2c78322b63ae8093bc52c354a1431ce1"> </div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-2c78322b63ae805bb8ddfaad123dad4b" data-id="2c78322b63ae805bb8ddfaad123dad4b"><span><div id="2c78322b63ae805bb8ddfaad123dad4b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2c78322b63ae805bb8ddfaad123dad4b" title="2. 启用虚拟机平台功能"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>2. 启用虚拟机平台功能</b></span></span></h4><div class="notion-text notion-block-2c78322b63ae80269394f95d65bbe0f3">WSL2 依赖 Windows 虚拟机功能，需要额外启用：</div><div class="notion-blank notion-block-2c78322b63ae8084a1d8e47a50f7d8f5"> </div><div class="notion-text notion-block-2c78322b63ae80eda913f3b61a9f5549"><b>3. 将 WSL 默认版本设置为 WSL2（视情况而定）</b></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-2c78322b63ae8053bf0fea15f427d4df" data-id="2c78322b63ae8053bf0fea15f427d4df"><span><div id="2c78322b63ae8053bf0fea15f427d4df" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2c78322b63ae8053bf0fea15f427d4df" title="4. 重启电脑"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>4. 重启电脑</b></span></span></h4><div class="notion-text notion-block-2c78322b63ae803a9b1fc791eb3f4dd0">以上命令执行完成后，请重启电脑，以确保所有更改生效。</div><div class="notion-blank notion-block-2c78322b63ae800ebb33e95c0ca9b684"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2c78322b63ae80f7b70cf3a58633bff1" data-id="2c78322b63ae80f7b70cf3a58633bff1"><span><div id="2c78322b63ae80f7b70cf3a58633bff1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2c78322b63ae80f7b70cf3a58633bff1" title="2、WSL2 安装 Ubuntu-20.04 至 D盘 （方法一 | 推荐）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2、<b>WSL2 安装 Ubuntu-20.04 至 D盘 （方法一 | 推荐）</b></span></span></h2><div class="notion-text notion-block-2c78322b63ae8071bbdfc33bad75d58f"><b>1. 创建文件夹</b>
• <code class="notion-inline-code">D盘</code> 创建 <b>WSL</b> 文件夹，并在该文件夹下创建 <b>Ubuntu-20.04</b> 文件夹。</div><div class="notion-blank notion-block-2c78322b63ae8032a453e52f410d0649"> </div><div class="notion-text notion-block-2c78322b63ae80d492bff6b5315edf35"><b>2. 下载并导出 Ubuntu-20.04</b>
首先，查看可用的 WSL 发行版：</div><div class="notion-blank notion-block-2c78322b63ae801e9f01d97338c7c9bf"> </div><div class="notion-text notion-block-2c78322b63ae809a9bdbc72d9ec1849f">安装 <b>Ubuntu-20.04</b> ：</div><div class="notion-blank notion-block-2c78322b63ae808a92b3e4ba02eb0bc2"> </div><div class="notion-text notion-block-2c78322b63ae80d18e02f4e90406ac95">安装完毕后会要求你创建一个新用户，按照提示输入用户名和密码即可，然后按 <code class="notion-inline-code">Ctrl + D</code> 退出即可。</div><div class="notion-blank notion-block-2c78322b63ae80da8d13c218881a0ccd"> </div><div class="notion-text notion-block-2c78322b63ae80128787ff3b5ff5407c">导出 <b>Ubuntu-20.04</b> 为 <code class="notion-inline-code">.tar</code> 文件</div><div class="notion-text notion-block-2c78322b63ae801eaf61c701f047b8a1">
这会下载 Ubuntu-20.04 并将其导出到 <code class="notion-inline-code">D:\WSL\Ubuntu-20.04\Ubuntu-20.04.tar</code>，然后可以执行<code class="notion-inline-code">ls D:\WSL\Ubuntu-20.04</code>查看<code class="notion-inline-code">Ubuntu-20.04.tar</code>已经成功导出。</div><div class="notion-blank notion-block-2c78322b63ae80c7a2bfff3c65cdd6ec"> </div><div class="notion-text notion-block-2c78322b63ae80a0843fd0c10eaeba39">取消注册原有的 Ubuntu-20.04，如果你已经安装了 Ubuntu-20.04（默认在 <code class="notion-inline-code">C</code> 盘），可以将其从 WSL 注销：</div><div class="notion-blank notion-block-2c78322b63ae80d280aad7c0e6bdc052"> </div><div class="notion-text notion-block-2c78322b63ae8013a385d1f5bcbad5a2"><b>3. 导入 Ubuntu-20.04 到 D 盘</b>
运行以下命令，将 Ubuntu-20.04 重新导入到 <code class="notion-inline-code">D:\WSL\Ubuntu-20.04</code>：</div><div class="notion-text notion-block-2c78322b63ae802fb976eb26b031ba2a">这将会把 <code class="notion-inline-code">Ubuntu-20.04</code> 安装到 <code class="notion-inline-code">D</code> 盘，而不是默认的 <code class="notion-inline-code">C</code> 盘，如图所示正在安装。</div><div class="notion-text notion-block-2e18322b63ae80f89407dc4383f28149">** 遇到的问题：<div class="notion-text-children"><div class="notion-text notion-block-2e18322b63ae80219ebbf4e6c8ffc4b6">C:\Windows\system32&gt; wsl --import Ubuntu-20.04 F:\wsl\Ubuntu-20.04 F:\wsl\Ubuntu-20.04\Ubuntu-20.04.tar --version 2
WSL 2 需要更新其内核组件。有关信息，请访问 <a class="notion-link" href="https://aka.ms/wsl2kernel" target="_blank" rel="noopener noreferrer">https://aka.ms/wsl2kernel</a></div></div></div><div class="notion-text notion-block-2e18322b63ae80f2bcc5f1a9b634f1b8">** 解决：<div class="notion-text-children"><div class="notion-text notion-block-2e18322b63ae80849ad6d6fa54efce8b"><b>访问 </b><b><a class="notion-link" href="https://aka.ms/wsl2kernel" target="_blank" rel="noopener noreferrer">https://aka.ms/wsl2kernel</a></b><b>，步骤 4 - 下载 Linux 内核更新包</b></div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2e18322b63ae80809dcdc6060b2d9426"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A8177d3b3-2812-4df5-b9cd-69f27c0c9152%3Aimage.png?table=block&amp;id=2e18322b-63ae-8080-9dcd-c6060b2d9426&amp;t=2e18322b-63ae-8080-9dcd-c6060b2d9426" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2c78322b63ae80ad8a67c1c8eeff5919">下载安装适合你电脑环境的更新包</div><div class="notion-blank notion-block-2e18322b63ae8045975ac98222239b05"> </div></div></div><div class="notion-text notion-block-2c78322b63ae806eae47c6c7ba58cdc1">在 <code class="notion-inline-code">D:\WSL\Ubuntu-20.04</code> 目录下，WSL2 发行版的文件存储在一个 <b>虚拟磁盘映像文件（ext4.vhdx）</b> 中，该文件用于存储整个 Ubuntu-20.04 文件系统，如下图所示：

<b>4. 启动 Ubuntu-20.04</b></div><div class="notion-text notion-block-2c78322b63ae803a90b3d970102cffa1">导入完成后，你可以启动 WSL：</div><div class="notion-text notion-block-2c78322b63ae80dead14c200abd574e8">但此时，你会发现默认以 <code class="notion-inline-code">root</code> 用户登录，因为 WSL 手动导入的 Ubuntu 不会自动创建普通用户，需要我们手动创建。</div><div class="notion-blank notion-block-2c78322b63ae80a7a914f1ac1a2b54a4"> </div><div class="notion-text notion-block-2c78322b63ae806b840efe2615b3cf35">创建新用户，在 WSL 终端（默认 <code class="notion-inline-code">root</code>）下运行：</div><div class="notion-text notion-block-2c78322b63ae806bbde9c177158c97c2">（请把 <code class="notion-inline-code">yourusername</code> 替换为你想使用的用户名）</div><div class="notion-blank notion-block-2c78322b63ae80b4a519d22d7bde4fb1"> </div><div class="notion-text notion-block-2c78322b63ae80f3b9bcfb08af1b518e">赋予新用户 <code class="notion-inline-code">sudo</code> 权限</div><div class="notion-text notion-block-2c78322b63ae80fba4f5cd6e1e62e63a">这样，新用户就可以使用 <code class="notion-inline-code">sudo</code> 进行管理员操作。</div><div class="notion-blank notion-block-2c78322b63ae80bbb6cdc535ae3964f1"> </div><div class="notion-text notion-block-2c78322b63ae8097b81ece0806165c8d"><b>5. 修改默认登录用户为普通用户（可选）</b>
以管理员身份运行<code class="notion-inline-code">PowerShell</code>，执行命令：</div><div class="notion-text notion-block-2c78322b63ae80278845ee58f8bae7e3">再次启动 WSL：</div><div class="notion-text notion-block-2c78322b63ae80e796d1c801afad67ca">此时，你会发现默认以普通用户登录：


</div><div class="notion-blank notion-block-2c78322b63ae80ad877be30bd9c72a1c"> </div><div class="notion-text notion-block-2c78322b63ae80448949e2939b682055">
</div><div class="notion-text notion-block-2c78322b63ae80589003fbe90cab2eb1">
</div><div class="notion-blank notion-block-2c78322b63ae80ff8c14e9245efad4b5"> </div><div class="notion-text notion-block-2c78322b63ae80339c90eb3b1de55cad">

</div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ollama简单安装使用教程]]></title>
            <link>https://tangly1024.com/article/post-80</link>
            <guid>https://tangly1024.com/article/post-80</guid>
            <pubDate>Wed, 11 Feb 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Ollama简单安装使用教程]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-3048322b63ae80cab6fbced5393c0599"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae80019c46ec68a5fa83ea" data-id="3048322b63ae80019c46ec68a5fa83ea"><span><div id="3048322b63ae80019c46ec68a5fa83ea" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae80019c46ec68a5fa83ea" title="推荐参考链接"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">推荐参考链接</span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-3048322b63ae803ca441e0702f8f3639" style="list-style-type:decimal"><li><span class="notion-link-mention"><a href="https://blog.csdn.net/qq_40999403/article/details/139320266" target="_blank" rel="noopener noreferrer" class="notion-link-mention-link"><img class="notion-link-mention-icon"/><span class="notion-link-mention-title">blog.csdn.net</span></a><div class="notion-link-mention-preview"><article class="notion-link-mention-card"><img class="notion-link-mention-preview-thumbnail" alt="blog.csdn.net" referrerPolicy="same-origin"/><div class="notion-link-mention-preview-content"><p class="notion-link-mention-preview-title">blog.csdn.net</p><p class="notion-link-mention-preview-description"></p><div class="notion-link-mention-preview-footer"><img class="notion-link-mention-preview-icon" referrerPolicy="same-origin"/><span class="notion-link-mention-preview-provider"></span></div></div></article></div></span></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3048322b63ae8019ba4ddd93ee74da89" style="list-style-type:decimal"><li><span class="notion-link-mention"><a href="https://zhuanlan.zhihu.com/p/704951717" target="_blank" rel="noopener noreferrer" class="notion-link-mention-link"><img class="notion-link-mention-icon"/><span class="notion-link-mention-title">zhuanlan.zhihu.com</span></a><div class="notion-link-mention-preview"><article class="notion-link-mention-card"><img class="notion-link-mention-preview-thumbnail" alt="zhuanlan.zhihu.com" referrerPolicy="same-origin"/><div class="notion-link-mention-preview-content"><p class="notion-link-mention-preview-title">zhuanlan.zhihu.com</p><p class="notion-link-mention-preview-description"></p><div class="notion-link-mention-preview-footer"><img class="notion-link-mention-preview-icon" referrerPolicy="same-origin"/><span class="notion-link-mention-preview-provider"></span></div></div></article></div></span></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-3048322b63ae80478887f01676a1a9e1" style="list-style-type:decimal"><li><span class="notion-link-mention"><a href="https://zhuanlan.zhihu.com/p/24106664972" target="_blank" rel="noopener noreferrer" class="notion-link-mention-link"><img class="notion-link-mention-icon"/><span class="notion-link-mention-title">zhuanlan.zhihu.com</span></a><div class="notion-link-mention-preview"><article class="notion-link-mention-card"><img class="notion-link-mention-preview-thumbnail" alt="zhuanlan.zhihu.com" referrerPolicy="same-origin"/><div class="notion-link-mention-preview-content"><p class="notion-link-mention-preview-title">zhuanlan.zhihu.com</p><p class="notion-link-mention-preview-description"></p><div class="notion-link-mention-preview-footer"><img class="notion-link-mention-preview-icon" referrerPolicy="same-origin"/><span class="notion-link-mention-preview-provider"></span></div></div></article></div></span></li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-3048322b63ae800e962fc5c8f37b7130" style="list-style-type:decimal"><li><span class="notion-link-mention"><a href="https://blog.csdn.net/weixin_62437742/article/details/144965663" target="_blank" rel="noopener noreferrer" class="notion-link-mention-link"><img class="notion-link-mention-icon"/><span class="notion-link-mention-title">blog.csdn.net</span></a><div class="notion-link-mention-preview"><article class="notion-link-mention-card"><img class="notion-link-mention-preview-thumbnail" alt="blog.csdn.net" referrerPolicy="same-origin"/><div class="notion-link-mention-preview-content"><p class="notion-link-mention-preview-title">blog.csdn.net</p><p class="notion-link-mention-preview-description"></p><div class="notion-link-mention-preview-footer"><img class="notion-link-mention-preview-icon" referrerPolicy="same-origin"/><span class="notion-link-mention-preview-provider"></span></div></div></article></div></span></li></ol><div class="notion-blank notion-block-3048322b63ae803ab4c8fcdbe286f416"> </div><div class="notion-blank notion-block-3048322b63ae806b88bfceb3519465e1"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[在web页面使用mediamtx流媒体服务器播放rtsp视频流]]></title>
            <link>https://tangly1024.com/article/post-79</link>
            <guid>https://tangly1024.com/article/post-79</guid>
            <pubDate>Wed, 11 Feb 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[在web页面使用mediamtx流媒体服务器播放rtsp视频流]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-3048322b63ae805fa106e3039ec583d1"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae80a7a9b3d7c009943237" data-id="3048322b63ae80a7a9b3d7c009943237"><span><div id="3048322b63ae80a7a9b3d7c009943237" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae80a7a9b3d7c009943237" title="1、使用背景"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1、使用背景</span></span></h2><div class="notion-text notion-block-3048322b63ae801fa4ddc2d6d39508f3">mediamtx真乃神器也！
项目地址：<a class="notion-link" href="https://github.com/bluenviron/mediamtx/tree/main" target="_blank" rel="noopener noreferrer">https://github.com/bluenviron/mediamtx/tree/main</a>
参考（感谢博主）：<a class="notion-link" href="https://blog.csdn.net/qq_20937557/article/details/132271507?spm=1001.2014.3001.5501" target="_blank" rel="noopener noreferrer">https://blog.csdn.net/qq_20937557/article/details/132271507?spm=1001.2014.3001.5501</a></div><div class="notion-text notion-block-3048322b63ae80b39073fe7f1e41d2fe">先说优点：</div><div class="notion-text notion-block-3048322b63ae80d6a7acd129e44f435c">1、不管是在windows还是linux，安装和使用都极其简单；
2、作者写的文档比较详细，使用过程中遇到的问题很少，不需要去参考其他文档；
3、在github上进行提问以及bug提交作者都能回复并及时修复bug，非常赞；
4、支持rtsp、rtmp、hsl；并且延迟处理的比较好；
5、集成webrtc可直接播放视频；
6、可进行视频访问加密处理；</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae80b0aa9ffb2276559245" data-id="3048322b63ae80b0aa9ffb2276559245"><span><div id="3048322b63ae80b0aa9ffb2276559245" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae80b0aa9ffb2276559245" title="2、安装ffmpeg"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2、安装ffmpeg</span></span></h2><div class="notion-text notion-block-3048322b63ae80c6a4a6c649a0d91541">这个比较简单，网上教程也比较多，此处不做介绍。</div><div class="notion-text notion-block-3048322b63ae807597b1cc8af6b11c61">ubuntu18.04上安装ffmpeg5.1可以参考：</div><div class="notion-text notion-block-3048322b63ae801c8a69da4bae16611c"><a class="notion-link" href="https://blog.csdn.net/haixiangyun/article/details/132583757" target="_blank" rel="noopener noreferrer">ubuntu18安装ffmpeg5</a></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae80fc8e6cf4393f5c0a90" data-id="3048322b63ae80fc8e6cf4393f5c0a90"><span><div id="3048322b63ae80fc8e6cf4393f5c0a90" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae80fc8e6cf4393f5c0a90" title="3、下载运行mediamtx"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3、<b>下载运行mediamtx</b></span></span></h2><div class="notion-text notion-block-3048322b63ae80048456e74c5b0c47d4">下载地址：<a class="notion-link" href="https://github.com/bluenviron/mediamtx/releases" target="_blank" rel="noopener noreferrer">mediamtx下载地址</a></div><div class="notion-text notion-block-3048322b63ae80139be2fa7bb335d83d">运行方式：</div><ul class="notion-list notion-list-disc notion-block-3048322b63ae80609a55ecb219bfe511"><li>windows直接双击mediamtx.exe；</li></ul><ul class="notion-list notion-list-disc notion-block-3048322b63ae80419f10e7d4c0c6e99b"><li>linux下在当前目录直接运行sudo ./mediamtx</li></ul><div class="notion-blank notion-block-3048322b63ae804d8960dee80e8e1d97"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae802e8dc9fdc75d9737d1" data-id="3048322b63ae802e8dc9fdc75d9737d1"><span><div id="3048322b63ae802e8dc9fdc75d9737d1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae802e8dc9fdc75d9737d1" title="4、功能介绍"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">4、功能介绍</span></span></h2><div class="notion-text notion-block-3048322b63ae80c2ac8bc9dfbe9b171f"><b>mediamtx.yml文件的配置：</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-3048322b63ae80519bdaf2e28d1cbe4f" style="list-style-type:decimal"><li>日志：</li><ol class="notion-list notion-list-numbered notion-block-3048322b63ae80519bdaf2e28d1cbe4f" style="list-style-type:lower-alpha"><li>默认日志的logDestinations配置的是logDestinations，可加入file保存为日志文件；日志文件保存在当前目录下</li></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-3048322b63ae80b5950ed0abb219fddb" style="list-style-type:decimal"><li>API：</li><ol class="notion-list notion-list-numbered notion-block-3048322b63ae80b5950ed0abb219fddb" style="list-style-type:lower-alpha"><li>API配置设为yes，apiAddress是api的地址和端口号，默认127.0.0.1:9997，可以使用本机IP，0.0.0.0表示127.0.0.1和本机实际IP都可以访问</li></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-3048322b63ae803ea5f7fdb547d64eec" style="list-style-type:decimal"><li>视频流：</li><ol class="notion-list notion-list-numbered notion-block-3048322b63ae803ea5f7fdb547d64eec" style="list-style-type:lower-alpha"><div class="notion-text notion-block-3048322b63ae806b95eedce455e05e89">此处介绍一下rtsp，其他的一样，protocols中使用的协议可以根据设置的先后顺序进行优先排序</div></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-3048322b63ae80acac89c2ae2dde3a15" style="list-style-type:decimal"><li>webrtc</li><ol class="notion-list notion-list-numbered notion-block-3048322b63ae80acac89c2ae2dde3a15" style="list-style-type:lower-alpha"><div class="notion-text notion-block-3048322b63ae809aa8ccdb7174c66332">使用webrtc可以直接在网页中浏览视频</div></ol></ol><ol start="5" class="notion-list notion-list-numbered notion-block-3048322b63ae8035857be1f1aad4852e" style="list-style-type:decimal"><li><b> 配置现有非H265视频流</b></li><ol class="notion-list notion-list-numbered notion-block-3048322b63ae8035857be1f1aad4852e" style="list-style-type:lower-alpha"><div class="notion-text notion-block-3048322b63ae8032957dcc3ac577b5c8">如果你的需求是能直接在网页中播放H264的rtsp或者其他视频流，stream01是你起的名字，source是视频流地址，在此处配置后可直接访问，使用webrtc直接访问：<a class="notion-link" href="http://127.0.0.1:8889/stream01%E5%B0%B1%E8%83%BD%E5%87%BA%E6%9D%A5%E8%A7%86%E9%A2%91" target="_blank" rel="noopener noreferrer">http://127.0.0.1:8889/stream01就能出来视频</a></div></ol></ol><ol start="6" class="notion-list notion-list-numbered notion-block-3048322b63ae80e4add0ff6566746528" style="list-style-type:decimal"><li><b>配置使用ffmpeg转换流</b></li><ol class="notion-list notion-list-numbered notion-block-3048322b63ae80e4add0ff6566746528" style="list-style-type:lower-alpha"><li>runOnInit：配置ffmpeg转换命令，服务器启动后就一直在后台执行转换命令，使用webrtc直接访问：http://127.0.0.1:8889/stream11就能出来视频</li><li>runOnDemand：配置ffmpeg转换命令，只有在调用流时才会执行转换命令，</li><div class="notion-text notion-block-3048322b63ae803b87f6f85d7c3e3bc0">使用webrtc直接访问：<a class="notion-link" href="http://127.0.0.1:8889/stream22" target="_blank" rel="noopener noreferrer">http://127.0.0.1:8889/stream22</a> 时，或者播放rtsp://127.0.0.1:8554/stream22时才会调用ffmpeg转换命令，还可以调整runOnDemandCloseAfter参数来配置不调用后关闭执行转换命令的时间</div><h2 class="notion-h notion-h1 notion-block-3048322b63ae8095ba06fe4f2356be6e" data-id="3048322b63ae8095ba06fe4f2356be6e"><span><div id="3048322b63ae8095ba06fe4f2356be6e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae8095ba06fe4f2356be6e" title="5、API使用"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">5、API使用</span></span></h2><div class="notion-text notion-block-3048322b63ae80c1a434c4b0b96032ba">API文档：<a class="notion-link" href="https://bluenviron.github.io/mediamtx/" target="_blank" rel="noopener noreferrer">https://bluenviron.github.io/mediamtx/</a>
1、 <a class="notion-link" href="http://127.0.0.1:9997/v2/paths/list" target="_blank" rel="noopener noreferrer">http://127.0.0.1:9997/v2/paths/list</a>
查看当前的视频流，包括yml里面配置的和通过api添加的</div><div class="notion-text notion-block-3048322b63ae80c5b227dea3a8785ff8">2、 <a class="notion-link" href="http://127.0.0.1:9997/v2/config/paths/add/stream11%EF%BC%8C%E6%AD%A4%E5%A4%84%E6%88%91%E4%BD%BF%E7%94%A8postman%E6%BC%94%E7%A4%BA%E8%B0%83%E7%94%A8api%E3%80%82" target="_blank" rel="noopener noreferrer">http://127.0.0.1:9997/v2/config/paths/add/stream11，此处我使用postman演示调用api。</a>
（1）添加一个现有的视频流，添加后访问http://127.0.0.1:8889/stream11</div><div class="notion-text notion-block-3048322b63ae808e8754fdc203fdb6da">（2）添加一个使用ffmpeg转换的视频流</div><div class="notion-text notion-block-3048322b63ae80faabdaf1f73926a7b8">我这个ffmpeg命令是把原来H265的视频转换为H264的rtsp视频流，访问http://127.0.0.1:8889/stream12，简单说明一下我使用的参数：
-vcodec libx264 输出流为h264格式
-b:v 1024k 视频码流
-vf scale=1280:720 分辨率
-bf 0 禁用B帧，因为webrtc在网页调用时控制台一直输出 WebRTC doesn’t support H264 streams with B-frames，没有此问题的可以不设置</div><div class="notion-text notion-block-3048322b63ae80af8cecd0d7175ec3c1">（3）<a class="notion-link" href="http://192.168.234.133:9997/v2/config/paths/remove/stream11" target="_blank" rel="noopener noreferrer">http://192.168.234.133:9997/v2/config/paths/remove/stream11</a>  ，删除stream11流，remove后面的参数就是要删除的名字</div></ol></ol><div class="notion-blank notion-block-3048322b63ae8077a94afe9e216c650a"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae808b9c69ff9cee81316e" data-id="3048322b63ae808b9c69ff9cee81316e"><span><div id="3048322b63ae808b9c69ff9cee81316e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae808b9c69ff9cee81316e" title="6、参考链接"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6、参考链接</span></span></h2><div class="notion-text notion-block-3048322b63ae80458ee2c7b72a4e07b4"><a class="notion-link" href="https://blog.csdn.net/haixiangyun/article/details/132489160" target="_blank" rel="noopener noreferrer">https://blog.csdn.net/haixiangyun/article/details/132489160</a></div><div class="notion-blank notion-block-3048322b63ae80f0bbd0fd0b097987d9"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VScode实现本地与远端同步开发]]></title>
            <link>https://tangly1024.com/article/post-78</link>
            <guid>https://tangly1024.com/article/post-78</guid>
            <pubDate>Wed, 11 Feb 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[VScode实现本地与远端同步开发( 用同步代码到指定服务器的方式实现)]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-3048322b63ae80d29f16e4fb8c37d469"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae806297cae833596b3116" data-id="3048322b63ae806297cae833596b3116"><span><div id="3048322b63ae806297cae833596b3116" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae806297cae833596b3116" title="1、在VScode中安装SFTP插件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1、<b>在VScode中安装</b><b><a class="notion-link" href="https://so.csdn.net/so/search?q=SFTP&amp;spm=1001.2101.3001.7020" target="_blank" rel="noopener noreferrer">SFTP</a></b><b>插件</b></span></span></h2><div class="notion-text notion-block-3048322b63ae80349e55c1ae7d371fe2">直接在扩展程序处搜索&quot;SFTP&quot;,安装这个插件</div><div class="notion-blank notion-block-3048322b63ae8084816edab55ae473f2"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae80839fade75e6a88ed0c" data-id="3048322b63ae80839fade75e6a88ed0c"><span><div id="3048322b63ae80839fade75e6a88ed0c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae80839fade75e6a88ed0c" title="2、用VScode打开你想要同步的那份代码所在的文件夹 "><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2、<b>用VScode打开你想要同步的那份代码所在的文件夹 </b></span></span></h2><div class="notion-blank notion-block-3048322b63ae802d900afd3273426501"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae80648750e080a7de93db" data-id="3048322b63ae80648750e080a7de93db"><span><div id="3048322b63ae80648750e080a7de93db" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae80648750e080a7de93db" title="3、Ctrl+shift+P唤醒VScode命令行，输入SFTP:config,点击这个"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3、<b>Ctrl+shift+P唤醒VScode命令行，输入SFTP:config,点击这个</b></span></span></h2><div class="notion-text notion-block-3048322b63ae805da533e96d7a25765a"> vscode会自动在当前文件夹(src)下创建一个.vscode文件夹，里面有一个sftp.json文件，其内容为： </div><div class="notion-text notion-block-3048322b63ae806bb512e093ccafd813">参数解释：</div><div class="notion-text notion-block-3048322b63ae80a589d6f1816ce6be56">name： 你为这个sftp的连接起一个命名
host：目标主机IP地址，需自己查看并填写（先确保远端开启了sftp服务）
protocol：传输协议，sftp，不需要改动
port：传输端口，默认22，不需要改动
username：登录的用户名，需自己确认
password：若不想每次登录输入密码，可以增加此字段，硬编码进去
privateKeyPath：本地私钥，与password选用一个就好
remotePath：远端同步的路径
uploadOnSave：当你按下 ctrl + s 时，自动同步代码到远端服务器
ignore：不需要同步的目录or文件, 其中*** 表示所有目录， ***/.git 表示所有目录下的.git文件都不进行同步</div><div class="notion-text notion-block-3048322b63ae801584a1dce7725aba5c">profiles配置了2个服务器，等后面你要同步的时候你可以自己挑选使用哪个服务器</div><div class="notion-text notion-block-3048322b63ae80b19cedf8e5a624d196">填入相应内容，保存。</div><div class="notion-text notion-block-3048322b63ae80029e0ff2e34666c2d0">上面的选项里的“uploadOnSave”：表示每当你保存时就会自动将本地代码同步到服务器端。如果是false，就需要手动进行同步操作</div><div class="notion-text notion-block-3048322b63ae80f3a73dcc251c5f34c9">tips:这里有一个非常值得注意的点，就是remotePath要填入远程服务器端要同步你的代码的地址，</div><div class="notion-text notion-block-3048322b63ae80568262edca7268da71">remotePath填写的路径是：/home/zht/ZPN_zht/src</div><div class="notion-text notion-block-3048322b63ae80eaa7bbc4fdc18387d1">那么在服务器端的 /home/zht/ZPN_zht/src  处同步这个代码</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae808b86f6f9470c2e4a62" data-id="3048322b63ae808b86f6f9470c2e4a62"><span><div id="3048322b63ae808b86f6f9470c2e4a62" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae808b86f6f9470c2e4a62" title="4、选择服务器"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>4、选择服务器</b></span></span></h2><div class="notion-text notion-block-3048322b63ae80d198f1fe44973d0562">可以用 CTRL + SHIFT + P 调出命令窗口，选择“Set profile”, 就能选择你现在要连接到哪个服务器。</div><div class="notion-text notion-block-3048322b63ae8059bd9de08406ecdd9c">选择完服务器之后，再进行下面的同步操作。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae8088a01df8326fdbe0f5" data-id="3048322b63ae8088a01df8326fdbe0f5"><span><div id="3048322b63ae8088a01df8326fdbe0f5" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae8088a01df8326fdbe0f5" title="5、同步"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>5、同步</b></span></span></h2><div class="notion-text notion-block-3048322b63ae803e953bf738dc69f485">可以用 CTRL + SHIFT + P 调出命令窗口，选择同步</div><div class="notion-text notion-block-3048322b63ae8077848be5baacbe1b4e">也可以点击左侧“SFTP”插件的按钮，右击这个MyServer文件件，将当前文件夹上传到指定远程目录下。</div><div class="notion-text notion-block-3048322b63ae8085b549d20a3e0faffd">在本地端进行代码修改，Ctrl+S保存，自动同步到服务器端</div><div class="notion-blank notion-block-3048322b63ae80abaa0ccf423ab8d357"> </div><div class="notion-text notion-block-3048322b63ae8099b605d53df83595c7">手动进行同步操作</div><div class="notion-text notion-block-3048322b63ae80bc83d4ce302b24ef73">在src文件夹中的空白处右击，点击“Sync Local -&gt; Remote”</div><div class="notion-blank notion-block-3048322b63ae800dad03e77c860117f8"> </div><div class="notion-text notion-block-3048322b63ae805caf6af2f33b6c9c0f">点击左侧最下方的那个STFP的按钮，可以查看服务器端的文件情况(此时是只读的模式，不能对服务器端的代码进行修改)</div><div class="notion-blank notion-block-3048322b63ae800d8d9ad27d9981b74c"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-3048322b63ae80bcb282e113cc863e6e" data-id="3048322b63ae80bcb282e113cc863e6e"><span><div id="3048322b63ae80bcb282e113cc863e6e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3048322b63ae80bcb282e113cc863e6e" title="6、参考链接"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">6、参考链接</span></span></h2><div class="notion-text notion-block-3048322b63ae802f95a8f73a3bd4fe23"><a class="notion-link" href="https://blog.csdn.net/zht2002/article/details/130349227" target="_blank" rel="noopener noreferrer">https://blog.csdn.net/zht2002/article/details/130349227</a></div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>