<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>Violet_ice紫冰</name>
  </author>
  <generator uri="https://hexo.io/">Hexo</generator>
  <id>https://www.vlice.cn/</id>
  <link href="https://www.vlice.cn/" rel="alternate"/>
  <link href="https://www.vlice.cn/atom.xml" rel="self"/>
  <rights>All rights reserved 2026, Violet_ice紫冰</rights>
  <subtitle>测试</subtitle>
  <title>紫冰的小屋</title>
  <updated>2026-11-10T05:01:17.001Z</updated>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="极客工程" scheme="https://www.vlice.cn/categories/%E6%9E%81%E5%AE%A2%E5%B7%A5%E7%A8%8B/"/>
    <category term="AI" scheme="https://www.vlice.cn/categories/%E6%9E%81%E5%AE%A2%E5%B7%A5%E7%A8%8B/AI/"/>
    <category term="DSH" scheme="https://www.vlice.cn/tags/DSH/"/>
    <category term="插件" scheme="https://www.vlice.cn/tags/%E6%8F%92%E4%BB%B6/"/>
    <category term="DeepSeek" scheme="https://www.vlice.cn/tags/DeepSeek/"/>
    <category term="成本统计" scheme="https://www.vlice.cn/tags/%E6%88%90%E6%9C%AC%E7%BB%9F%E8%AE%A1/"/>
    <category term="开源" scheme="https://www.vlice.cn/tags/%E5%BC%80%E6%BA%90/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><h1 id="1-前言（人类视角）"><a href="#1-前言（人类视角）" class="headerlink" title="1. 前言（人类视角）"></a>1. 前言（人类视角）</h1><p>装了个插件，不生效。</p><p>这种事最烦的地方在于它不报错。没有红字，没有异常，没有「加载失败」。安装命令说成功了，插件列表里也有它，然后界面上什么都没有。</p><p>我在 GitHub 上找的 <code>dsh-usage-board</code>，看描述是统计 token 用量和成本的。装完，刷新，左下角没有按钮，侧栏没有面板，设置里也没多出入口。</p><p>这种事自己翻源码太慢，我直接把包和现象丢给了模型。下面是它那天的排查与开发记录，我基本没动手，只在关键节点做判断。为了保留它当时怎么想的，下面这几节用它的视角写。</p><h1 id="2-排查（AI视角）"><a href="#2-排查（AI视角）" class="headerlink" title="2. 排查（AI视角）"></a>2. 排查（AI视角）</h1><p>接到的问题是一个已安装的第三方插件没有产生任何 UI。先分离宿主侧和客户端侧，避免在错误的层里找。</p><p>宿主侧探活：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">curl -s http://127.0.0.1:10715/usage-board/api/status</span><br>&#123;&quot;ok&quot;:true,...&#125;<br></code></pre></td></tr></table></figure><p>200，说明 Node 侧已挂载，进程在，路由也在。宿主侧没有问题。</p><p>所以断点在 Client。读注册入口：</p><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs js">ctx.<span class="hljs-title function_">inject</span>([<span class="hljs-string">&#x27;sidebarRightTabs&#x27;</span>, <span class="hljs-string">&#x27;sidebarRight&#x27;</span>], <span class="hljs-function">(<span class="hljs-params">ctx</span>) =&gt;</span> &#123;<br>  <span class="hljs-comment">// 注册侧栏</span><br>&#125;)<br></code></pre></td></tr></table></figure><p><code>inject</code> 的语义是等待依赖服务就绪后执行回调。这个版本的服务清单里没有 <code>sidebarRightTabs</code>，也没有 <code>sidebarRight</code>。服务不会就绪，回调不会执行，整段注册被跳过。</p><p>也就是说，它从头到尾没有注册过任何 UI 座位。</p><p>为了排除「注册到了别处」这种可能，把候选挂载点都查了一遍：<code>sidebar.footer.action</code>、<code>shell.overlay</code>、<code>sidebar.right.pane.tab</code>，三个位置都没有这个包的条目。判定成立。</p><div class="note note-info">            <p><strong>另外两处证据，指向同一个结论</strong></p><ol><li>数据源指向 <code>usage-stats-cache.json</code>，该文件由 <code>dsh-usage-stats</code> 生成，而这个包没有安装。即使界面能出来，统计也会是 0 条。</li><li>没设 <code>immediately</code>，模块默认不主动加载。</li></ol><p>三条合起来：这个包是给另一个宿主版本写的，在当前版本上只能当一个空转的后台 API。</p><p>不是安装方式错误，是目标宿主不存在。</p>          </div><p>这个结论有点残酷。查包的时候顺手看了下时间，它才三个月大。</p><p>三个月，在模型迭代周期里已经算隔代：模型换一版，客户端服务名改一轮，插件就接不上了。</p><p><strong>一个开源项目的保鲜期，现在比冰箱里的牛奶还短。</strong></p><p>作者当时大概率是认真写完、认真测过的。他只是瞄着一个现在已经不存在的宿主。</p><div class="note note-warning">            <p>这里留一条给后来写插件的人：<strong>依赖注入式的注册，失败是静默的。</strong></p><p><code>ctx.inject([&#39;a&#39;,&#39;b&#39;])</code> 里少一个服务，不会收到任何一个字的报错，只会得到「界面上什么都没有」。</p><p>UI 注册这块最好留个日志或者降级入口，否则下一个人就是我现在的主人。</p>          </div><h1 id="3-需求与实现（AI视角）"><a href="#3-需求与实现（AI视角）" class="headerlink" title="3. 需求与实现（AI视角）"></a>3. 需求与实现（AI视角）</h1><p>排查完之后，我收到的需求只有三行：</p><ul><li>每个会话花了多少</li><li>每个工作区花了多少</li><li>不用复杂的成本管理、不用预算、不用预警</li></ul><p>外加一条约束：<code>rf4</code> 和 <code>charge-power</code> 两个子工作区要各自独立显示，不能都算进父目录 <code>_Deepseek</code>。</p><p>于是有了 <code>dsh-session-cost</code>。</p><h2 id="3-1-Host-半边：聚合"><a href="#3-1-Host-半边：聚合" class="headerlink" title="3.1. Host 半边：聚合"></a>3.1. Host 半边：聚合</h2><p>数据全在 <code>ctx.sessionQuery</code> 里，在线会话和已落盘的一起读，token 取每条 <code>assistant/message</code> 的 <code>usage</code> 字段。</p><p>工作区归属用<strong>最长路径前缀</strong>：</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs text">D:\Code\_Deepseek\rf4          ← 归到 rf4<br>D:\Code\_Deepseek\charge-power ← 归到 charge-power<br>D:\Code\_Deepseek\xxx          ← 归到 _Deepseek<br></code></pre></td></tr></table></figure><p>这样 rf4 的会话不会被吸进父级。</p><p>另一个必须处理的情况：<strong>fork 出来的会话会把父会话的历史事件一起带过来</strong>。照单全收就会把同一段对话算两次钱。按 <code>inheritedEventCount</code> 跳过继承的那部分，只算 fork 之后新增的事件。</p><h2 id="3-2-Client-半边：看板"><a href="#3-2-Client-半边：看板" class="headerlink" title="3.2. Client 半边：看板"></a>3.2. Client 半边：看板</h2><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1109/12c3641fffe46da5.png" srcset="/img/loading.gif" lazyload alt="成本按钮"><figcaption aria-hidden="true">成本按钮</figcaption></figure></p><p>左侧栏底部、头像上面一个「成本」。</p><p>点开是居中面板，三层结构：</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1109/a88cdeb97b107648.png" srcset="/img/loading.gif" lazyload alt="成本预览"><figcaption aria-hidden="true">成本预览</figcaption></figure></p><ul><li><strong>总计</strong>：32 个会话 &#x2F; 4289 次调用 &#x2F; 1.21B token</li><li><strong>工作区</strong>：按支出降序，带相对占比条</li><li><strong>会话</strong>：标题、时间、模型、调用次数、token、金额</li></ul><p>子代理会话默认折成一行 <code>+ N 个子代理会话 · 金额</code>。一个工作区动辄几十个会话，不折叠没法看。</p><p>打开就取数，之后每 30 秒自动刷新，也可以手动点刷新。</p><h1 id="4-第一版算出来的钱，是错的（AI视角）"><a href="#4-第一版算出来的钱，是错的（AI视角）" class="headerlink" title="4. 第一版算出来的钱，是错的（AI视角）"></a>4. 第一版算出来的钱，是错的（AI视角）</h1><p>插件跑起来，面板显示 <strong>¥256.33</strong>。</p><p>这个数没法直接用。计算用的是内置默认单价，而那套单价是拍出来的，两个错误：</p><ol><li><strong>没有区分模型</strong>，直接按 <code>deepseek-v4-pro</code> 的价格套所有调用</li><li><strong>没有分峰谷</strong>，而 DeepSeek 的峰谷价差一倍</li></ol><p>于是 ¥256 不是「花了这么多」，是「尺子错了」。</p><div class="note note-danger">            <p><strong>数值型结果的风险</strong></p><p>算错不会报错，只会给出一个看起来很合理的错数。</p><p>如果主人没拿外部基准对一次账，这个数会一直挂在那儿，然后所有判断都建立在它上面。</p>          </div><h1 id="5-按官方定价重算（AI视角）"><a href="#5-按官方定价重算（AI视角）" class="headerlink" title="5. 按官方定价重算（AI视角）"></a>5. 按官方定价重算（AI视角）</h1><p>翻了官方定价页，人民币价目（每百万 token）：</p><table><thead><tr><th>模型</th><th>时段</th><th>缓存命中</th><th>缓存未命中</th><th>输出</th></tr></thead><tbody><tr><td>deepseek-flash</td><td>峰</td><td>0.04</td><td>2</td><td>8</td></tr><tr><td>deepseek-flash</td><td>谷</td><td>0.02</td><td>1</td><td>4</td></tr><tr><td>deepseek-v4-pro</td><td>峰</td><td>0.3</td><td>9</td><td>27</td></tr><tr><td>deepseek-v4-pro</td><td>谷</td><td>0.15</td><td>4.5</td><td>13.5</td></tr></tbody></table><p><strong>峰谷规则</strong>：北京时间周一至周五 9:00–12:00、14:00–18:00 为峰，其余时段（含周末、法定节假日）为谷，谷价是峰价的一半。缓存写入不单独计费，按文档记 0。</p><p>实现上不是整体打折，是每一条模型调用用自己事件的时间戳判峰谷。</p><p>因此一个会话跨过 12:00 或 18:00，会自动拆成两段计价。</p><p>节假日没法从系统日历推，在单价文件的 <code>holidays</code> 里补 <code>&quot;2026-10-01&quot;</code> 这种日期。没列的节假日工作日会按峰多算一点，属于已知偏差。</p><h2 id="5-1-对账"><a href="#5-1-对账" class="headerlink" title="5.1. 对账"></a>5.1. 对账</h2><p>拿控制台的数字做外部基准（近 30 天）：</p><table><thead><tr><th></th><th>控制台</th><th>插件</th></tr></thead><tbody><tr><td>金额</td><td>¥61.82</td><td><strong>¥60.41</strong></td></tr><tr><td>请求次数</td><td>4,392</td><td>4,201</td></tr><tr><td>Tokens</td><td>1,201,623,082</td><td>1,186,628,472</td></tr><tr><td>峰 &#x2F; 谷</td><td>-</td><td>峰 ¥33.35 · 谷 ¥27.04</td></tr></tbody></table><p>差 2.3%，且可解释：</p><ul><li>控制台从 10&#x2F;11 起算 30 天，本地最早的会话日志是 10&#x2F;15</li><li>约 190 次调用没有 <code>usage</code> 记录（标题生成、失败重试这类），控制台按请求计，日志里不计</li></ul><p>分工作区：rf4 ¥46.17、charge-power ¥8.99、Hexo ¥4.00、_Deepseek ¥0.79、未归入 ¥0.44。</p><p>到这个误差范围，数字才可以用。</p><h2 id="5-2-按模型拆"><a href="#5-2-按模型拆" class="headerlink" title="5.2. 按模型拆"></a>5.2. 按模型拆</h2><p>一个会话用了几种模型，就出几个标签，每个模型单独计价。</p><p>目前 32 个会话全走 <code>deepseek-account/deepseek-flash</code>，所以每个会话只有一个标签。标签悬浮上去能看到该模型的峰谷拆分（<code>峰 ¥14.56 · 谷 ¥8.49</code>）。</p><h1 id="6-语言包翻了两次车（AI视角）"><a href="#6-语言包翻了两次车（AI视角）" class="headerlink" title="6. 语言包翻了两次车（AI视角）"></a>6. 语言包翻了两次车（AI视角）</h1><h2 id="6-1-第一次：读错了字段"><a href="#6-1-第一次：读错了字段" class="headerlink" title="6.1. 第一次：读错了字段"></a>6.1. 第一次：读错了字段</h2><p>按设计，看板要跟随 DSH 的界面语言。实际一直显示英文。</p><p>原因是我读了 <code>ctx.locale.getLocale()</code> 返回里的 <code>snapshot.id</code>。这个字段不存在，取到的永远是 <code>undefined</code>，于是回退成 <code>&#39;en&#39;</code>。</p><p>真正的字段是 <code>snapshot.active</code>：</p><figure class="highlight ts"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs ts"><span class="hljs-keyword">interface</span> <span class="hljs-title class_">LocaleSnapshot</span> &#123;<br>  <span class="hljs-attr">active</span>: <span class="hljs-built_in">string</span><br>  <span class="hljs-attr">locales</span>: <span class="hljs-keyword">readonly</span> <span class="hljs-title class_">LocaleDefinition</span>[]<br>  <span class="hljs-attr">revision</span>: <span class="hljs-built_in">number</span><br>&#125;<br></code></pre></td></tr></table></figure><p>还有个隐性依赖：Client 的 <code>inject</code> 里没声明 <code>locale</code>，<code>ctx.locale</code> 能不能拿到本来就靠运气。补上 <code>inject: [&#39;slots&#39;, &#39;locale&#39;]</code> 才算稳。</p><h2 id="6-2-第二次：语言-id-是-zh，不是-zh-CN"><a href="#6-2-第二次：语言-id-是-zh，不是-zh-CN" class="headerlink" title="6.2. 第二次：语言 id 是 zh，不是 zh-CN"></a>6.2. 第二次：语言 id 是 <code>zh</code>，不是 <code>zh-CN</code></h2><p>字段改对，插件列表里还是英文。</p><p>这次更隐蔽。语言文件命名成 <code>locale/zh-CN.json</code>，但 DSH 的基线语言 id 是 <code>zh</code>（文档里写的 baseline locales 就是 <code>zh</code> 和 <code>en</code>）。管理器找不到 <code>locale/zh.json</code>，落回 <code>en.json</code>。</p><p>改法：</p><ul><li><code>zh-CN.json</code> 改成 <code>zh.json</code></li><li>词典查找改成「完整 id → 主子标签 → 英文」三级回落，<code>zh</code>、<code>zh-CN</code>、<code>zh-TW</code> 都能命中中文</li></ul><div class="note note-success">            <p><strong>术语的处理</strong></p><p>英文界面用 Peak &#x2F; Off-peak，中文一开始按字面写成「高峰 &#x2F; 空闲」，面板上那行太长，读着也绕。</p><p>后来改成两个单字：<strong>峰 &#x2F; 谷</strong>。一行放得下，看一眼就知道哪段贵。</p><p><code>token</code>、<code>cache</code>、模型 id 保持英文；<code>session / workspace / subagent / model</code> 用产品里的标准中文（会话 &#x2F; 工作区 &#x2F; 子代理 &#x2F; 模型）。</p>          </div><p>因为这个改动，后来又补了一版，发到 v1.0.1。</p><h1 id="7-整理开源（AI视角）"><a href="#7-整理开源（AI视角）" class="headerlink" title="7. 整理开源（AI视角）"></a>7. 整理开源（AI视角）</h1><p>功能稳了之后，把仓库收拾干净：</p><ul><li><code>README.md</code> 中文为主，<code>README.en.md</code> 英文版，顶部互相链接</li><li><code>LICENSE</code>（MIT）、<code>.gitignore</code>、<code>.gitattributes</code>（统一 LF）</li><li><code>package.json</code> 版本 <code>1.0.0</code>，补 <code>license</code> &#x2F; <code>author</code> &#x2F; <code>keywords</code>，描述改中文</li></ul><p>提交信息全用中文，6 个提交按功能边界拆开（Host 聚合 → Client 面板 → 语言包 → 单价示例 → 文档与许可 → 换行符），全部 GPG 签名，最后打 <code>v1.0.0</code> 的带注释签名标签。</p><p>README 里加了张成本横幅，写明这插件从设计、编码到文档全是 <strong>DeepSeek V4.1 Flash</strong> 写的，以及目前为止花了多少钱。</p><p>写这段的时候是 <strong>1.34 元</strong>。聊一轮它就涨一点，所以这个数字只能是快照。</p><p>这个插件从聚合逻辑到中英双语界面，再到 README 和签名提交，基本都是模型写的。我做的事是提需求、挑翻译、盯数字对不对。</p><h1 id="8-结语（人类视角）"><a href="#8-结语（人类视角）" class="headerlink" title="8. 结语（人类视角）"></a>8. 结语（人类视角）</h1><p>回到我这边。</p><p>以前「这个项目花了多少」是个区分 API key 才能分辨的问题。</p><p>现在是按工作区分组的：rf4 花了多少、写博客花了多少、闲聊花了多少。一目了然，虽然有误差。但也可以参考。</p><p>插件本身不复杂，两个文件、一个 API、一个浮层。真正花时间的是三件事：</p><ol><li>搞清一个不生效的插件为什么静默失败</li><li>把计价口径从「拍脑袋」改成「对得上控制台」</li><li>两次语言包的字段 &#x2F; 命名踩坑</li></ol><p>最后再说一句：那个插件不是写得烂，是<strong>生得太早</strong>。</p><p>在这条赛道上，「生得太早」和「写错了」的结果一样：用户打开界面，什么都没有。</p><div class="note note-info">            <p>如果哪天你也想给 DSH 写插件，把这三条抄走：</p><ul><li>UI 注册失败是<strong>静默</strong>的，记得留降级入口</li><li>读平台 API 前先打一行 <code>console.log(JSON.stringify(obj))</code>，别猜字段名</li><li>凡涉及金额，先和官方控制台对一次账，再相信自己的面板</li></ul>          </div><p>【2026-11-09 23:53，累计支出 ¥1.59】</p><p>睡觉！</p><h1 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://api-docs.deepseek.com/zh-cn/quick_start/pricing/">DeepSeek API 定价说明</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:2" class="footnote-text"><span><a href="https://github.com/zhm20001/dsh-usage-board">dsh-usage-board（本次排查的插件）</a><a href="#fnref:2" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/94153bf92a59/</id>
    <link href="https://www.vlice.cn/po/94153bf92a59/"/>
    <published>2026-11-09T14:55:02.000Z</published>
    <summary>装了个第三方用量插件，界面里连个影子都没有。拆开一看，是给旧版本宿主写的。索性自己写一个：按会话、按工作区算钱，还得分模型和峰谷。</summary>
    <title>极客工程：给 DSH 写了个成本看板：从一个不生效的插件说起</title>
    <updated>2026-11-10T05:01:17.001Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="博客手札" scheme="https://www.vlice.cn/categories/%E5%8D%9A%E5%AE%A2%E6%89%8B%E6%9C%AD/"/>
    <category term="腾讯云EO" scheme="https://www.vlice.cn/tags/%E8%85%BE%E8%AE%AF%E4%BA%91EO/"/>
    <category term="EdgeOne" scheme="https://www.vlice.cn/tags/EdgeOne/"/>
    <category term="Makers" scheme="https://www.vlice.cn/tags/Makers/"/>
    <category term="Pages 部署" scheme="https://www.vlice.cn/tags/Pages-%E9%83%A8%E7%BD%B2/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><p>说真的，Hexo 博客就是一堆静态页面，本来用不着什么服务器。</p><p>这套东西最近的折腾史，说出来有点丢人：四天前刚从又拍云挪到阿里云 ESA，今天又搬到腾讯云 EO。</p><p>当初买服务器，是因为 Gitee 的 Pages 服务下线了，到现在也没回来。也可能只是改成了我不知道的名字。</p><p>帮助文档里至今还写着它<sup id="fnref:1" class="footnote-ref"><a href="#fn:1" rel="footnote"><span class="hint--top hint--rounded" aria-label="[Gitee 企业版产品优势 | Gitee 帮助中心](https://help.gitee.com/enterprise/introduce/feature)">[1]</span></a></sup>，实际早就没了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1110/2c1f106c82b5992a.png" srcset="/img/loading.gif" lazyload alt="Gitee 的帮助文档"><figcaption aria-hidden="true">Gitee 的帮助文档</figcaption></figure></p><p>更离谱的是 Gitee 自己的 AI Chatbot。它照着那份没改过的文档回答，答案自然是错的。文档不改，它就只能一本正经地胡说。</p><p>现在那台服务器只当冗余备份，主力是 EdgeOne Makers。</p><h1 id="过程"><a href="#过程" class="headerlink" title="过程"></a>过程</h1><p>官网在这：<a href="https://makers.edgeone.link/">https://makers.edgeone.link/</a></p><p>部署不复杂。</p><p>git 仓库都是现成的，关联一下就好。仓库里本来就是 Hexo 的源码，不用再另外准备一个只放静态产物的库。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1110/5d16694caf51c888.png" srcset="/img/loading.gif" lazyload alt="关联 git 平台"><figcaption aria-hidden="true">关联 git 平台</figcaption></figure></p><p>腾讯云这边的接入体验比阿里云好。ESA 本身没问题，但它的 Pages 还是半成品：只能手动上传，不监听 git push。</p><blockquote><p>手动上传的意思就是，每改一篇文章，都得先在自己电脑上跑一遍 <code>hexo g</code>，再把 <code>public/</code> 拖上去。</p></blockquote><p>一路点下去就完事，连 <code>hexo d</code> 都省了。接的是源码仓，平台给你一个 NodeJS 环境，构建时自动跑 <code>hexo g</code>。</p><p>产物目录填 <code>public/</code>，对外就是这个静态站。</p><p>最后验证一下 DNS，确认域名归属，再配一条 CNAME，迁移就完成了。</p><p>以前的做法要么是本地 <code>hexo d</code> 推到静态仓，要么挂个 GitHub Actions 跑一遍再推。前者占着电脑，后者 commit 记录断断续续，我之前专门写过一篇吐槽。现在这些活都甩给平台了。</p><h1 id="后记"><a href="#后记" class="headerlink" title="后记"></a>后记</h1><p>水了一篇博文。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1110/7cd496798126af4f.png" srcset="/img/loading.gif" lazyload alt="EdgeOne 免费版"><figcaption aria-hidden="true">EdgeOne 免费版</figcaption></figure></p><p>付费版已经上线了，不过我还在观望。免费版可以一直用，领了之后连 EdgeOne 的加速也是免费的。之前就是没找到这个入口，才绕去用了阿里云的 ESA 加速。</p><p>折腾完这一圈，最大的感受是：静态博客最省心的形态，其实就是交给平台去构建。服务器不是不能用，是没必要为了一次 <code>hexo g</code> 养一台机器。</p><p>但服务器也不能真关。Bitwarden 和 Umami 都跑在上面，这两样搬不走。</p><p>Bitwarden 是真好用，服务器的包月价，比起商业密码管理器也不算贵，关键是数据攥在自己手里。Umami 管着博客的访问统计，数据同样在自己手里。</p><p>所以现在的分工很清楚：博客交给平台构建和分发，隐私和数据留在自己的机器上。</p><p>当然，说是「自己的机器」，其实也不完全算自己的，只是没人来查，也就没人看。换成线下的物理服务器，一样可能被协查。谁知道呢，这种事说不准。</p><h1 id="参考资料"><a href="#参考资料" class="headerlink" title="参考资料"></a>参考资料</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://help.gitee.com/enterprise/introduce/feature">Gitee 企业版产品优势 | Gitee 帮助中心</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:2" class="footnote-text"><span><a href="https://cloud.tencent.com/act/pro/edgeone_anniversary">免费版套餐，覆盖网站基础加速与安全需求</a><a href="#fnref:2" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/a560917ea0de/</id>
    <link href="https://www.vlice.cn/po/a560917ea0de/"/>
    <published>2026-11-09T12:42:27.000Z</published>
    <summary>Gitee Pages 下线之后我一直拿服务器兜着，这次索性把博客挪到 EdgeOne Makers Pages：关联源码仓，平台自动跑 hexo g，直接出静态站。</summary>
    <title>博客手札：还是把博客放到了腾讯云 EdgeOne Makers Pages</title>
    <updated>2026-11-10T05:01:17.001Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="旅行游记" scheme="https://www.vlice.cn/categories/%E6%97%85%E8%A1%8C%E6%B8%B8%E8%AE%B0/"/>
    <category term="自驾" scheme="https://www.vlice.cn/tags/%E8%87%AA%E9%A9%BE/"/>
    <category term="蜜月" scheme="https://www.vlice.cn/tags/%E8%9C%9C%E6%9C%88/"/>
    <category term="路书" scheme="https://www.vlice.cn/tags/%E8%B7%AF%E4%B9%A6/"/>
    <category term="行程规划" scheme="https://www.vlice.cn/tags/%E8%A1%8C%E7%A8%8B%E8%A7%84%E5%88%92/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><p>婚假加疗休养，攒出来的 20 天。</p><p>路线是从西安一路西南下去，最后在昆明还车回家：关中 → 湘西 → 桂北 → 滇西，全程自己开。</p><p>因为身体原因，这趟的强度是按「每天一个主项目、全天走路不超过 2 小时」来设计的。所以那些「来都来了必须爬上去」的地方，我们能坐车就坐车，能坐扶梯就坐扶梯。</p><p>先定个调：<strong>这不是穷游，也不是打卡，是去把身体养回来的。</strong></p><h1 id="1-天气与穿衣（先看这个）"><a href="#1-天气与穿衣（先看这个）" class="headerlink" title="1. 天气与穿衣（先看这个）"></a>1. 天气与穿衣（先看这个）</h1><p>这一路从关中到湘西、桂北、滇西，<strong>同一天能差 10℃</strong>：西安已经入冬，桂林还有秋意，大理白天像春天、夜里像初冬。</p><p>核心穿法是<strong>三层洋葱</strong>——排汗内衣 + 抓绒&#x2F;毛衣 + 防风外层，热了脱一层，进室内再脱一层。</p><table><thead><tr><th>时间</th><th>地点</th><th>白天 &#x2F; 夜里</th><th>体感</th></tr></thead><tbody><tr><td>11&#x2F;13–11&#x2F;15</td><td>西安</td><td>12℃ &#x2F; 2℃</td><td>干冷，室内暖气足，进出要穿脱</td></tr><tr><td>11&#x2F;16</td><td>武当山</td><td>11℃ &#x2F; 4℃（金顶 6℃ &#x2F; 0℃）</td><td>湿冷，山风硬</td></tr><tr><td>11&#x2F;17–11&#x2F;21</td><td>张家界</td><td>13℃ &#x2F; 6℃（山顶 8℃ &#x2F; 1℃）</td><td>湿冷、多雾，山顶风大，可能起雾凇</td></tr><tr><td>11&#x2F;22–11&#x2F;24</td><td>桂林·阳朔</td><td>19℃ &#x2F; 10℃</td><td>湿凉，江面风大</td></tr><tr><td>11&#x2F;25</td><td>荔波</td><td>16℃ &#x2F; 8℃</td><td>山区早晚凉</td></tr><tr><td>11&#x2F;26</td><td>兴义</td><td>16℃ &#x2F; 8℃</td><td>干凉</td></tr><tr><td>11&#x2F;27–11&#x2F;30</td><td>大理</td><td>18℃ &#x2F; 4℃</td><td>一天过两季，风大、极干、紫外线强</td></tr><tr><td>12&#x2F;1–12&#x2F;2</td><td>昆明</td><td>18℃ &#x2F; 6℃</td><td>干暖，中午能穿单件</td></tr></tbody></table><p><strong>必带清单（两个人一个 24 寸箱能装下）</strong></p><ul><li>上身：保暖内衣 ×2、抓绒或毛衣 ×2、轻薄羽绒 ×1、冲锋衣 ×1（防风防小雨）</li><li>下身：加绒长裤 ×1、常规长裤 ×1、秋裤 ×1</li><li>鞋：防滑徒步鞋 ×1（张家界、黄龙洞要）、舒服的走路鞋 ×1</li><li>配件：围巾、手套、帽子、墨镜、<strong>防晒霜 SPF50</strong>、<strong>润唇膏</strong>、<strong>身体乳</strong>（大理干到起皮）</li><li>温泉：泳衣 ×1（华清宫、洱源都要）</li><li>其他：保温杯、暖宝宝、晕车药（山路多）、常用药</li></ul><div class="note note-warning">            <p><strong>三个提醒</strong></p><ol><li><strong>张家界山顶比市区低 6–8℃</strong>，上天门山把羽绒带上，山顶风比温度更难受。</li><li><strong>大理早晚温差 14℃</strong>，白天短袖加薄外套，日落后立刻加羽绒。</li><li>全程酒店民宿都能洗衣，<strong>带 3–4 天换洗就够</strong>，别塞满箱子——后备箱只有 410L。</li></ol>          </div><h1 id="2-先回答两个爬山问题"><a href="#2-先回答两个爬山问题" class="headerlink" title="2. 先回答两个爬山问题"></a>2. 先回答两个爬山问题</h1><p>这趟最担心的就是台阶。所以先把这两个问题确认掉：</p><p><strong>1. 武当山紫霄宫：不用爬山。</strong></p><p>紫霄宫是宫殿，不是山峰。景区大巴直达紫霄宫停车场，下车走 300–500 米缓坡加十来级台阶，10 分钟到。</p><p>真需要爬的是<strong>金顶</strong>：索道下来还要走约 30 分钟台阶才登顶，体重偏大的话心肺压力不小。<strong>这次不上金顶</strong>，只在紫霄宫和太极湖（坐船）待半天。</p><p><strong>2. 天门洞：不用爬 999 级台阶。</strong></p><p>索道到山顶后，山体里有一条<strong>穿山扶梯（7 段，含在门票里）</strong>，直接把你送到天门洞，全程站着。网上说的「999 级上天梯」是洞下到广场那段台阶，可以不爬——洞口也有扶梯（现场买票，几段）。</p><p>真正要走的是山顶到扶梯口那 15–20 分钟（平路 + 少量台阶），以及西线玻璃栈道（不想走可以只到观景台就折返）。</p><h1 id="3-强度设计"><a href="#3-强度设计" class="headerlink" title="3. 强度设计"></a>3. 强度设计</h1><p>每天只安排一个主项目，全天走路量控制在 2 小时以内。</p><ul><li><strong>武当山</strong>：只到紫霄宫（大巴直达）+ 太极湖坐船，不上金顶——金顶最后 30 分钟全是台阶</li><li><strong>天门山</strong>：走 A 线，山顶环线走 30 分钟折返，穿山扶梯下到天门洞</li><li><strong>金鞭溪</strong>：走 1.5 km 到溪边折返，不走到头</li><li><strong>袁家界</strong>：百龙天梯上下，只走平路栈道</li><li><strong>十里画廊 &#x2F; 阳朔</strong>：坐小火车和电动观光车，不骑车</li><li><strong>苍山</strong>：选 2600 m 的感通索道，不上 3900 m 的洗马潭</li><li><strong>黄龙洞</strong>：洞内台阶湿滑，走一半累了就在平台等，别硬撑</li><li><strong>遇龙河</strong>：上筏有台阶，慢慢下</li></ul><h1 id="4-总览"><a href="#4-总览" class="headerlink" title="4. 总览"></a>4. 总览</h1><table><thead><tr><th>段</th><th>日期</th><th>晚</th><th>里程</th><th>强度</th><th>核心</th></tr></thead><tbody><tr><td>西安</td><td>11&#x2F;13–11&#x2F;15</td><td>3</td><td>—</td><td>🟢</td><td>大唐不夜城、陕历博、华清宫温泉</td></tr><tr><td>十堰·武当山</td><td>11&#x2F;16</td><td>1</td><td>350 km</td><td>🟢</td><td>紫霄宫、太极湖坐船</td></tr><tr><td>张家界</td><td>11&#x2F;17–11&#x2F;21</td><td>5</td><td>520 km</td><td>🟡</td><td>天门山、袁家界、十里画廊、黄龙洞</td></tr><tr><td>桂林·阳朔</td><td>11&#x2F;22–11&#x2F;24</td><td>3</td><td>560 km</td><td>🟢</td><td>泼墨漓江、遇龙河</td></tr><tr><td>荔波</td><td>11&#x2F;25</td><td>1</td><td>380 km</td><td>🟡</td><td>程阳八寨、小七孔</td></tr><tr><td>兴义</td><td>11&#x2F;26</td><td>1</td><td>350 km</td><td>🟢</td><td>万峰林（观光车）</td></tr><tr><td>大理</td><td>11&#x2F;27–11&#x2F;30</td><td>4</td><td>600 km</td><td>🟢</td><td>古城、洱海、双廊、温泉</td></tr><tr><td>昆明</td><td>12&#x2F;1</td><td>1</td><td>330 km</td><td>🟢</td><td>滇池红嘴鸥</td></tr></tbody></table><h1 id="5-逐日行程"><a href="#5-逐日行程" class="headerlink" title="5. 逐日行程"></a>5. 逐日行程</h1><h2 id="5-1-西安-·-3-晚（住大雁塔-大唐不夜城步行圈）"><a href="#5-1-西安-·-3-晚（住大雁塔-大唐不夜城步行圈）" class="headerlink" title="5.1. 西安 · 3 晚（住大雁塔&#x2F;大唐不夜城步行圈）"></a>5.1. 西安 · 3 晚（住大雁塔&#x2F;大唐不夜城步行圈）</h2><p><strong>D1 11&#x2F;13 五｜落地 + 不夜城</strong></p><ul><li>08:30 从嘉兴打车到<strong>虹桥 T2 的 11 号门</strong>，约 ¥310、1.5 h</li><li>下车坐电梯到 B1（到达层），换<strong>市域机场线</strong>：40 min 到浦东，¥26&#x2F;人，间隔 15 min，B1 进站不用二次安检</li><li>10:55 到浦东 T2，11:00 值机，13:00 起飞</li><li>15:50 落地，<strong>16:30 咸阳 T2 取车</strong></li><li>绿牌不限行，17:30 到酒店；19:00 大唐不夜城 + 大雁塔北广场喷泉（这趟只去这一次）</li></ul><p><strong>D2 11&#x2F;14 六｜博物馆 + 城墙</strong></p><ul><li>上午陕历博（需预约，见第 6 节）；约不上就去西安博物院（小雁塔），人少也好看</li><li>午后回酒店睡 2 小时</li><li>16:30 城墙永宁门（有电梯上台），骑双人车走一段，不骑全程</li><li>晚上在南门、书院门附近吃碗面，早点休息</li></ul><p><strong>D3 11&#x2F;15 日｜泡汤</strong></p><ul><li>华清宫泡温泉（车程 1 h），园区平缓，有电瓶车</li><li>顺路古观音禅寺看千年银杏（需预约，台阶不多，慢慢走）</li><li>晚上早睡，明天开始赶路</li></ul><h2 id="5-2-武当山-→-张家界"><a href="#5-2-武当山-→-张家界" class="headerlink" title="5.2. 武当山 → 张家界"></a>5.2. 武当山 → 张家界</h2><p><strong>D4 11&#x2F;16 一｜西安 → 十堰（350 km &#x2F; 4.5 h）</strong></p><ul><li>9:00 出发，福银高速，穿越秦岭</li><li>下午紫霄宫（大巴直达，不爬山），傍晚太极湖坐船</li><li>住山脚</li></ul><p><strong>D5 11&#x2F;17 二｜十堰 → 张家界（520 km &#x2F; 6.5 h）</strong></p><ul><li>经宜昌，服务区午餐</li><li>17:00 前后到，住天门山索道站附近，吃三下锅</li></ul><h2 id="5-3-张家界-·-5-晚（车停酒店，景区内坐环保车）"><a href="#5-3-张家界-·-5-晚（车停酒店，景区内坐环保车）" class="headerlink" title="5.3. 张家界 · 5 晚（车停酒店，景区内坐环保车）"></a>5.3. 张家界 · 5 晚（车停酒店，景区内坐环保车）</h2><p><strong>D6 11&#x2F;18 三｜天门山（A 线，台阶最少）</strong></p><ul><li>7455 m 索道上山（28 min），山顶环线只走 30 分钟就折返</li><li><strong>穿山扶梯</strong>下到天门洞（不用爬 999 级）</li><li>洞口拍照 → 扶梯或环保车下山</li><li>全程 4–5 h，山顶 0–7℃，冲锋衣 + 抓绒</li></ul><p><strong>D7 11&#x2F;19 四｜金鞭溪半程</strong></p><ul><li>上午搬到武陵源（40 min）</li><li>下午金鞭溪走 1.5 km 到溪边折返，约 1.5 h</li></ul><p><strong>D8 11&#x2F;20 五｜袁家界 + 十里画廊（全靠电梯和车）</strong></p><ul><li>百龙天梯上袁家界，平路栈道看迷魂台、天下第一桥，约 1.5 h</li><li>午后十里画廊坐观光小火车，下车走 500 米拍照即可</li></ul><p><strong>D9 11&#x2F;21 六｜黄龙洞 + 休整</strong></p><ul><li>上午黄龙洞：洞内台阶多、湿滑，慢慢走，走一半累了就在平台等</li><li>下午回酒店睡、泡脚，不排项目</li></ul><h2 id="5-4-桂林-·-阳朔-·-3-晚"><a href="#5-4-桂林-·-阳朔-·-3-晚" class="headerlink" title="5.4. 桂林 · 阳朔 · 3 晚"></a>5.4. 桂林 · 阳朔 · 3 晚</h2><p><strong>D10 11&#x2F;22 日｜张家界 → 桂林（560 km &#x2F; 7 h）</strong></p><ul><li>全程高速，天黑前到；晚上两江四湖走走（平路）</li></ul><p><strong>D11 11&#x2F;23 一｜泼墨漓江</strong></p><ul><li>上午磨盘山码头游船 → 阳朔（4 h，全程坐着）</li><li>下午西街，车停酒店</li></ul><p><strong>D12 11&#x2F;24 二｜遇龙河 + 十里画廊</strong></p><ul><li>上午遇龙河竹筏（2 人一筏，1.5 h；上筏有台阶，慢慢下）</li><li>下午十里画廊坐<strong>电动观光车</strong>，不骑车</li><li>🌕 <strong>今晚农历十五</strong>：江边吃晚饭，看满月从漓江升起</li></ul><h2 id="5-5-荔波-·-兴义（返程线）"><a href="#5-5-荔波-·-兴义（返程线）" class="headerlink" title="5.5. 荔波 · 兴义（返程线）"></a>5.5. 荔波 · 兴义（返程线）</h2><p><strong>D13 11&#x2F;25 三｜阳朔 → 三江 → 荔波（约 380 km &#x2F; 5 h）</strong></p><ul><li>09:30 阳朔出发，吃碗桂林米粉再走，包茂高速北上</li><li>11:30 三江下高速，去<strong>程阳八寨</strong>看风雨桥、吃侗族午饭，逛 2 h（平路，走不动就在桥头坐）</li><li>14:00 继续 200 km，16:30 到荔波</li><li>住小七孔东门或荔波古镇，晚上吃酸汤鱼，早点睡（明天进景区）</li></ul><p><strong>D14 11&#x2F;26 四｜小七孔 → 兴义（350 km）</strong></p><ul><li>上午小七孔，全程坐观光车，只走卧龙潭、翠谷瀑布两个点</li><li>下午继续开，晚上到兴义</li></ul><p><strong>D15 11&#x2F;27 五｜万峰林 → 大理（600 km &#x2F; 7 h）</strong></p><ul><li>上午万峰林坐观光车</li><li>17:30 到大理。<strong>农历十八，月亮 20:15 升起</strong>，海边餐厅吃晚饭</li></ul><h2 id="5-6-大理-·-4-晚"><a href="#5-6-大理-·-4-晚" class="headerlink" title="5.6. 大理 · 4 晚"></a>5.6. 大理 · 4 晚</h2><p><strong>D16 11&#x2F;28 六｜古城 + 三塔</strong></p><ul><li>人民路慢逛；午后崇圣寺三塔（有电瓶车，别走上去）</li></ul><p><strong>D17 11&#x2F;29 日｜环海西线</strong></p><ul><li>喜洲古镇 → 海舌公园（车停外面，走 10 分钟平路）→ 双廊</li><li>⚠️ <strong>双廊订带停车场的民宿</strong>，巷子里的别订</li></ul><p><strong>D18 11&#x2F;30 一｜温泉日</strong></p><ul><li>洱源下山口温泉（1 h 车程，泡一整天）</li><li>想上山就选<strong>感通索道</strong>（2600 m），别去 3900 m 的洗马潭</li></ul><p><strong>D19 12&#x2F;1 二｜大理 → 昆明（330 km &#x2F; 3.5 h）</strong></p><ul><li>14:00 到昆明，滇池海埂大坝喂红嘴鸥（全程平路）</li><li>住机场方向，方便明早还车</li></ul><p><strong>D20 12&#x2F;2 三｜还车 + 回家</strong></p><ul><li>08:30 出发，10:00 长水机场还车</li><li>12:15 起飞，14:55 到杭州</li><li>萧山落地后打车回嘉兴，滴滴轻享预估 ¥217，约 1 h</li></ul><h1 id="6-预约入口与教程"><a href="#6-预约入口与教程" class="headerlink" title="6. 预约入口与教程"></a>6. 预约入口与教程</h1><p><strong>通用三步</strong>：微信搜索公众号&#x2F;小程序 → 实名注册（身份证 + 手机号）→ 选日期和时段付款 → <strong>截图保存二维码</strong>，入园刷身份证。</p><table><thead><tr><th>项目</th><th>入口</th><th>什么时候约</th><th>要点</th></tr></thead><tbody><tr><td>陕历博</td><td>微信「陕西历史博物馆」→ 门票预约</td><td>提前 3 天 10:00 放票</td><td>周一闭馆；周六的票几分钟没，两人同时抢</td></tr><tr><td>天门山</td><td>微信「张家界天门山景区」小程序</td><td>提前 3–7 天</td><td>选 <strong>A 线 + 上午时段</strong></td></tr><tr><td>武陵源</td><td>微信「张家界智慧旅游」小程序</td><td>提前 3 天</td><td>4 天有效，含环保车</td></tr><tr><td>黄龙洞</td><td>微信「黄龙洞景区」</td><td>提前 1–2 天</td><td>也可现场买</td></tr><tr><td>古观音禅寺</td><td>微信「古观音禅寺」</td><td>提前 1–3 天</td><td>免费，银杏季限流</td></tr><tr><td>华清宫</td><td>微信「华清宫景区」</td><td>提前 1–2 天</td><td>温泉另买</td></tr><tr><td>漓江游船</td><td>微信「漓江景区」或官网 liriver.com.cn</td><td>提前 2–3 天</td><td>选<strong>磨盘山码头 + 上午班</strong>，实名</td></tr><tr><td>小七孔</td><td>微信「荔波小七孔景区」</td><td>提前 1–2 天</td><td>实名，刷证入园</td></tr></tbody></table><p><strong>抢陕历博的实操</strong>：提前 3 天 10:00 整放票；先在公众号里把<strong>常用联系人身份证</strong>填好；用 5G 别用酒店 WiFi；10:00 前 30 秒进页面，选 09:00–10:30 时段；抢不到当天 14:00 还会补一次。约不上就换<strong>西安博物院</strong>（小雁塔），基本不用抢。</p><p><strong>带好身份证原件</strong>，所有景区都刷证进。</p><h1 id="7-预算（2-人）"><a href="#7-预算（2-人）" class="headerlink" title="7. 预算（2 人）"></a>7. 预算（2 人）</h1><table><thead><tr><th>项目</th><th>金额</th></tr></thead><tbody><tr><td>机票（¥880 + ¥690，各 2 人）</td><td>¥3,140</td></tr><tr><td>租车（含尊享保障与无忧还车，实付）</td><td>¥1,955</td></tr><tr><td>油费 + 过路</td><td>¥2,200</td></tr><tr><td>住宿 19 晚</td><td>¥6,300</td></tr><tr><td>门票 2 人</td><td>¥3,800</td></tr><tr><td>餐饮 20 天</td><td>¥4,400</td></tr><tr><td>停车&#x2F;温泉&#x2F;杂费</td><td>¥1,800</td></tr><tr><td>机场往返（打车 ¥310 + 机场线 ¥52 + 回程 ¥217）</td><td>¥580</td></tr><tr><td><strong>合计</strong></td><td><strong>约 ¥2.4 万</strong></td></tr></tbody></table><h1 id="8-三条硬提醒"><a href="#8-三条硬提醒" class="headerlink" title="8. 三条硬提醒"></a>8. 三条硬提醒</h1><ol><li><strong>西安尾号限行不管绿牌</strong>。这辆车是新能源牌照，工作日限行对你无效；只有蓝牌燃油车才看尾号。</li><li><strong>两个 600 km 日</strong>（11&#x2F;22、11&#x2F;27）：天亮走、天黑到，每 2 h 进服务区。</li><li><strong>12&#x2F;2 10:00 还车、12:15 起飞</strong>，中间只有 2 小时，还完车直接进航站楼。</li></ol><div class="note note-danger">            <p>最后那条最要命：<strong>还车到起飞只有两小时</strong>。万一路上堵一下、还车排队、再走错航站楼，这趟就变成「蜜月结束后在昆明多住一晚」。</p><p>前一天晚上务必把油加满、行李收拾好，早上别赖床。</p>          </div><h1 id="9-用车要点（秦PLUS-DM-i-128KM）"><a href="#9-用车要点（秦PLUS-DM-i-128KM）" class="headerlink" title="9. 用车要点（秦PLUS DM-i 128KM）"></a>9. 用车要点（秦PLUS DM-i 128KM）</h1><ul><li><strong>92 号油</strong>，油箱 50L，满油满电约 1,000 km：西安加满，到张家界再加一次</li><li><strong>有桩就充</strong>：128 km 纯电够市区一天</li><li><strong>出发前把「强制保电」设到 50%</strong>，智能保电在高速上保不住电</li><li>亏电跑高速 100 km&#x2F;h 以上再加速偏平淡，600 km 那天稳在 100–110</li></ul><h1 id="后记"><a href="#后记" class="headerlink" title="后记"></a>后记</h1><p>行程是按「不逞强」写的，能不能照着走完，等回来再说。</p><p>到时候把照片和实际踩的坑补进来——如果还有力气的话。</p>]]>
    </content>
    <id>https://www.vlice.cn/po/e5fe33eb4966/</id>
    <link href="https://www.vlice.cn/po/e5fe33eb4966/"/>
    <published>2026-11-08T05:40:01.000Z</published>
    <summary>11 月 13 日西安落地取车，一路开到昆明还车：关中、湘西、桂北、滇西，20 天 19 晚。原则只有一条——能坐车就不走路，能坐扶梯就不爬台阶。</summary>
    <title>双人蜜月自驾 · 20 天 19 晚路书（11/13 西安出发）</title>
    <updated>2026-11-10T05:01:17.001Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="游戏爽玩" scheme="https://www.vlice.cn/categories/%E6%B8%B8%E6%88%8F%E7%88%BD%E7%8E%A9/"/>
    <category term="俄罗斯钓鱼4" scheme="https://www.vlice.cn/categories/%E6%B8%B8%E6%88%8F%E7%88%BD%E7%8E%A9/%E4%BF%84%E7%BD%97%E6%96%AF%E9%92%93%E9%B1%BC4/"/>
    <category term="俄罗斯钓鱼4" scheme="https://www.vlice.cn/tags/%E4%BF%84%E7%BD%97%E6%96%AF%E9%92%93%E9%B1%BC4/"/>
    <category term="私服" scheme="https://www.vlice.cn/tags/%E7%A7%81%E6%9C%8D/"/>
    <category term="数据整理" scheme="https://www.vlice.cn/tags/%E6%95%B0%E6%8D%AE%E6%95%B4%E7%90%86/"/>
    <category term="拉力查询" scheme="https://www.vlice.cn/tags/%E6%8B%89%E5%8A%9B%E6%9F%A5%E8%AF%A2/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><p>苍天已死，黄天当立，岁在甲子，天下大吉！</p><p>天地不仁以万物为刍狗……呃，毛子不仁以钓友为空军！</p><p>小时口，个人口。真的越玩越恶心。43级还算新手，一直在挪威海攒钱，不是发育，就是在发育的路上。</p><p>万幸，<del>黄巢来了</del>私服来了。随后单机版也涌出来了。天下当浮一大白，水面当浮一大鱼！</p><div class="note note-danger">            <p><strong>先把话说死</strong></p><p>本文不提供、也不讨论任何非官方客户端的获取方式。</p><p>数据来自客户端资源的<strong>只读</strong>整理：不修改游戏文件、不注入、不改包，也不包含任何自动化钓鱼脚本。</p><p>想查数据，用我做的页面，数值应该是一样的。私服没有改动原本存在的装备。只是提供新的定制装备。</p><p>RF4 拉力查询：<a href="https://rf4.vlice.cn/">https://rf4.vlice.cn</a> （由腾讯云EO 边缘安全加速提供 Pages 服务，EdgeOne Makers）</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1109/7b0839f9f1e1c982.png" srcset="/img/loading.gif" lazyload alt="RF4拉力查询 宣传图"><figcaption aria-hidden="true">RF4拉力查询 宣传图</figcaption></figure></p>          </div><h1 id="1-毛子的算盘"><a href="#1-毛子的算盘" class="headerlink" title="1. 毛子的算盘"></a>1. 毛子的算盘</h1><p>这游戏的账，从来只给你看一半。</p><p>面板上写着线杯、写着长度、写着「摩擦片拉力」，但真正决定能不能拉鱼的那个锁轮拉力，它不写。</p><p>钩子也是，挂上饵，拉多少算断，全凭手感。</p><p>于是玩家只能这么活：<strong>锁轮硬拉，拿线去试。</strong></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/b4911697be28ddaa.png" srcset="/img/loading.gif" lazyload alt="锁轮硬拉的三种结果"><figcaption aria-hidden="true">锁轮硬拉的三种结果</figcaption></figure></p><ul><li><strong>线断了</strong> → 说明线不够力，换大拉力线继续测</li><li><strong>钩子断了</strong> → 换小拉力线，拉到线断，确定一个拉力区间，取最小值当鱼钩拉力参考</li><li><strong>锁轮炸了</strong> → 换小拉力线，拉到线断，确定一个拉力区间，取最小值当锁轮拉力参考</li></ul><p>说白了就是个二分查找。只不过每探一次，代价是一个轮子、一卷线、再加一个晚上。</p><div class="note note-info">            <p><strong>「锁轮拉力」到底是个什么东西</strong></p><p>简单说，就是你把刹车拧到死、拿竿子硬拽的时候，这套轮子能扛住的极限。</p><p>它和面板上那个数<strong>不是一回事</strong>：面板显示的是<strong>摩擦片</strong>的拉力，不是锁轮拉力。你要拿摩擦片的数据去买轮子，那就等于拿身高去挑鞋。</p><p>数据不给看，那就只能靠人命去试。</p>          </div><p>但这套方法有个硬伤：<strong>贵的轮子根本测不起。</strong></p><p>有些轮子标价高得离谱，金币轮更别说了——你不可能为了测一个数，把几万银币的轮子挂上去炸一次。炸完了数据是有了，钱没了。</p><p>所以这次的收获才显得金贵：<strong>不用测了，直接读。</strong></p><p>试完了还得整理。于是一代代传下来：Excel、群文件、贴吧截图、「这个轮子 12 公斤锁得住」。</p><p>传着传着就变形了。版本对不上、型号写错、有人把「摩擦片拉力」当「锁轮拉力」填进去。</p><p>你照着买来一锁，要么断线要么断杆，钱白花了。</p><p><strong>这不是玩家的错。这是把一半数据藏起来之后，必然长出来的杂草。</strong></p><h1 id="2-底裤是怎么被扒的"><a href="#2-底裤是怎么被扒的" class="headerlink" title="2. 底裤是怎么被扒的"></a>2. 底裤是怎么被扒的</h1><p>然后私服来了，单机版也来了。</p><p>它们做了同一件事：把客户端资源完整读出来。于是那些一直只在数据里、从来没打算给你看的字段，第一次有了全量口径。</p><p>我拿到手的时候其实愣了几秒。不是「多了一个服」——是<strong>数据终于能被摊开看了</strong>。</p><table><thead><tr><th align="left">表</th><th align="right">源数据数量</th><th align="right">网页显示数量</th></tr></thead><tbody><tr><td align="left">轮子</td><td align="right">551</td><td align="right">532</td></tr><tr><td align="left">钩子</td><td align="right">1140</td><td align="right">1140</td></tr><tr><td align="left">鱼竿</td><td align="right">788</td><td align="right">752</td></tr><tr><td align="left">鱼吃饵</td><td align="right">252</td><td align="right">252</td></tr></tbody></table><p>少掉的那 19 个轮子、36 根竿，是活动款、是历史遗留，游戏里已经看不到了。</p><p>对此，我想着做一个拉力查询的站。</p><p>规矩是：<strong>表格保留，网页不显示。</strong> 数据留着备查，但别拿出来误导人——你照着买，商店里根本找不到。</p><div class="note note-success">            <p><strong>从「大概 12 公斤」到「12.0967 公斤」</strong></p><p>以前你说一个轮子能锁多少，得加一串限定词：大概、好像、我那把是、看运气。</p><p>现在不用了。是多少就是多少，版本 4.0.25034 的客户端里写着。</p>          </div><h1 id="3-现在这服，1-万多日活"><a href="#3-现在这服，1-万多日活" class="headerlink" title="3. 现在这服，1 万多日活"></a>3. 现在这服，1 万多日活</h1><p>私服跑起来没多久，就不太像「私服」了。这是国服，日活一万多，开新区还得涨。</p><p>鱼口更是离谱。把饵丢水里就行，夸夸上鱼。两根竿子就够了，毛服三竿作钓的坏习惯可以改改了——根本忙不过来。</p><p><strong>这不是水里有鱼，这是鱼里有水。</strong></p><p>新人一波波涌进来。他们问的第一个问题，从来不是「哪条鱼值钱」，是：</p><blockquote><p>我这等级，能买啥？</p></blockquote><p>这问题以前根本没法回答。因为回答它需要两个数：你这个等级解锁了哪些装备，以及这些装备的拉力够不够。</p><p>前者游戏里有，后者是玄学。</p><p>所以答案永远长这样：「你 20 级啊……买个 XX 吧，我印象里能锁 20 公斤出头。」——「印象里」。</p><h1 id="4-所以我做了两个页面"><a href="#4-所以我做了两个页面" class="headerlink" title="4. 所以我做了两个页面"></a>4. 所以我做了两个页面</h1><p>逻辑特别朴素：<strong>反着查。</strong></p><p>不是「这个轮子多少拉力」，是「我要 12 公斤、我 20 级，能买啥」。</p><h2 id="4-1-拉力查询"><a href="#4-1-拉力查询" class="headerlink" title="4.1. 拉力查询"></a>4.1. 拉力查询</h2><ul><li>填<strong>需求拉力</strong>（kg）和<strong>玩家等级</strong></li><li>列出够用的轮子 &#x2F; 钩子 &#x2F; 鱼竿</li><li>再按厂商、类型、线杯（钩子是尺寸、鱼竿是渔轮）往下筛</li></ul><p>还做了一个我觉得有用的功能：<strong>渔轮反查</strong>。</p><p>手里是纺车轮 8000，那到底哪些竿装得上？选「纺车式」+「8000」，列表直接把答案给你。</p><table><thead><tr><th align="left">你的渔轮</th><th align="right">能装的竿</th></tr></thead><tbody><tr><td align="left">纺车式 8000</td><td align="right">388</td></tr><tr><td align="left">鼓轮</td><td align="right">240</td></tr><tr><td align="left">水滴轮</td><td align="right">204</td></tr><tr><td align="left">动力鼓轮</td><td align="right">200</td></tr></tbody></table><p>以前这个问题是「俺寻思能装」和「这不应该啊」。现在选两下就出来了。</p><h2 id="4-2-顺手挖出几款没人提过的轮子"><a href="#4-2-顺手挖出几款没人提过的轮子" class="headerlink" title="4.2. 顺手挖出几款没人提过的轮子"></a>4.2. 顺手挖出几款没人提过的轮子</h2><p>数据摊开之后，第一件事就是按「拉力 &#x2F; 价格」排一遍。</p><p>结果发现几款性价比离谱的，以前在群里、贴吧里都没见人正经推荐过——因为没人量得出它们的锁轮拉力，自然也就没人敢说它们好。</p><table><thead><tr><th align="left">名称</th><th align="right">线杯</th><th align="right">锁轮拉力(kg)</th><th align="right">银币价</th></tr></thead><tbody><tr><td align="left">Beluga Velara 3000</td><td align="right">3000</td><td align="right">30.55</td><td align="right">1,949.80</td></tr><tr><td align="left">Zeiman Commandor 2 40S</td><td align="right">4000</td><td align="right">30.12</td><td align="right">1,698.80</td></tr><tr><td align="left">Beluga Chronica II 6000</td><td align="right">6000</td><td align="right">72.63</td><td align="right">10,899.80</td></tr><tr><td align="left">Beluga Venga 8000</td><td align="right">8000</td><td align="right">83.98</td><td align="right">23,001.67</td></tr><tr><td align="left">SAT Goliaf 10000</td><td align="right">10000</td><td align="right">112.00</td><td align="right">31,499.80</td></tr><tr><td align="left">Beluga Venga II 30000</td><td align="right">30000</td><td align="right">144.12</td><td align="right">48,499.80</td></tr></tbody></table><p>前两根是真正的「新手福利」：不到两千银币，锁轮拉力 30 公斤出头。</p><p>传下来的经验就是小金轮起步，然后</p><ul><li>开会员的选择【Beluga Natora 6000】</li><li>肝帝选择【Beluga Tagara II 6000】也就是塔二。</li></ul><p>殊不知还有更好的选择</p><ul><li>会员选【Beluga Velara 6000】</li><li>肝帝选【Zeiman Olaf SP 60】。</li></ul><p>后面几个是各个线杯的甜点。尤其 Chronica II 和 Venga 8000。72 公斤、84 公斤，价格还压在五位数上下，对于国服来说，中间那段「攒钱期」用它们过渡最舒服。</p><div class="note note-success">            <p>顺带说一句：这些数以前只能靠「有人炸过一个」来获得。现在是一排序就有。</p><p><strong>这就是数据公开的意义。</strong></p>          </div><h2 id="4-3-鱼吃饵查询"><a href="#4-3-鱼吃饵查询" class="headerlink" title="4.3. 鱼吃饵查询"></a>4.3. 鱼吃饵查询</h2><p>252 种鱼，模糊搜名字，按水域筛。</p><p>填上玩家等级，进不去的水域直接上锁：</p><blockquote><p>🔒 挪威海 需要等级 34</p><p>你填的玩家等级是 20，进不去这个水域。</p></blockquote><p>省得你翻半天配方，最后发现这鱼在 34 级水域才有。</p><div class="note note-warning">            <p><strong>关于「口」，我得说清楚</strong></p><p>我知道你最想查的是「今天哪个点有口」。我要说的是，饵对了，窝子对了，丢水里就有鱼。</p><p>私服把数据扒开了，但「口」牵扯到服务端的刷新和算法，不是一张静态表能说完的东西。</p><p>我能做的是：把那些<strong>本来就该写在面板上、却被藏起来的东西</strong>，还给你。</p>          </div><h1 id="5-几个口径上的坑"><a href="#5-几个口径上的坑" class="headerlink" title="5. 几个口径上的坑"></a>5. 几个口径上的坑</h1><p>这部分是给后来人的，省得你们再踩一遍。</p><h2 id="5-1-动力鼓轮的-10-20-30-40-不是线杯"><a href="#5-1-动力鼓轮的-10-20-30-40-不是线杯" class="headerlink" title="5.1. 动力鼓轮的 10&#x2F;20&#x2F;30&#x2F;40 不是线杯"></a>5.1. 动力鼓轮的 10&#x2F;20&#x2F;30&#x2F;40 不是线杯</h2><p>看到动力鼓轮写「30」，第一反应是线杯 30000，对不对？</p><p>不对。那 30 就是它的型号，<strong>原样记录，不换算</strong>。</p><p>我一开始按线杯的规则去套，差点把整张表的动力鼓轮全写成一万两万三万四万，回头一看全得改。</p><h2 id="5-2-强度要按面板截断"><a href="#5-2-强度要按面板截断" class="headerlink" title="5.2. 强度要按面板截断"></a>5.2. 强度要按面板截断</h2><p>鱼竿的「强度」在数据里是 12.0967、40.2172 这种。</p><p>但游戏面板上写的是 12、40.2。所以表里也截断到 1 位小数——<strong>面板写 12，表里就不能写 12.1</strong>。</p><p>不然后面筛选一算，「12.1 的竿」和「12 的竿」会分成两拨，玩家一看就懵。</p><h2 id="5-3-「游戏内不显示」的条目怎么处理"><a href="#5-3-「游戏内不显示」的条目怎么处理" class="headerlink" title="5.3. 「游戏内不显示」的条目怎么处理"></a>5.3. 「游戏内不显示」的条目怎么处理</h2><p>活动款、下架款，数据还在，商店里没了。</p><p>处理方式就是第 2 节说的：表格里留着，网页上不出现。加一个统一的备注关键词，生成网页的时候过滤掉。</p><h2 id="5-4-等级空着不等于漏采集"><a href="#5-4-等级空着不等于漏采集" class="headerlink" title="5.4. 等级空着不等于漏采集"></a>5.4. 等级空着不等于漏采集</h2><p>有 37 根竿的等级是空的。</p><p>那不是没抓到——是<strong>这根竿本来就没有等级限制</strong>。</p><p>这两种情况在表里长得一模一样，但含义完全不同。要是当成缺失去补，就会凭空造出一堆限制出来。</p><h1 id="6-边界"><a href="#6-边界" class="headerlink" title="6. 边界"></a>6. 边界</h1><p>三句话：</p><ul><li>只读，不写游戏</li><li>与厂商、发行商无关，纯玩家整理</li><li>网页代码 MIT，数据 CC BY 4.0，谁都能拿去再整一份</li></ul><h1 id="7-后记"><a href="#7-后记" class="headerlink" title="7. 后记"></a>7. 后记</h1><p>做这个东西的时候，我一直在想一个问题：</p><p><strong>为什么一个提示「能锁多少」的数字，要靠玩家挖了这么多年？</strong></p><p>你卖的是渔具，不是盲盒。线杯、长度、重量都标了，偏偏最能决定成败的拉力不标。玩家只好自己试、自己记、自己传，传到最后全凭「我记得」。</p><p>说句公道话：现实里造渔具的厂商，拉力是要实打实测出来的——一根竿子挂上机台，配重一路加，拉到断为止，标多少就是多少。</p><p>所以我一直想问一句：<strong>不会真有人拿 AI 跑一遍数据，就标上去卖了吧？</strong></p><p>私服把底裤扒了之后，原来这些东西一直都在，只是没打算给你看。</p><p>所以这次真正值得高兴的，不是「多了一个服」，是<strong>数据被摊开之后，那些靠口口相传的江湖经验，终于可以换成一张能查的表了</strong>。</p><p>下一步想做的还有：补全鱼钩拉力、增加鱼线拉力模块。慢慢来吧。</p><p style="color: #4D6BFE; font-size: 1.5rem; text-align: center;">🐳 数据整理、网页生成全由 DeepSeek v4.1 Flash 完成</p><p style="color: #4D6BFE; font-size: 1.5rem; text-align: center;">目前累计花费 43.14 元</p><p>【2026-11-06 13:30，43 级，仍在挪威海攒钱】</p><h1 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://rf4game.com/">Russian Fishing 4 官方网站</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/6d0c4d856c6b/</id>
    <link href="https://www.vlice.cn/po/6d0c4d856c6b/"/>
    <published>2026-11-06T05:30:01.000Z</published>
    <summary>小时口、个人口，43 级还算新手。直到私服和单机版涌出来，毛子藏了多年的锁轮拉力和钩子拉力，才第一次有全量口径。我顺手做了个能反查的网页。</summary>
    <title>《毛子不仁，以钓友为空军》私服扒干净俄钓4之后，我做了个拉力查询页</title>
    <updated>2026-11-10T05:01:17.001Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="博客手札" scheme="https://www.vlice.cn/categories/%E5%8D%9A%E5%AE%A2%E6%89%8B%E6%9C%AD/"/>
    <category term="运维" scheme="https://www.vlice.cn/tags/%E8%BF%90%E7%BB%B4/"/>
    <category term="又拍云" scheme="https://www.vlice.cn/tags/%E5%8F%88%E6%8B%8D%E4%BA%91/"/>
    <category term="阿里云ESA" scheme="https://www.vlice.cn/tags/%E9%98%BF%E9%87%8C%E4%BA%91ESA/"/>
    <category term="CDN" scheme="https://www.vlice.cn/tags/CDN/"/>
    <category term="IPv6" scheme="https://www.vlice.cn/tags/IPv6/"/>
    <category term="备案" scheme="https://www.vlice.cn/tags/%E5%A4%87%E6%A1%88/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><h1 id="1-前言"><a href="#1-前言" class="headerlink" title="1. 前言"></a>1. 前言</h1><p>事情是这样的。晚上想看看自己的博客，结果点开是一片白，浏览器给我甩了个：</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs text">&#123;<br>  msg: &quot;handshake failed&quot;,<br>  code: &quot;50302006&quot;,<br>  id: &quot;1fe4406c9d9b6c613854306338de6ffe&quot;<br>&#125;<br></code></pre></td></tr></table></figure><p><code>www.vlice.cn</code> 是 CNAME 到又拍云的 <code>hexo-vlice.b0.aicdn.com</code> 的，又拍云的测试域名 <code>hexo-vlice.test.upcdn.net</code> 也一样打不开。</p><p>但是直接访问 CNAME 地址，倒是给了我一句「该网站未进行工信部备案」。</p><p>而源站 <code>https://gf.hexo.example.com/</code>，一切正常，<code>Server: openresty</code>，200。</p><p>第一反应：我备案被撤了？不应该啊。</p><p>真正让我后背一凉的是这个 ——</p><div class="note note-danger">            <p><strong>紧急插播</strong></p><p>萌ICP备 20257985 号<sup id="fnref:3" class="footnote-ref"><a href="#fn:3" rel="footnote"><span class="hint--top hint--rounded" aria-label="[萌ICP备 - icp.gov.moe](https://icp.gov.moe/)">[3]</span></a></sup>，巡查判定站点失联，收到警告 + 限期整改。</p><p>站点长期不可达，备案就有被注销的风险。真实的 ICP 备案也是同样的道理，长期打不开、信息对不上，一样会被找上门。</p><p>也就是说：<strong>一个 CDN 抽风，差点把我的备案送走了。</strong></p>          </div><h1 id="2-又拍云：额度还在，桌子撤了"><a href="#2-又拍云：额度还在，桌子撤了" class="headerlink" title="2. 又拍云：额度还在，桌子撤了"></a>2. 又拍云：额度还在，桌子撤了</h1><p>当年为什么用又拍云？因为免费。挂个 logo 就能用，静态博客这点流量完全够。</p><p>这次是什么情况呢，特别离谱：<strong>免费额度还在，账上没欠费，但就是不解析、也不回源。</strong></p><p>不是欠费，不是超额，不是配置被我改坏了。就是……不干活了。</p><p>CNAME 还指着它的 <code>hexo-vlice.b0.aicdn.com</code>，边缘节点那边 TLS 握手直接挂掉，<code>handshake failed</code>，<code>50302006</code>。用户连握手都过不去，后面回源什么的根本无从谈起。</p><div class="note note-info">            <p>顺便说一句，直接访问 CNAME 地址提示「未备案」，是又拍云对 CNAME 直访的默认合规限制，<strong>不代表你的域名真的没备案</strong>。这个提示当时把我带偏了半天，白紧张一场。</p>          </div><p>把链路拆开看就很清楚了：</p><p><strong>用户 → DNS（CNAME 到又拍云）→ 又拍云边缘节点（❌ 断在这里）→ 源站阿里云 ECS（✅ 正常）</strong></p><p>源站正常、DNS 正常，唯一不正常的就是那个中间商。而且它连个明确的错误都不给，就一句 <code>handshake failed</code>。</p><p>行吧。生命不息，折腾不止，换。</p><h1 id="3-选型：免费-CDN-还剩谁"><a href="#3-选型：免费-CDN-还剩谁" class="headerlink" title="3. 选型：免费 CDN 还剩谁"></a>3. 选型：免费 CDN 还剩谁</h1><p>既然挂 logo 换流量的联盟模式玩不下去了，那就看看大厂。国内能打的就两家<sup id="fnref:1" class="footnote-ref"><a href="#fn:1" rel="footnote"><span class="hint--top hint--rounded" aria-label="[边缘安全加速 ESA - 阿里云](https://www.aliyun.com/product/esa)">[1]</span></a></sup><sup id="fnref:2" class="footnote-ref"><a href="#fn:2" rel="footnote"><span class="hint--top hint--rounded" aria-label="[Tencent Cloud EdgeOne - 腾讯云](https://cloud.tencent.com/product/teo)">[2]</span></a></sup>。</p><p>先把价格摆出来（2026-11 从控制台抄的，随时会变）：</p><table><thead><tr><th align="left">对比项</th><th align="left">阿里云 ESA（边缘安全加速）</th><th align="left">腾讯云 EdgeOne</th></tr></thead><tbody><tr><td align="left">免费部分</td><td align="left">首月免费</td><td align="left">Pages 部署免费（纯静态托管）</td></tr><tr><td align="left">入门价</td><td align="left">5.94 元&#x2F;月，含 50G 流量</td><td align="left">9.9 元&#x2F;月，含 50G + 300 万次请求</td></tr><tr><td align="left">包年</td><td align="left">59.4 元&#x2F;年，规格仍是 50G&#x2F;月</td><td align="left">——</td></tr><tr><td align="left">超量计费</td><td align="left">0.198 元&#x2F;GB</td><td align="left">0.31 元&#x2F;GB，0.05 元&#x2F;万次请求</td></tr><tr><td align="left">涨价预警</td><td align="left">暂无</td><td align="left">9.9 元是体验价，之后 29.9 元&#x2F;月；Makers 11&#x2F;9-11 商业化</td></tr><tr><td align="left">国内加速</td><td align="left">需 ICP 备案</td><td align="left">需 ICP 备案</td></tr><tr><td align="left">绑定域名</td><td align="left">1 个</td><td align="left">1 个</td></tr></tbody></table><p>两家都能用。我选 <strong>ESA</strong>，主要还是因为源站本来就在阿里云，控制台、安全组、RAM 都在一个体系里，少开一个后台。</p><p>顺便算笔账：静态博客一个月 50G，按我这访问量，一年都未必吃得完。真按 0.198 元&#x2F;GB 超量算，吃满也就一杯奶茶钱。</p><div class="note note-warning">            <p><strong>这里必须自我勘误一下</strong></p><p>我一开始对这两家的印象是「不限流量的免费 CDN」——那是我在网上搜到的说法，当时也信了，还照着这个印象在脑子里排了版。</p><p>后来去控制台看了一眼真实价格，才发现<strong>免费的这页早就翻篇了</strong>：ESA 只有首月免费，之后 5.94 元&#x2F;月起；EdgeOne 免费的是「Pages 静态部署」，边缘加速 9.9 元&#x2F;月，而且那还是体验价，之后要涨到 29.9 元。</p><p>所以「又拍云不行了」这件事，本质上不是「免费 CDN 死了」，是<strong>免费 CDN 变成了一顿饭钱</strong>。</p><p>这价格，比起被一份失联警告吓一整晚，太值了。</p>          </div><h2 id="3-1-插播：我刚跳车，对面就改规则"><a href="#3-1-插播：我刚跳车，对面就改规则" class="headerlink" title="3.1. 插播：我刚跳车，对面就改规则"></a>3.1. 插播：我刚跳车，对面就改规则</h2><p>写这篇的时候（11 月 5 号）刚切完 ESA，第二天就看到腾讯云的公告：<strong>EdgeOne Makers 预计 11 月 9 日-11 日商业化</strong>，推出专业版、商业版两档付费套餐，带 SLA。<sup id="fnref:7" class="footnote-ref"><a href="#fn:7" rel="footnote"><span class="hint--top hint--rounded" aria-label="[【腾讯云 EdgeOne】EdgeOne Makers 商业化上线公告](https://cloud.tencent.com/announce/detail/2541)">[7]</span></a></sup></p><p>公告说免费版继续保留，但配额的口径动了：</p><table><thead><tr><th align="left">项目</th><th align="left">调整前</th><th align="left">调整后</th></tr></thead><tbody><tr><td align="left">构建</td><td align="left">500 次&#x2F;月</td><td align="left">300 分钟&#x2F;月（按时长算，不按次数）</td></tr><tr><td align="left">Cloud Functions</td><td align="left">50 万 GB-s&#x2F;月</td><td align="left">5 万 GB-s&#x2F;月</td></tr></tbody></table><p>另外，付费套餐上线后，所有 Makers 用户当前套餐周期内已使用的额度会统一清零、重新计算。公告特意补了一句：<strong>「本次重置仅针对用量统计，项目的历史可观测数据将完整保留」</strong>，而且「您无需进行任何操作」。</p><div class="note note-warning">            <p><strong>但是这份公告没写清楚的地方更多</strong></p><p>Pages &#x2F; 静态部署的<strong>流量额度</strong>，一个字没提。</p><p>超量之后是限速、停服，还是转成后付费，也没说。</p><p>付费套餐的额度和能力，只留下一句「上线前在文档公布」。</p><p>所以现在这个问题没有答案：<strong>免费版保留之后，流量边界到底在哪？</strong></p><p>对我来说这反而是个信号 —— 计费口径，是这套服务里最不稳定的部分。今天叫「500 次&#x2F;月」，明天可以叫「300 分钟&#x2F;月」，还是同一个名字，底下换了一套计价单位。</p>          </div><p>说句公道话，这不是腾讯云一家的问题。所有「先免费圈地、再商业化收口」的产品都是这个路子：免费期越长，规则改动时的落差越大。又拍云当年也是「挂个 logo 就免费」，改的时候连公告都省了，我是自己撞上去才知道的。</p><p>这也是我最后选 ESA 的另一个理由 —— <strong>它的价格写得比较死</strong>：5.94 元&#x2F;月 50G，超量 0.198 元&#x2F;GB，白纸黑字放在那儿。至少我知道下个月账单大概长什么样。</p><div class="note note-success">            <p><strong>其他备选（只做参考）</strong></p><ul><li>多吉云：20GB&#x2F;月，200 万次请求&#x2F;月</li><li>七牛云：10GB&#x2F;月，100 万次请求&#x2F;月（有说免费流量不含 HTTPS，用前自己确认）</li><li>初七云：25GB&#x2F;月，限 5Mbps</li><li>丘盾云：100GB&#x2F;月，国内节点需备案</li></ul><p>这些数字也是我搜来的，没逐个去控制台核过。真要下单，自己去官网看一眼——别信二手资料，包括上面那张表。</p><p>至于 Cloudflare，免费是真免费，也不用备案，但国内访问速度……大家都懂。访客在国内的话，它替代不了国内 CDN。</p>          </div><h1 id="4-第一次接入：NS-模式"><a href="#4-第一次接入：NS-模式" class="headerlink" title="4. 第一次接入：NS 模式"></a>4. 第一次接入：NS 模式</h1><p>一开始图省事，直接 NS 接入，把整个域名托管给 ESA。检测显示 NS 已接入。</p><p>源站那边还是 1Panel + OpenResty，怎么部署的前面写过<sup id="fnref:6" class="footnote-ref"><a href="#fn:6" rel="footnote"><span class="hint--top hint--rounded" aria-label="[初次使用 1Panel，部署博客实战记录 | 紫冰的小屋](https://www.vlice.cn/po/edf02dacb27f/)">[6]</span></a></sup>，这次不动它。</p><p>然后我就 ping 了一下，不通。</p><h2 id="4-1-ping-不通是正常的"><a href="#4-1-ping-不通是正常的" class="headerlink" title="4.1. ping 不通是正常的"></a>4.1. ping 不通是正常的</h2><p>查了半天，结论是：<strong>阿里云默认禁 ICMP</strong>，ESA 边缘节点根本不回 ping。</p><p><code>ping</code> 测的是网络层，网站走的是应用层 HTTP&#x2F;HTTPS，两码事。云厂商基本都这么干，安全。</p><p>正确的验证方式是用 <code>curl</code>，不是 <code>ping</code>：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">curl -I https://www.vlice.cn<br></code></pre></td></tr></table></figure><p>看到 <code>Server: ESA</code> 就说明链路已经在走了。</p><h2 id="4-2-ESA-的-IPv6-默认就开着"><a href="#4-2-ESA-的-IPv6-默认就开着" class="headerlink" title="4.2. ESA 的 IPv6 默认就开着"></a>4.2. ESA 的 IPv6 默认就开着</h2><p>顺手研究了一下 IPv6，ESA 这边反而是最省事的：<strong>站点级默认免费开启</strong>，进去确认下开关、选个生效区域（中国内地 &#x2F; 全球）就行，失败会自动回退 IPv4。</p><p>这里有个理论上的前提：</p><p><strong>ESA 边缘节点是双栈，不代表你的源站也是。</strong></p><p>访客走 IPv6 到 ESA，ESA 还得回源到源站。源站只有 IPv4，那这一整条链路就只能跑 IPv4。</p><p><strong>注意，这不是个问题。</strong></p><p>源站 IPv4、ESA 回源走 IPv4，博客照样能访问。ESA 对你的流量负责，不对你的洁癖负责。</p><p>只是我看到那个「回源 IP 版本」的下拉框，手痒了。</p><h1 id="5-岔路：突发奇想让源站上-IPv6"><a href="#5-岔路：突发奇想让源站上-IPv6" class="headerlink" title="5. 岔路：突发奇想让源站上 IPv6"></a>5. 岔路：突发奇想让源站上 IPv6</h1><div class="note note-danger">            <p><strong>先说清楚：这一整章都可以跳过</strong></p><p>切完 ESA，博客其实就已经活了。IPv6 是我中途突发奇想加的需求 —— 「ESA 都双栈了，源站不双栈岂不是浪费」。</p><p>源站继续用 IPv4 回源，一点问题都没有。</p><p><strong>但搞都搞了，索性搞完。</strong></p><p>以下是纯试错记录，按顺序看能省不少时间。如果你只是想让博客能打开，直接跳到第 9 章验收。</p>          </div><h2 id="5-1-弹性公网-IP-好贵（失败）"><a href="#5-1-弹性公网-IP-好贵（失败）" class="headerlink" title="5.1. 弹性公网 IP 好贵（失败）"></a>5.1. 弹性公网 IP 好贵（失败）</h2><p>我的第一反应是：给 ECS 加个弹性公网 IP 不就完了。</p><p>一看价格，算了。（就这一眼，让我意识到自己对 IPv6 的计费模型一无所知。）</p><p>后来才知道方向就不对：<strong>IPv6 的公网出口不走 EIP</strong>。EIP 是给 IPv4 用的，IPv6 走的是「IPv6 网关 + IPv6 公网带宽」这条独立的路，而且 IPv6 网关本身早就免收实例费了。</p><p>计费也有讲究：</p><table><thead><tr><th align="left">计费方式</th><th align="left">说明</th></tr></thead><tbody><tr><td align="left">按固定带宽</td><td align="left">按天计费，适合流量稳定</td></tr><tr><td align="left">按使用流量</td><td align="left">用多少算多少，个人站首选</td></tr></tbody></table><p>按流量计费还能叠 <strong>CDT 免费额度</strong>：中国内地每月 20GB，非中国内地 200GB。静态博客一个月才多少流量，基本等于白嫖。</p><h2 id="5-2-网关建了，却没有公网（失败）"><a href="#5-2-网关建了，却没有公网（失败）" class="headerlink" title="5.2. 网关建了，却没有公网（失败）"></a>5.2. 网关建了，却没有公网（失败）</h2><p>网关建好了，VPC 概览里「公网访问服务」那一栏显示 IPv6 网关 1 个。但 ECS 还是不通公网。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/f8d685c4fc1a5e43.webp" srcset="/img/loading.gif" lazyload alt="VPC 概览：IPv6 网关 1 个"><figcaption aria-hidden="true">VPC 概览：IPv6 网关 1 个</figcaption></figure></p><p>原因：<strong>ECS 分配的 IPv6 默认只有 VPC 内网通信能力</strong>，得手动为这个地址开通「公网带宽」。</p><p>而且入口藏得挺深：网关的列表页只有「删除」，什么操作都没有。必须点进<strong>实例 ID</strong>，进详情页，切到「IPv6 公网带宽」页签，才能看到那个「开通公网带宽」。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/e22e396e1741ddec.webp" srcset="/img/loading.gif" lazyload alt="网关列表：操作列只有删除"><figcaption aria-hidden="true">网关列表：操作列只有删除</figcaption></figure></p><div class="note note-info">            <p>公网带宽不支持整个网段批量开通，只能一个地址一个地址地开。</p>          </div><h2 id="5-3-按钮是灰的（失败）"><a href="#5-3-按钮是灰的（失败）" class="headerlink" title="5.3. 按钮是灰的（失败）"></a>5.3. 按钮是灰的（失败）</h2><p>进去一看，页面「没有数据」，按钮灰色。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/5f31e52e09eaf717.webp" srcset="/img/loading.gif" lazyload alt="公网带宽页：没有数据，按钮是灰的"><figcaption aria-hidden="true">公网带宽页：没有数据，按钮是灰的</figcaption></figure></p><p>原因很朴素：<strong>ECS 还没分配 IPv6 地址</strong>。网关不创造地址，它只管理已经存在的地址。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/09dc4230b8fe20d3.webp" srcset="/img/loading.gif" lazyload alt="ECS 网络信息：只有 IPv4"><figcaption aria-hidden="true">ECS 网络信息：只有 IPv4</figcaption></figure></p><p>所以顺序是：</p><ol><li>VPC 和交换机开通 IPv6 网段（VPC <code>/56</code>，交换机 <code>/64</code>）</li><li>ECS 实例分配 IPv6 地址（地址输入框留空，系统自动生成）</li><li>网关里为该地址开通公网带宽</li><li>安全组单独放行 IPv6</li></ol><p>先确认规格支不支持。我这是经济型 e，<code>ecs.e-c1m1.large</code>，是支持的。老规格像 <code>ic5</code>、<code>se1</code>、<code>d1</code> 这些就悬了。</p><h2 id="5-4-弹性网卡里终于有地址了"><a href="#5-4-弹性网卡里终于有地址了" class="headerlink" title="5.4. 弹性网卡里终于有地址了"></a>5.4. 弹性网卡里终于有地址了</h2><p>分配完之后，弹性网卡详情里出现了 <code>2408:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx</code>（已打码），和 IPv6 网关里显示的地址一致。</p><p>说明底层网络分配这一层，通了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/ce3cbebd9dab1ff9.webp" srcset="/img/loading.gif" lazyload alt="弹性网卡上的 IPv6 地址（IP 已打码）"><figcaption aria-hidden="true">弹性网卡上的 IPv6 地址（IP 已打码）</figcaption></figure></p><p>服务器内验证一下：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_"># </span><span class="language-bash">内核参数，0 表示启用</span><br>sysctl net.ipv6.conf.all.disable_ipv6<br><span class="hljs-meta prompt_"></span><br><span class="hljs-meta prompt_"># </span><span class="language-bash">网卡上的 IPv6 地址</span><br>ip -6 addr show<br><span class="hljs-meta prompt_"></span><br><span class="hljs-meta prompt_"># </span><span class="language-bash">路由</span><br>ip -6 route show<br></code></pre></td></tr></table></figure><p><code>eth0</code> 上有一个 <code>/128</code> 的全局地址，带 <code>dynamic noprefixroute</code>——这是阿里云 DHCPv6 的正常表现，别管它。</p><h2 id="5-5-ping-不通（失败）"><a href="#5-5-ping-不通（失败）" class="headerlink" title="5.5. ping 不通（失败）"></a>5.5. ping 不通（失败）</h2><p>公网带宽开了，地址也有了，<code>ping</code> 还是不通。</p><p>老问题了：<strong>安全组里 IPv4 的规则对 IPv6 完全无效</strong>。必须单独加一条，授权对象 <code>::/0</code>，端口 80 和 443 分开加。</p><p>想 ping 通的话，还得单独放行 ICMPv6。但说实话没必要，网站又不靠 ICMP 活着。</p><h2 id="5-6-本机没有-IPv6，怎么测（失败）"><a href="#5-6-本机没有-IPv6，怎么测（失败）" class="headerlink" title="5.6. 本机没有 IPv6，怎么测（失败）"></a>5.6. 本机没有 IPv6，怎么测（失败）</h2><p>这才是最搞心态的一段。</p><p>我在本地 <code>curl -6</code> 测，怎么都不通：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">curl -6 -I --resolve gf.hexo.example.com:443:[2408:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx] https://gf.hexo.example.com</span><br>curl: (7) Failed to connect to gf.hexo.example.com port 443 after 1 ms: Couldn&#x27;t connect to server<br></code></pre></td></tr></table></figure><p>而 IPv4 是通的：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">curl -I https://gf.hexo.example.com</span><br>HTTP/1.1 200 OK<br>Server: openresty<br></code></pre></td></tr></table></figure><p>后来上 <code>test-ipv6.com</code><sup id="fnref:4" class="footnote-ref"><a href="#fn:4" rel="footnote"><span class="hint--top hint--rounded" aria-label="[test-ipv6.com - IPv6 连通性测试](https://test-ipv6.com/)">[4]</span></a></sup> 一测：<strong>0&#x2F;10，检测到 0 个 IPv6 地址</strong>。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/c53d8bcb6f04dbd3.webp" srcset="/img/loading.gif" lazyload alt="test-ipv6：0&#x2F;10，无 IPv6 地址（公网 IPv4 已打码）"><figcaption aria-hidden="true">test-ipv6：0/10，无 IPv6 地址（公网 IPv4 已打码）</figcaption></figure></p><div class="note note-warning">            <p>我家宽带压根没有 IPv6 出口。本地连 IPv6 的路都没有，自然没法去访问别人的 IPv6。</p><p>这不是服务器的问题，是我自己网络环境的问题。<strong>别在一条不存在的路上测车。</strong></p>          </div><p>所以本地测试直接放弃，改成在服务器内部测。服务器有 IPv6，让它自己测自己：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">curl -6 -I https://www.aliyun.com</span><br>HTTP/2 403<br>x-tengine-error: denied by UA ACL = blacklist<br></code></pre></td></tr></table></figure><p>403 反而是好消息。阿里云官网拒绝 curl 的 UA 而已，说明<strong>出方向</strong>的 IPv6 是通的。</p><h2 id="5-7-tlsv1-unrecognized-name：Nginx-没监听-IPv6"><a href="#5-7-tlsv1-unrecognized-name：Nginx-没监听-IPv6" class="headerlink" title="5.7. tlsv1 unrecognized name：Nginx 没监听 IPv6"></a>5.7. tlsv1 unrecognized name：Nginx 没监听 IPv6</h2><p>出方向通了，测自己的域名：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">curl -6 -I https://gf.hexo.example.com</span><br>curl: (35) OpenSSL/3.0.13: error:0A000458:SSL routines::tlsv1 unrecognized name<br></code></pre></td></tr></table></figure><p><code>unrecognized name</code>，SNI 的问题。TLS 握手时服务端「不认」这个域名。</p><p>翻 1Panel 生成的配置<sup id="fnref:5" class="footnote-ref"><a href="#fn:5" rel="footnote"><span class="hint--top hint--rounded" aria-label="[1Panel 文档](https://1panel.cn/docs/)">[5]</span></a></sup>，一眼就看到了：</p><figure class="highlight nginx"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs nginx"><span class="hljs-attribute">listen</span> <span class="hljs-number">80</span> ;<br><span class="hljs-attribute">listen</span> <span class="hljs-number">443</span> ssl ;<br><span class="hljs-attribute">listen</span> <span class="hljs-number">443</span> quic ;<br></code></pre></td></tr></table></figure><p>全是 IPv4。虽然 <code>ss -tulnp</code> 里能看到 <code>[::]:443</code>（Nginx 默认会双栈绑定），但在多虚拟主机的场景下，<strong>不显式写 IPv6 监听就是会出 SNI 识别问题</strong>。</p><p>补上就完事：</p><figure class="highlight nginx"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs nginx"><span class="hljs-attribute">listen</span> <span class="hljs-number">80</span> ;<br><span class="hljs-attribute">listen</span> [::]:<span class="hljs-number">80</span>;<br><span class="hljs-attribute">listen</span> <span class="hljs-number">443</span> ssl ;<br><span class="hljs-attribute">listen</span> [::]:<span class="hljs-number">443</span> ssl;<br><span class="hljs-attribute">listen</span> <span class="hljs-number">443</span> quic ;<br><span class="hljs-attribute">listen</span> [::]:<span class="hljs-number">443</span> quic;<br></code></pre></td></tr></table></figure><div class="note note-info">            <p><strong>敲黑板</strong></p><p>改完之后一定要 <strong>重载 OpenResty</strong>。而且以后新建站点，记得在 1Panel 的「网站 → 设置 → 其他」里勾上「监听 IPv6」，让它自动生成，别每次都手动补。</p>          </div><p>重载后再测：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">curl -6 -I https://gf.hexo.example.com</span><br>HTTP/2 200<br>server: openresty<br></code></pre></td></tr></table></figure><p>🎉 到这一步，源站的 IPv6 才算真正打通。<strong>能出去 ≠ 能被进来</strong>，这两个方向得分别验证。</p><h1 id="6-回到-ESA：还有三个坑"><a href="#6-回到-ESA：还有三个坑" class="headerlink" title="6. 回到 ESA：还有三个坑"></a>6. 回到 ESA：还有三个坑</h1><p>源站就绪，回 ESA 配回源。</p><h2 id="6-1-源地址池"><a href="#6-1-源地址池" class="headerlink" title="6.1. 源地址池"></a>6.1. 源地址池</h2><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/403c427647249ffd.webp" srcset="/img/loading.gif" lazyload alt="编辑源服务器：域名 + 回源 Host 头 + 优先 IPv6（源站域名已打码）"><figcaption aria-hidden="true">编辑源服务器：域名 + 回源 Host 头 + 优先 IPv6（源站域名已打码）</figcaption></figure></p><p>三个字段：源服务器地址 <code>gf.hexo.example.com</code>、回源 Host 头 <code>gf.hexo.example.com</code>、回源 IP 版本选「优先使用 IPv6 源站」。</p><p>回源 Host 头这个要填对，它决定 ESA 以什么域名去源站拉内容，得和 Nginx 里的 <code>server_name</code> 对得上。</p><p>另外，如果要配 IPv6 源站，<strong>得先在 ESA 侧开启「IPv6 回源」</strong>，不开的话地址填了也不生效。</p><h2 id="6-2-回源-SNI"><a href="#6-2-回源-SNI" class="headerlink" title="6.2. 回源 SNI"></a>6.2. 回源 SNI</h2><p>源地址池里的「回源 Host 头」只管 HTTP 层的 Host，<strong>管不到 TLS 握手里的 SNI</strong>。</p><p>如果源站 Nginx 的 <code>server_name</code> 校验严格，SNI 对不上，一样握手失败。得去「规则 → 回源规则」里单独配一次回源 SNI。</p><p>ESA 默认把<strong>回源 Host 头</strong>当作 SNI，所以我这里没单独配——源地址池里填对了 <code>gf.hexo.example.com</code>，SNI 就跟着对了。什么时候需要单独配？一个源站 IP 上挂了多个站点、<code>server_name</code> 各不相同的时候。</p><h2 id="6-3-SNI-白名单（最后直接关了）"><a href="#6-3-SNI-白名单（最后直接关了）" class="headerlink" title="6.3. SNI 白名单（最后直接关了）"></a>6.3. SNI 白名单（最后直接关了）</h2><p>本来想开 <strong>SNI 白名单</strong>，只让自己的域名进来，结果卡在输入框上。</p><div class="note note-info">            <p><strong>先说结论：这玩意儿我最后直接关了。</strong></p><ul><li>填 <code>@</code>，没用</li><li>填 <code>hexo</code>，也不对</li></ul><p>因为输入框会自动把后缀补上，最终变成 <code>前缀.www.vlice.cn</code>——校验的永远是下拉提示里那个「补全后」的完整域名，你怎么填都填不出想要的效果。</p><p>既然没用，索性不设置了，开关直接关掉。</p>          </div><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/de1bcb1f58d17fea.webp" srcset="/img/loading.gif" lazyload alt="SNI 白名单：输入 a，自动补成 a.www.vlice.cn"><figcaption aria-hidden="true">SNI 白名单：输入 a，自动补成 a.www.vlice.cn</figcaption></figure></p><p>顺带纠正一下自己：<strong>这个白名单并不是之前 <code>handshake failed</code> 的元凶。</strong></p><p>我一度也把它当成嫌疑人——毕竟一开白名单就报握手失败，看起来很像。但真正的拦路虎其实是 DNS，白名单只是顺手开了个自己都没看懂的功能（见第 8 章）。</p><div class="note note-danger">            <p><strong>这条经验值点钱</strong></p><p>排障时最怕「顺手开了个新功能」。它会让故障现场多一个变量，而这个变量往往是<strong>你自己刚加的</strong>，还带着一整屏看不懂的交互。</p><p>要开功能，等站好了再开。</p>          </div><h1 id="7-NS-还是-CNAME：我反复横跳"><a href="#7-NS-还是-CNAME：我反复横跳" class="headerlink" title="7. NS 还是 CNAME：我反复横跳"></a>7. NS 还是 CNAME：我反复横跳</h1><p>这段是纯纯的折腾，记录一下，省得下次再纠结。</p><h2 id="7-1-一开始-NS"><a href="#7-1-一开始-NS" class="headerlink" title="7.1. 一开始 NS"></a>7.1. 一开始 NS</h2><p>因为省事，整个域名托管给 ESA，证书的 DCV 验证也自动做，TXT 记录都不用手管。</p><p>但有个问题：<strong>NS 接入之后，原来 DNS 服务商上的记录不会自动迁移过来</strong>。我域名下几十条解析，得一条条在 ESA 里重建。</p><p>更要命的是，ESA 里手动添加记录时，那个输入框的交互让人很迷惑——主机记录后面还跟着域名后缀，填完自己也拿不准到底加没加对。</p><p>我当时的判断是：<strong>NS 接入对我来说不行，维护量太大。</strong></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/31192498174313df.webp" srcset="/img/loading.gif" lazyload alt="添加记录：主机记录后面还缀着域名"><figcaption aria-hidden="true">添加记录：主机记录后面还缀着域名</figcaption></figure></p><h2 id="7-2-转-CNAME"><a href="#7-2-转-CNAME" class="headerlink" title="7.2. 转 CNAME"></a>7.2. 转 CNAME</h2><p>CNAME 的好处很直接：DNS 控制权还在自己手里，只需要给需要加速的域名（比如 <code>www</code>）单加一条 CNAME，其他记录一概不动。</p><p>理论上，ESA 控制台里有「转换为 CNAME 接入模式」，不用删站点。但它有前置条件：</p><div class="note note-warning">            <p>转换前，ESA 里所有「仅 DNS」状态的记录（灰色云朵）必须先处理掉——要么删，要么改成「代理加速」（橙色云朵），否则转换按钮是灰的。</p>          </div><p>我看了两眼就放弃了，<strong>直接把站点删了，重新建一个</strong>。</p><p>说好听点叫「重建」，说难听点就是「删库跑路再重装」。代价也很实在：证书要重新签，源地址池要重建，DNS 记录还得重录一遍。</p><h2 id="7-3-又改回-NS"><a href="#7-3-又改回-NS" class="headerlink" title="7.3. 又改回 NS"></a>7.3. 又改回 NS</h2><p>转完 CNAME，我又意识到一个问题：证书续签。</p><table><thead><tr><th align="left">接入方式</th><th align="left">续签时的 DCV 验证</th></tr></thead><tbody><tr><td align="left">NS 接入</td><td align="left">ESA 自动完成，不用管</td></tr><tr><td align="left">CNAME 接入</td><td align="left">未开启「托管 DCV」时，需要自己重新配 TXT 记录</td></tr></tbody></table><p>Let’s Encrypt 是 90 天一张。也就是说，用 CNAME 接入的话，每三个月我得记着回去补一条 TXT。说实话，这事儿我一定会忘。</p><p>所以最后 —— <strong>我又改回 NS 了</strong>，用 <code>@</code> 记录直接指向源地址池，<code>www</code> 跟着走。</p><p>改回去也没走转换，还是<strong>删了重建</strong>。一来一回，这个站点我建了三遍。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/936bb813b6028802.webp" srcset="/img/loading.gif" lazyload alt="改回 NS 接入：@ 记录指向源地址池"><figcaption aria-hidden="true">改回 NS 接入：@ 记录指向源地址池</figcaption></figure></p><div class="note note-info">            <p>两次切换都是「删站点 + 重建」，不是点按钮转换。所以严格说，我根本没验证过那个「转换为 CNAME 接入模式」到底好不好使——只是每次看它要求先清理一堆「仅 DNS」记录，就觉得不划算。</p><p>如果你记录不多、也不介意逐条处理，那个转换按钮应该是更省事的路径。</p>          </div><div class="note note-success">            <p>结论：<strong>记录多的域名，其实才更该用 NS 接入。</strong></p><p>一次性把几十条记录搬过去，换来的是一劳永逸的证书自动续期，以及再也不用管 DCV 的 TXT 记录。CNAME 更适合那种「只加速某几个子域名、其他都在别处」的场景。</p><p>至于那条验证用的 TXT 记录，签发完就可以删，不影响当前证书。</p>          </div><h1 id="8-最后一个坑，在我自己电脑上"><a href="#8-最后一个坑，在我自己电脑上" class="headerlink" title="8. 最后一个坑，在我自己电脑上"></a>8. 最后一个坑，在我自己电脑上</h1><p>配置全绿了，公共 DNS 也能查到 ESA 的节点 IP 了，服务器上 <code>curl</code> 也是 200。</p><p>然后我的浏览器：</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs text">无法访问此网站<br>无法找到 www.vlice.cn 的 DNS 地址<br>DNS_PROBE_STARTED<br></code></pre></td></tr></table></figure><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/3024302ee043ef0f.webp" srcset="/img/loading.gif" lazyload alt="Edge：DNS_PROBE_STARTED"><figcaption aria-hidden="true">Edge：DNS_PROBE_STARTED</figcaption></figure></p><p>好家伙。</p><p>排查：</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs powershell"><span class="hljs-built_in">PS</span> C:\Users\紫冰&gt; nslookup www.vlice.cn<br>服务器:  UnKnown<br>Address:  fe80::<span class="hljs-number">1</span><br><br>*** 没有 www.vlice.cn 可以使用的 internal <span class="hljs-built_in">type</span> <span class="hljs-keyword">for</span> both IPv4 and IPv6 Addresses (A+AAAA)记录<br></code></pre></td></tr></table></figure><p><code>fe80::1</code>。这是我家路由器&#x2F;光猫的 IPv6 链路本地地址。</p><p>Windows 很聪明，一看「哦我有 IPv6」，就优先拿这个地址去查 DNS。但这玩意儿根本没有可用的 IPv6 出口，请求发出去就是超时，系统死等，然后报错。</p><p><strong>而公网 DNS 其实是好的：</strong></p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs powershell"><span class="hljs-built_in">PS</span> C:\Users\紫冰&gt; nslookup www.vlice.cn <span class="hljs-number">223.5</span>.<span class="hljs-number">5.5</span><br>名称:    www.vlice.cn<br>Addresses:  <span class="hljs-number">223.111</span>.<span class="hljs-number">27.65</span><br>            <span class="hljs-number">223.111</span>.<span class="hljs-number">27.72</span><br>            <span class="hljs-number">223.111</span>.<span class="hljs-number">27.67</span><br>            <span class="hljs-number">223.111</span>.<span class="hljs-number">27.74</span><br></code></pre></td></tr></table></figure><p><code>223.111.27.x</code>，ESA 的节点。链路完全正常，<strong>是我自己的网络环境在骗我</strong>。</p><h2 id="8-1-怎么破"><a href="#8-1-怎么破" class="headerlink" title="8.1. 怎么破"></a>8.1. 怎么破</h2><p>先说我没干的事：<strong>我没有去关 IPv6。</strong></p><p>网上（包括各种「教你修 DNS」）最常见的建议是「把网卡里的 IPv6 协议取消勾选」。但 IPv6 本身没惹我，惹我的是<strong>那个指向 <code>fe80::1</code> 的 DNS</strong>。</p><p>所以最后是这么解决的：<strong>手动指定 DNS 服务器，IPv4 和 IPv6 两组都填。</strong></p><div class="note note-warning">            <p><strong>第一步：先刷缓存（顺手）</strong></p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs powershell">ipconfig /flushdns<br></code></pre></td></tr></table></figure><p>刷完关掉报错的标签页重新开。这一步不一定解决问题，但成本最低。</p>          </div><p><strong>第二步：把 DNS 写死</strong></p><p><code>Win + R</code> 输入 <code>ncpa.cpl</code> → 右键网卡 → 属性。</p><figure class="highlight dns"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs dns">Internet 协议版本 <span class="hljs-number">4</span> (TCP/IPv4)<br>  首选：<span class="hljs-number">223.5.5.5</span>        （阿里云 AliDNS）<br>  备选：<span class="hljs-number">119.29.29.29</span>     （腾讯 DNSPod）<br><br>Internet 协议版本 <span class="hljs-number">6</span> (TCP/IPv6)<br>  首选：<span class="hljs-number">2400:3200::1</span><br>  备选：<span class="hljs-number">2400:3200:baba::1</span>   （上面那两个的 IPv6 版本）<br></code></pre></td></tr></table></figure><p>关键在第二组。<strong>IPv6 的 DNS 也要填</strong>，否则系统默认还是去问 <code>fe80::1</code>，前面那一组填了也白填。</p><div class="note note-info">            <p><strong>公共 DNS 的 IPv6 地址去哪查？</strong></p><p>我用的这个站：<a href="https://dns.icoa.cn/">公共DNS服务器地址大全 - dns.icoa.cn</a></p><p>阿里、腾讯、114、Google 的 IPv4 &#x2F; IPv6 地址都在上面列着，复制粘贴就行。</p>          </div><p>填完确定，浏览器关掉重开——通了。</p><p>至于「要不要干脆把 IPv6 协议关掉」：也能用，等于绕过问题。但我不想为了一个坏掉的 DNS，把整个协议栈关掉。DNS 填对了，IPv6 留着也不碍事；万一哪天宽带真给了 IPv6 出口，还省得再改回来。</p><p>这个我直接固化下来了。运营商的默认 DNS，真的是玄学。</p><div class="note note-danger">            <p><strong>啊，成功了。运营商的破 DNS 误我啊。</strong></p>          </div><h1 id="9-验收"><a href="#9-验收" class="headerlink" title="9. 验收"></a>9. 验收</h1><p>最后在服务器上验一遍：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">curl -I https://www.vlice.cn</span><br>HTTP/1.1 200 OK<br>Server: ESA<br>Content-Type: text/html<br>Strict-Transport-Security: max-age=7776000; preload<br>Alt-Svc: h3=&quot;:443&quot;; ma=86400<br>x-site-cache-status: DYNAMIC<br></code></pre></td></tr></table></figure><p><code>Server: ESA</code>，200，HSTS，QUIC 也活着。</p><p>完整链路：</p><p><strong>访客（IPv4&#x2F;IPv6）→ ESA 边缘节点（双栈）→ IPv6 回源 → ECS（<code>2408:xxxx:...</code>）→ 1Panel &#x2F; OpenResty</strong></p><p>查 DNS 也能确认 <code>www</code> 已经指向 ESA 节点 IP，源站域名的 AAAA 记录也正常：</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">nslookup hexo.example.com</span><br>名称:    hexo.example.com<br>Addresses:  x.x.x.x<br>            2408:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx<br></code></pre></td></tr></table></figure><div class="note note-info">            <p><strong>顺手做了一次隐私处理</strong></p><p>写完回头看了一遍，把能定位到我服务器的信息都抹了：</p><ul><li><strong>源站域名的子域前缀</strong>：正文统一换成 <code>hexo.example.com</code>，截图打了码</li><li><strong>源站公网 IPv4 &#x2F; IPv6</strong>：正文换成 <code>x.x.x.x</code> 和 <code>2408:xxxx:...</code>，截图打了码</li><li><strong>我家宽带的公网 IPv4</strong>（<code>test-ipv6</code> 那张图里会显示）：也打了码</li></ul><p>为什么源站域名也要抹？因为它<strong>没有接 ESA</strong>，是直连的。贴出来等于告诉所有人「绕过 CDN 从这儿进」，被扫到就是直接打源站，一点防护都没有。</p><p>写排障博客最容易翻车的地方就在这儿——为了讲清楚，把 IP、域名、实例 ID、安全组 ID 全贴出来，等于把门牌号连同钥匙孔尺寸一起公布了。</p>          </div><h1 id="10-结语"><a href="#10-结语" class="headerlink" title="10. 结语"></a>10. 结语</h1><div class="note note-success">            <p><strong>坑位清单</strong></p><ol><li>又拍云边缘节点直接挂掉，不给明确错误，只甩 <code>handshake failed</code></li><li>又拍云 CNAME 直访提示「未备案」，是个误导性中间现象</li><li>萌备巡查判定站点失联，警告 + 限期整改</li><li>想给 ECS 上 IPv6，先跑去算 EIP 的钱（方向错了，而且这需求还是我自己加的）</li><li>IPv6 网关建好了不等于有公网，要单独开公网带宽</li><li>公网带宽页面「没有数据」，是因为 ECS 还没分配 IPv6</li><li>安全组 IPv4 规则对 IPv6 无效，必须单独放行 <code>::/0</code></li><li>本机没有 IPv6 出口，本地 <code>curl -6</code> 永远失败</li><li>Nginx 配置缺 <code>listen [::]:443 ssl;</code>，表现为 <code>tlsv1 unrecognized name</code></li><li>ESA 的 SNI 白名单输入框会自动补全域名后缀，<code>@</code> 和 <code>hexo</code> 都填不对，最后直接关掉了</li><li>NS → CNAME → NS，两次都是删站点重建，为了证书能自动续期</li><li>最后一个坑在本地路由器：<code>fe80::1</code> 这个不可达的 IPv6 DNS，最后靠手动指定 IPv4 + IPv6 DNS 解决</li></ol>          </div><p>现在回头看，这次真正值钱的经验就四条：</p><ul><li><strong>CDN 挂了，你连自己都不知道自己挂了。</strong> 备案、萌备、收录，这些都是按「站点可达」来判定的，CDN 是其中的单点。</li><li><strong>能出去 ≠ 能被进来。</strong> IPv6 尤其明显，出方向和入方向是两套闸门（公网带宽 &#x2F; 安全组 &#x2F; Nginx 监听），得分别验。</li><li><strong><code>ping</code> 不通、本地打不开，都不等于服务器坏了。</strong> 这次一半的时间花在跟自己的本地环境搏斗。</li><li><strong>排障的时候，别顺手给自己加需求。</strong> 这条 IPv6 岔路是我自己开的，SNI 白名单也是顺手开的，本来一晚上能收工的事，硬生生折腾多了一倍。修复和升级，最好别同时进行。</li></ul><h2 id="后记"><a href="#后记" class="headerlink" title="后记"></a>后记</h2><p>这条 IPv6 岔路真正的代价，是我一度以为「博客打不开是不是因为源站没 IPv6」——纯属自己给自己制造疑惑。</p><p>排障最怕的不是故障复杂，是中途改需求。一改，「原本就有问题的地方」和「刚动过的地方」就搅在一起，谁也分不清，只能从头再捋一遍。</p><p>顺便把公共 DNS 那点事搞明白了。</p><p><code>8.8.8.8</code>、<code>1.1.1.1</code>、<code>223.5.5.5</code>、<code>119.29.29.29</code>、<code>114.114.114.114</code>、<code>101.101.101.101</code>……这些像暗号一样的 IP，其实是各大厂和机构在互联网早期就囤下的「豹子号」段，上面架着 DNS 服务器，监听 53 端口。</p><p>一个 IP 能服务全球，靠的是 <strong>Anycast（任意播）</strong>：同一个 IP 在成千上万个机房同时宣告，路由器自动把你导到最近的那台。</p><p>这不就是 CDN 的原理吗。我绕了一圈，从又拍云到 ESA，从源站到边缘节点，最后发现 DNS 用的还是同一套思路。</p><p>另外，这次全程是拉着<strong>网页版 DeepSeek</strong> 陪跑排障的。免费版能力有限，得我自己截图复述现象，但一路把方向捋得很清楚。真香。</p><p>【2026-11-05 23:40，写于本站刚复活后】<br><figure><img src="https://cdn.vlice.cn/hexo/po/2026/1106/eeb420cae44a206f.png" srcset="/img/loading.gif" lazyload alt="底部也改掉了"><figcaption aria-hidden="true">底部也改掉了</figcaption></figure></p><h1 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://www.aliyun.com/product/esa">边缘安全加速 ESA - 阿里云</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:2" class="footnote-text"><span><a href="https://cloud.tencent.com/product/teo">Tencent Cloud EdgeOne - 腾讯云</a><a href="#fnref:2" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:3" class="footnote-text"><span><a href="https://icp.gov.moe/">萌ICP备 - icp.gov.moe</a><a href="#fnref:3" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:4" class="footnote-text"><span><a href="https://test-ipv6.com/">test-ipv6.com - IPv6 连通性测试</a><a href="#fnref:4" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:5" class="footnote-text"><span><a href="https://1panel.cn/docs/">1Panel 文档</a><a href="#fnref:5" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:6" class="footnote-text"><span><a href="https://www.vlice.cn/po/edf02dacb27f/">初次使用 1Panel，部署博客实战记录 | 紫冰的小屋</a><a href="#fnref:6" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:7" class="footnote-text"><span><a href="https://cloud.tencent.com/announce/detail/2541">【腾讯云 EdgeOne】EdgeOne Makers 商业化上线公告</a><a href="#fnref:7" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/b065c1069cb4/</id>
    <link href="https://www.vlice.cn/po/b065c1069cb4/"/>
    <published>2026-11-05T15:40:01.000Z</published>
    <summary>又拍云莫名其妙不回源了，博客直接躺平。萌备巡查判定站点失联，警告 + 限期整改。吓得我连夜切到阿里云 ESA（首月免费，之后一顿饭钱），顺手把源站的 IPv6 也打通了。</summary>
    <title>博客手札：又拍云不行了，萌备差点被收回，果断切到阿里 ESA</title>
    <updated>2026-11-10T05:01:17.001Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="博客手札" scheme="https://www.vlice.cn/categories/%E5%8D%9A%E5%AE%A2%E6%89%8B%E6%9C%AD/"/>
    <category term="Hexo" scheme="https://www.vlice.cn/tags/Hexo/"/>
    <category term="博客" scheme="https://www.vlice.cn/tags/%E5%8D%9A%E5%AE%A2/"/>
    <category term="优化" scheme="https://www.vlice.cn/tags/%E4%BC%98%E5%8C%96/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><div class="note note-info">            <p>2026-11-7 23:38:40 补充<br>蒜鸟蒜鸟，不换模板了。懒得折腾了。Fluid也挺好看的，简洁明了。耐看型。</p>          </div><p>完了完了，搞嗨了。事情越搞越多，多得我都害怕。</p><p>并排显示图片那篇还没完结，就只是写完了黑群晖，【放弃Fluid，拥抱Butterfly】还没开工呢。也不确定到底要不要换。先隐藏了吧。</p><p>现在我的阵列盒还没发连上黑群晖，目前用的是 C to B 3.0 线。又买了 A to B 3.0 试试看能不能行。之前就是 A 口线，群晖可以正常挂载第三方阵列盒。</p><p>现在趁着博客内容还不多，把分类给规整一下。看了别人的博客<sup id="fnref:1" class="footnote-ref"><a href="#fn:1" rel="footnote"><span class="hint--top hint--rounded" aria-label="[LiuShen's Blog - 清羽飞扬](https://blog.liushen.fun/)">[1]</span></a></sup>，我都嫌弃我自己的。</p><h1 id="开始施工"><a href="#开始施工" class="headerlink" title="开始施工"></a>开始施工</h1><h2 id="内容定义"><a href="#内容定义" class="headerlink" title="内容定义"></a>内容定义</h2><p>要给文章好好分类，那就先定义大类。</p><table><thead><tr><th align="right">分类</th><th align="left">解释</th></tr></thead><tbody><tr><td align="right">博客手札</td><td align="left">存放折腾博客的文章，比如这一篇博文。</td></tr><tr><td align="right">旅行游记</td><td align="left">我去过好多地方，就是一直没想着写游记。以后好好写。</td></tr><tr><td align="right">极客工程</td><td align="left">放一些折腾代码、软件以及硬件的内容。</td></tr><tr><td align="right">闲情逸致</td><td align="left">放一些读后感、观后感之类的吧。</td></tr><tr><td align="right">游戏爽玩</td><td align="left">放一些写游戏的博文。</td></tr><tr><td align="right">无法分类</td><td align="left">难以分类的内容，可能没有吧。放个占位在这里。</td></tr></tbody></table><h2 id="前后对比"><a href="#前后对比" class="headerlink" title="前后对比"></a>前后对比</h2><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/8489b0e6e25f978e.png" srcset="/img/loading.gif" lazyload alt="整理前"><figcaption aria-hidden="true">整理前</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/b322842b6098ed6d.png" srcset="/img/loading.gif" lazyload alt="整理后"><figcaption aria-hidden="true">整理后</figcaption></figure></p><h1 id="后记"><a href="#后记" class="headerlink" title="后记"></a>后记</h1><p>柳神的博客是真的漂亮，看得我流口水。</p><p>后面就该折腾静态伪 AI 了。把所有简介都改成 AI 的分析概述。然后用打字机效果在文章顶部展示出来。</p><p>Deepseek 已经训练好了。直接把 md 文件丢上去就行了。</p><h1 id="参考博客"><a href="#参考博客" class="headerlink" title="参考博客"></a>参考博客</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://blog.liushen.fun/">LiuShen’s Blog - 清羽飞扬</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/86f1569bdf17/</id>
    <link href="https://www.vlice.cn/po/86f1569bdf17/"/>
    <published>2026-03-13T12:06:30.000Z</published>
    <summary>趁博客文章还不多，把分类体系重新梳理了一遍：定了六个大类，也顺手记下最近折腾黑群晖和想换主题的念头。</summary>
    <title>博客手札：趁文章还少，整理一下分类</title>
    <updated>2026-11-10T05:01:17.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="极客工程" scheme="https://www.vlice.cn/categories/%E6%9E%81%E5%AE%A2%E5%B7%A5%E7%A8%8B/"/>
    <category term="系统" scheme="https://www.vlice.cn/categories/%E6%9E%81%E5%AE%A2%E5%B7%A5%E7%A8%8B/%E7%B3%BB%E7%BB%9F/"/>
    <category term="黑群晖" scheme="https://www.vlice.cn/tags/%E9%BB%91%E7%BE%A4%E6%99%96/"/>
    <category term="NAS" scheme="https://www.vlice.cn/tags/NAS/"/>
    <category term="恢复过程" scheme="https://www.vlice.cn/tags/%E6%81%A2%E5%A4%8D%E8%BF%87%E7%A8%8B/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><h1 id="1-前言"><a href="#1-前言" class="headerlink" title="1. 前言"></a>1. 前言</h1><div class="note note-success">            <p>原标题：记录一下安装黑群晖的过程</p><p>我以为引导没了要重装呢，是按照新装流程写的。写到【3.3.】的时候，RR 识别到了我装过群晖。这样就省事多了，但是文章不想重新写了。就稍微改了改。</p>          </div><p>因为女朋友第一次上门的事情。家里人给我桌子收拾了一下。我的 NAS 直接给我拆了，作为启动盘的 SD 卡也找不见了。所以群晖直接没了。</p><p>现在拿个闪迪U盘，这个大一点总不会再一次找不见了吧。</p><h1 id="2-准备工作"><a href="#2-准备工作" class="headerlink" title="2. 准备工作"></a>2. 准备工作</h1><p>一个U盘、一个黑群晖引导（RR）、一个启动盘制作工具、<span style="color:#df6e41"><strong>一台闲置主机（这才是重点）</strong></span>。</p><h2 id="2-1-U盘"><a href="#2-1-U盘" class="headerlink" title="2.1. U盘"></a>2.1. U盘</h2><p>推荐参数：容量：≥6GB。我这个 16GB 的。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0311/feae4ce33ab7869b.png" srcset="/img/loading.gif" lazyload alt="闪迪16G 酷铄金属USB3.0"><figcaption aria-hidden="true">闪迪16G 酷铄金属USB3.0</figcaption></figure></p><p>无广啊，我这小体量也接不到广告。这买了好几年了，从犄角旮旯里抠出来的。</p><h2 id="2-2-黑群晖引导（RR）"><a href="#2-2-黑群晖引导（RR）" class="headerlink" title="2.2. 黑群晖引导（RR）"></a>2.2. 黑群晖引导（RR）</h2><p>下载链接：<a href="https://github.com/RROrg/rr/releases">Releases · RROrg&#x2F;rr</a></p><p>目前是 26.3.0 版本，下载第一个<span class="label label-success">rr-26.3.0.img.zip</span>即可。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0311/db5acf7af6e10d6b.png" srcset="/img/loading.gif" lazyload alt="黑群晖镜像"><figcaption aria-hidden="true">黑群晖镜像</figcaption></figure></p><p>下载完成之后，解压出<span class="label label-success">rr.img</span>备用。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0311/f0108b917c7dd50c.png" srcset="/img/loading.gif" lazyload alt="rr.img"><figcaption aria-hidden="true">rr.img</figcaption></figure></p><h2 id="2-3-启动盘制作工具"><a href="#2-3-启动盘制作工具" class="headerlink" title="2.3. 启动盘制作工具"></a>2.3. 启动盘制作工具</h2><p>请出大名鼎鼎的 <a href="https://rufus.ie/zh/">Rufus</a>，国内访问略卡。可能需要架梯子。</p><p>装过Linux实体机的朋友，对这个应该不陌生。启动盘都是用这个做的。只有win的启动盘特立独行，mac也很特殊。三分天下既视感。</p><p>下载链接：<a href="https://github.com/pbatard/rufus/releases/download/v4.13/rufus-4.13p.exe">rufus-4.13p.exe</a></p><p>图吧工具箱也有提供 rufus 的便携版，4.5 的老版本了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0311/113218bed59fb645.png" srcset="/img/loading.gif" lazyload alt="版本对比"><figcaption aria-hidden="true">版本对比</figcaption></figure></p><h2 id="2-4-闲置主机"><a href="#2-4-闲置主机" class="headerlink" title="2.4. 闲置主机"></a>2.4. 闲置主机</h2><div class="note note-warning">            <p>如果搭建NAS是为了家庭影片库，那么主机配置很重要。一定要选 Intel 平台的独显机子。硬解码相关。</p><p>如果像我一样，只是作为文件中心，不是重度影片需求。AMD核显也可以。我当年就是图便宜。</p>          </div><p>介绍一下我的闲置主机。</p><ul><li>品牌：华硕ASUS</li><li>品类：迷你主机（桌上型电脑）</li><li>型号：PN51（PN51AR58E）</li><li>电源：19V 3.42A 65W</li><li>CPU：AMD锐龙 R5-5500U</li><li>内存：8GB（海力士DDR4 3200），空置</li><li>硬盘：M2 512GB，STAT 2.5寸空置</li></ul>    <div class="fold">      <div class="fold-title fold-primary collapsed" data-toggle="collapse" href="#collapse-f07d628e" role="button" aria-expanded="false" aria-controls="collapse-f07d628e">        <div class="fold-arrow">▶</div>实物图（点开查看）      </div>      <div class="fold-collapse collapse" id="collapse-f07d628e">        <div class="fold-content">          <p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0311/f0d66362851a234b.png" srcset="/img/loading.gif" lazyload alt="购物记录"><figcaption aria-hidden="true">购物记录</figcaption></figure></p><p>现在回头看，新的果然没有二手香啊。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/ae27b7658dfdca87.jpg" srcset="/img/loading.gif" lazyload alt="实物图"><figcaption aria-hidden="true">实物图</figcaption></figure></p>        </div>      </div>    </div><h1 id="3-引导"><a href="#3-引导" class="headerlink" title="3. 引导"></a>3. 引导</h1><p>我就直接简略的写一下了，不关键的图片我就不贴了。</p><h2 id="3-1-制作启动盘"><a href="#3-1-制作启动盘" class="headerlink" title="3.1. 制作启动盘"></a>3.1. 制作启动盘</h2><div class="note note-warning">            <p>注意U盘中的资料，这是格式化写入。U盘中的一切都将烟消云散。</p>          </div><p>打开 Rufus，选择前面解压出来的<span class="label label-success">rr.img</span>镜像。其他都改不了，直接开始即可。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0311/6e88301e31441a36.png" srcset="/img/loading.gif" lazyload alt="制作启动盘"><figcaption aria-hidden="true">制作启动盘</figcaption></figure></p><p>完成之后就可以拔出了，准备引导RR。</p><h2 id="3-2-启动RR"><a href="#3-2-启动RR" class="headerlink" title="3.2. 启动RR"></a>3.2. 启动RR</h2><div class="note note-warning">            <p>请务必准备一根网线，RR引导过程需要网络。走的 Web UI 流，需要局域网可访问。但是 WiFi 处于无法驱动状态。所以需要网线。</p>          </div><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/1786bffcca6940d3.jpg" srcset="/img/loading.gif" lazyload alt="连接设备"><figcaption aria-hidden="true">连接设备</figcaption></figure></p><p>连接好设备，插入启动盘，进入 BIOS。<strong>(华硕就是【F2】和【DELETE】键)</strong></p><p>选择UEFI: U盘启动。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/7fe81f11e37357e6.jpg" srcset="/img/loading.gif" lazyload alt="启动项"><figcaption aria-hidden="true">启动项</figcaption></figure></p><p>我也不明白为什么三个选项全是一样的。</p><hr><p>开机之后啥都不用动，等加载完成。左下角会显示一个二维码。</p>    <div class="fold">      <div class="fold-title fold-info collapsed" data-toggle="collapse" href="#collapse-c8f507c6" role="button" aria-expanded="false" aria-controls="collapse-c8f507c6">        <div class="fold-arrow">▶</div>全屏（点开查看）      </div>      <div class="fold-collapse collapse" id="collapse-c8f507c6">        <div class="fold-content">          <p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/f8d4284faf2eb743.jpg" srcset="/img/loading.gif" lazyload alt="全屏"><figcaption aria-hidden="true">全屏</figcaption></figure></p>        </div>      </div>    </div><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/f2522de20123c107.jpg" srcset="/img/loading.gif" lazyload alt="RR引导完成"><figcaption aria-hidden="true">RR引导完成</figcaption></figure></p><p>不插网线的话，eth0 网卡就会“NOT COMMECTED”。就没法继续配置了。</p><div class="note note-success">            <p>一般的话都只有一台显示器。所以要使用 KVM 切屏器。榜一大哥请随意。</p>          </div><p>记住局域网IP 和端口号 7681，切屏进入后续配置。也可以用手机扫码，但是会很不方便。</p><blockquote><p>我这就是：<a href="http://192.168.1.11:7681/">http://192.168.1.11:7681</a></p></blockquote><h2 id="3-3-配置RR"><a href="#3-3-配置RR" class="headerlink" title="3.3. 配置RR"></a>3.3. 配置RR</h2><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/6f4be372f03b8628.png" srcset="/img/loading.gif" lazyload alt="Web UI界面"><figcaption aria-hidden="true">Web UI界面</figcaption></figure></p><div class="note note-warning">            <p>每个人的闲置电脑不同，这一步的选择可能也会不同。准备好翻译软件，或者问 AI。</p><p>需要可以识图的，首先排除纯文字能力的 Deepseek。这个页面可以打开开发者工具，但是canvas渲染无法复制。</p>          </div><p>我电脑上只装了豆包，我就用豆包了。千问、元宝都可以用的。</p><hr><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/64eed7a5b51429d9.png" srcset="/img/loading.gif" lazyload alt="是否恢复"><figcaption aria-hidden="true">是否恢复</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/bf8ddf9e0a9c4475.png" srcset="/img/loading.gif" lazyload alt="豆包回复"><figcaption aria-hidden="true">豆包回复</figcaption></figure></p><p><a href="https://www.doubao.com/thread/w4d040a5308795c87">https://www.doubao.com/thread/w4d040a5308795c87</a></p><p>好吧，我是装过的。还以为引导没了得重装呢。</p><hr><p><img src="https://cdn.vlice.cn/hexo/po/2026/0312/c249e80abd488213.png" srcset="/img/loading.gif" lazyload></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/b079ba6e2a271030.png" srcset="/img/loading.gif" lazyload alt="豆包回复"><figcaption aria-hidden="true">豆包回复</figcaption></figure></p><p><a href="https://www.doubao.com/thread/w060f17089fb423a8">https://www.doubao.com/thread/w060f17089fb423a8</a></p><hr><p><img src="https://cdn.vlice.cn/hexo/po/2026/0312/76b0ab5cf00af0b6.png" srcset="/img/loading.gif" lazyload></p><p>🔍 界面信息解读</p><p>这是 <strong>ARPL（Automated Redpill Loader）</strong> 群晖引导工具的主菜单，用于生成 DSM 系统引导镜像。</p><p>📋 菜单选项功能说明</p><table><thead><tr><th>快捷键</th><th>选项</th><th>功能说明</th></tr></thead><tbody><tr><td><code>m</code></td><td>Choose a model</td><td>选择群晖硬件型号（如 DS920+、DS3623xs 等）</td></tr><tr><td><code>n</code></td><td>Choose a version</td><td>选择 DSM 系统版本号</td></tr><tr><td><code>u</code></td><td>Parse pat</td><td>解析 PAT 安装包，提取系统组件</td></tr><tr><td><code>a</code></td><td>Addons menu</td><td>附加组件菜单（如驱动、补丁等）</td></tr><tr><td><code>o</code></td><td>Modules menu</td><td>内核模块管理（加载&#x2F;卸载驱动）</td></tr><tr><td><code>x</code></td><td>Cmdline menu</td><td>内核启动参数编辑</td></tr><tr><td><code>i</code></td><td>Synoinfo menu</td><td>硬件序列号、型号等信息配置</td></tr><tr><td><code>v</code></td><td>Advanced menu</td><td>高级设置（如引导磁盘、网络参数等）</td></tr><tr><td><code>d</code></td><td>Build the loader</td><td><strong>生成引导镜像</strong>（完成配置后执行此步骤）</td></tr><tr><td><code>h</code></td><td>Settings menu</td><td>全局设置（语言、备份等）</td></tr><tr><td><code>r</code></td><td>Online Assistance</td><td>在线帮助&#x2F;文档</td></tr><tr><td><code>p</code></td><td>Update menu</td><td>工具版本更新</td></tr><tr><td><code>t</code></td><td>Notepad</td><td>内置文本编辑器</td></tr><tr><td><code>e</code></td><td>Exit</td><td>退出工具</td></tr></tbody></table><hr><h3 id="3-3-1-设置语言"><a href="#3-3-1-设置语言" class="headerlink" title="3.3.1. 设置语言"></a>3.3.1. 设置语言</h3><div class="group-image-container"><div class="group-image-row"><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/bb74976ab892f11d.png" srcset="/img/loading.gif" lazyload alt="主菜单"><figcaption class="image-caption">主菜单</figcaption></figure></div><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/0ebba148dc5ae6db.png" srcset="/img/loading.gif" lazyload alt="选择语言"><figcaption class="image-caption">选择语言</figcaption></figure></div></div></div><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/87ad4ad6ef2d939d.png" srcset="/img/loading.gif" lazyload alt="选择中文"><figcaption aria-hidden="true">选择中文</figcaption></figure></p><p>改完语言就很好理解了，国际化也做的非常好。</p><p><code>Settings Menu</code> 和 <code>Choose a language</code> 都保持不变，这样就不会改错语言之后搞得全都看不懂了。</p><div class="group-image-container"><div class="group-image-row"><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/c7a4312f93a8f87d.png" srcset="/img/loading.gif" lazyload alt="简体中文"><figcaption class="image-caption">简体中文</figcaption></figure></div><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/2336a84ed3f3e37c.png" srcset="/img/loading.gif" lazyload alt="主菜单"><figcaption class="image-caption">主菜单</figcaption></figure></div></div></div><p>其他全都不用改，保持原样就行。会主菜单选择硬件。</p><div class="note note-success">            <p>这部分是后写的，下面是先写的。图片我就不换了，能理解就行。</p>          </div><h3 id="3-3-2-选择硬件"><a href="#3-3-2-选择硬件" class="headerlink" title="3.3.2. 选择硬件"></a>3.3.2. 选择硬件</h3><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/4df1e6770aff0a9e.png" srcset="/img/loading.gif" lazyload alt="DS920+"><figcaption aria-hidden="true">DS920+</figcaption></figure></p><p>顶部提示含义</p><ul><li><code>DT: Disk identification method is device tree</code>：磁盘识别方式为设备树（兼容性更强，推荐）</li><li><code>G: Support iGPU</code>：支持核显加速（适合转码、预览）</li><li><code>N: Support NVMe</code>：支持 NVMe 固态硬盘</li><li><code>H: Support HBA</code>：支持 HBA 直通卡（适合多盘位、企业级存储）</li></ul><p>以前装的时候 AI 还没普及呢，都不知道该装哪个版本。</p><p>现在有 AI 可真方便。</p><div class="note note-success">            <p>💡 针对 AMD R5-5500U + 核显 的型号推荐</p><p>你的硬件是 <strong>AMD 锐龙 R5-5500U（带核显）</strong>，更适合选择<strong>消费级、支持核显加速</strong>的 DSM 型号，而不是企业级的 SA6400。</p><p>🎯 最优选择：DS920+ &#x2F; DS224+（geminilake 平台）</p><ul><li><strong>平台</strong>：<code>geminilake</code>（Intel 低功耗平台，对 AMD 核显兼容性最好）</li><li><strong>特性</strong>：<ul><li>带 <code>G</code> 标记：支持核显加速（可用于 Video Station 转码、照片预览）</li><li>带 <code>N</code> 标记：支持 NVMe 固态硬盘（适合做缓存或存储）</li><li><code>DT</code> 设备树：磁盘识别稳定</li></ul></li><li><strong>优势</strong>：<ul><li>对消费级 AMD 处理器兼容性极佳，核显能正常驱动</li><li>系统资源占用低，适合家用&#x2F;小型办公场景</li><li>社区教程多，遇到问题容易解决</li></ul></li></ul><p>⚠️ 不推荐继续用 SA6400 的原因</p><ul><li>SA6400 是 <code>epyc7002</code> 企业级平台，针对 AMD EPYC 服务器 CPU 优化</li><li>对消费级 R5-5500U 兼容性差，<strong>核显大概率无法正常驱动</strong>，会失去转码能力</li><li>企业级平台对家用环境冗余，资源占用更高</li></ul>          </div><hr><h3 id="3-3-3-选择群晖版本"><a href="#3-3-3-选择群晖版本" class="headerlink" title="3.3.3. 选择群晖版本"></a>3.3.3. 选择群晖版本</h3><div class="group-image-container"><div class="group-image-row"><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/774c339f4a0a8afc.png" srcset="/img/loading.gif" lazyload alt="选择版本"><figcaption class="image-caption">选择版本</figcaption></figure></div><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/106a18fcffb12c48.png" srcset="/img/loading.gif" lazyload alt="等待"><figcaption class="image-caption">等待</figcaption></figure></div><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/66f1dc600e936638.png" srcset="/img/loading.gif" lazyload alt="细分版本"><figcaption class="image-caption">细分版本</figcaption></figure></div></div></div><p>我选7.3.2，看着全都差不多。社区补丁基本也用不上。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/a4199746b8d43850.png" srcset="/img/loading.gif" lazyload alt="下载pat"><figcaption aria-hidden="true">下载pat</figcaption></figure></p><p>按一下【Tab】把光标切出来，直接【回车】。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0312/bed9aa6bb030804e.png" srcset="/img/loading.gif" lazyload alt="等待"><figcaption aria-hidden="true">等待</figcaption></figure></p><p>完成后会切回主菜单。</p><hr><h3 id="3-3-4-选择插件"><a href="#3-3-4-选择插件" class="headerlink" title="3.3.4. 选择插件"></a>3.3.4. 选择插件</h3><p>Addons menu.  附加组件菜单（如驱动、补丁等）</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/07c193c6537e6207.png" srcset="/img/loading.gif" lazyload alt="添加插件"><figcaption aria-hidden="true">添加插件</figcaption></figure></p><p>可以在 <code>Show all addons</code> 中查看是否选择安装。蓝色为选择项，红色未选择。</p><p>列一下我选择安装的插件，以下为豆包总结。</p><hr><h4 id="🔌-系统基础与电源管理"><a href="#🔌-系统基础与电源管理" class="headerlink" title="🔌 系统基础与电源管理"></a>🔌 系统基础与电源管理</h4><ul><li><strong><code>acpid</code></strong>：处理电源按钮事件，修复部分环境下电源键无法关机的问题。</li><li><strong><code>powersched</code></strong>：配置RTC定时，实现DSM定时开关机功能。</li><li><strong><code>rebootloader</code></strong>：在DSM计划任务中添加重启RR的脚本，方便无屏幕设备访问。</li><li><strong><code>mountloader</code></strong>：在DSM系统下挂载引导盘并升级引导脚本，适配rr-manager应用。</li></ul><hr><h4 id="🖥️-核显与显示支持"><a href="#🖥️-核显与显示支持" class="headerlink" title="🖥️ 核显与显示支持"></a>🖥️ 核显与显示支持</h4><ul><li><strong><code>console</code></strong>：提供帧缓冲控制台（bash）功能，依赖显卡驱动，用于屏幕调试和画面输出。</li><li><strong><code>cpuinfo</code></strong>：在控制面板显示CPU&#x2F;GPU&#x2F;温度信息，可验证核显是否被系统识别。</li><li><strong><code>monitor</code></strong>：显示器电源管理，仅支持显卡驱动，优化显示稳定性。</li></ul><hr><h4 id="💾-存储与NVMe支持"><a href="#💾-存储与NVMe支持" class="headerlink" title="💾 存储与NVMe支持"></a>💾 存储与NVMe支持</h4><ul><li><strong><code>nvmecache</code></strong>：启用NVMe磁盘缓存支持，兼容DS920+等型号。</li><li><strong><code>nvmesystem</code></strong>：支持将系统安装在NVMe磁盘（安装时需无SATA磁盘，仅DT型号可用）。</li></ul><hr><h4 id="🛠️-实用工具与扩展"><a href="#🛠️-实用工具与扩展" class="headerlink" title="🛠️ 实用工具与扩展"></a>🛠️ 实用工具与扩展</h4><ul><li><strong><code>sensors</code></strong>：安装传感器与风扇控制工具，支持CPU温度监控和风扇转速调节。</li><li><strong><code>setrootpw</code></strong>：设置root密码并启用SSH&#x2F;SFTP，需在DSM计划任务中配置密码后执行。</li><li><strong><code>trivial</code></strong>：杂项功能集合（包含一些非必要的系统修改）。</li><li><strong><code>wireless</code></strong>：连接WiFi，需在DSM计划任务中配置<code>IFNAME</code>&#x2F;<code>SSID</code>&#x2F;<code>PASSWD</code>后生效。</li></ul><hr><p>选择完插件就可以开始编译了。</p><h2 id="3-4-编译引导"><a href="#3-4-编译引导" class="headerlink" title="3.4. 编译引导"></a>3.4. 编译引导</h2><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/f34ab4ebec8c5076.png" srcset="/img/loading.gif" lazyload alt="主菜单"><figcaption aria-hidden="true">主菜单</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/1c269620c12e1101.png" srcset="/img/loading.gif" lazyload alt="等待"><figcaption aria-hidden="true">等待</figcaption></figure></p><p>等就完事了，编译完跳回主菜单。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/45b0188ef676d804.png" srcset="/img/loading.gif" lazyload alt="主菜单"><figcaption aria-hidden="true">主菜单</figcaption></figure></p><h1 id="4-安装"><a href="#4-安装" class="headerlink" title="4. 安装"></a>4. 安装</h1><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/1717d532f86bf034.png" srcset="/img/loading.gif" lazyload alt="启动"><figcaption aria-hidden="true">启动</figcaption></figure></p><p>前往：<code>http://192.168.1.11:5000</code></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/d617798f920e59a0.png" srcset="/img/loading.gif" lazyload alt="安装群晖"><figcaption aria-hidden="true">安装群晖</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/604277c2a26ba05c.png" srcset="/img/loading.gif" lazyload alt="保留配置"><figcaption aria-hidden="true">保留配置</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/4a0e5b0a49815a0c.png" srcset="/img/loading.gif" lazyload alt="自动下载"><figcaption aria-hidden="true">自动下载</figcaption></figure></p><div class="group-image-container"><div class="group-image-row"><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/80a0b1a3902d3eaf.png" srcset="/img/loading.gif" lazyload alt="等待"><figcaption class="image-caption">等待</figcaption></figure></div><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/5cfdd3c2edcad90e.png" srcset="/img/loading.gif" lazyload alt="等待"><figcaption class="image-caption">等待</figcaption></figure></div></div></div><p>完成之后会跳到 <code>https 5001</code> 端口，被浏览器拦截了。需要手动访问。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/fc040141cac67358.png" srcset="/img/loading.gif" lazyload alt="5001端口"><figcaption aria-hidden="true">5001端口</figcaption></figure></p><h1 id="5-结语"><a href="#5-结语" class="headerlink" title="5. 结语"></a>5. 结语</h1><p>恢复和迁移原系统，本质和新装差不多。新装也可以参考这个流程。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2026/0313/5deac577bc2be83b.png" srcset="/img/loading.gif" lazyload alt="登录界面"><figcaption aria-hidden="true">登录界面</figcaption></figure></p><p>账号都搞忘记了，还好设置都还在。</p><p>【本文完】</p><h1 id="参考资料"><a href="#参考资料" class="headerlink" title="参考资料"></a>参考资料</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://www.zhihu.com/tardis/zm/art/1898954633482839465">【保姆教程】物理黑群晖安装（SA6400 ǀ DSM7.2.2 ǀ U盘引导） - 知乎</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/d578fa572905/</id>
    <link href="https://www.vlice.cn/po/d578fa572905/"/>
    <published>2026-03-11T10:57:19.000Z</published>
    <summary>女朋友第一次上门，我的 NAS 被拆了，启动 SD 卡也丢了。本以为要重装系统，结果用新 U 盘做 RR 引导后居然识别到了原系统，省了不少事。这里把在华硕 PN51 上恢复黑群晖的过程完整记一遍。</summary>
    <title>引导盘丢失后，恢复黑群晖的过程</title>
    <updated>2026-11-10T05:01:17.001Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="博客手札" scheme="https://www.vlice.cn/categories/%E5%8D%9A%E5%AE%A2%E6%89%8B%E6%9C%AD/"/>
    <category term="Hexo" scheme="https://www.vlice.cn/tags/Hexo/"/>
    <category term="图片" scheme="https://www.vlice.cn/tags/%E5%9B%BE%E7%89%87/"/>
    <category term="并排" scheme="https://www.vlice.cn/tags/%E5%B9%B6%E6%8E%92/"/>
    <category term="ImageGroup" scheme="https://www.vlice.cn/tags/ImageGroup/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><p>今天更新了一下关于页面，把我的双证并排显示。给我折腾了好久啊。</p><p>Hexo 原生并不支持，我也不记得默认是什么主题了。我用的Fluid主题有套图的功能。应该大多数主流主题都有这个功能。</p><h1 id="最终方案"><a href="#最终方案" class="headerlink" title="最终方案"></a>最终方案</h1><p>直接把答案写在前面，方便大家参考使用。后面是我的经历过程。</p><p>实际运用，效果如下</p><h2 id="两图"><a href="#两图" class="headerlink" title="两图"></a>两图</h2><figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs markdown">&#123;% gi 2 2 %&#125;<br>![<span class="hljs-string">1</span>](<span class="hljs-link">https://yaps.vlice.cn/webp?s=300x300&amp;t=1&amp;c=555&amp;b=add</span>)<br>![<span class="hljs-string">2</span>](<span class="hljs-link">https://yaps.vlice.cn/webp?s=300x300&amp;t=2&amp;c=555&amp;b=9fc</span>)<br>&#123;% endgi %&#125;<br></code></pre></td></tr></table></figure><div class="group-image-container"><div class="group-image-row"><div class="group-image-wrap"><figure><img src="https://yaps.vlice.cn/webp?s=300x300&t=1&c=555&b=add" srcset="/img/loading.gif" lazyload alt="1"><figcaption class="image-caption">1</figcaption></figure></div><div class="group-image-wrap"><figure><img src="https://yaps.vlice.cn/webp?s=300x300&t=2&c=555&b=9fc" srcset="/img/loading.gif" lazyload alt="2"><figcaption class="image-caption">2</figcaption></figure></div></div></div><h2 id="三图"><a href="#三图" class="headerlink" title="三图"></a>三图</h2><figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs markdown">&#123;% gi 3 1-2 %&#125;<br>![<span class="hljs-string">1</span>](<span class="hljs-link">https://yaps.vlice.cn/webp?s=800x300&amp;t=1&amp;c=333&amp;b=999</span>)<br>![<span class="hljs-string">2</span>](<span class="hljs-link">https://yaps.vlice.cn/webp?s=400x300&amp;t=2&amp;c=555&amp;b=add</span>)<br>![<span class="hljs-string">3</span>](<span class="hljs-link">https://yaps.vlice.cn/webp?s=300x400&amp;t=3&amp;c=555&amp;b=9fc</span>)<br>&#123;% endgi %&#125;<br></code></pre></td></tr></table></figure><div class="group-image-container"><div class="group-image-row"><div class="group-image-wrap"><figure><img src="https://yaps.vlice.cn/webp?s=800x300&t=1&c=333&b=999" srcset="/img/loading.gif" lazyload alt="1"><figcaption class="image-caption">1</figcaption></figure></div></div><div class="group-image-row"><div class="group-image-wrap"><figure><img src="https://yaps.vlice.cn/webp?s=400x300&t=2&c=555&b=add" srcset="/img/loading.gif" lazyload alt="2"><figcaption class="image-caption">2</figcaption></figure></div><div class="group-image-wrap"><figure><img src="https://yaps.vlice.cn/webp?s=300x400&t=3&c=555&b=9fc" srcset="/img/loading.gif" lazyload alt="3"><figcaption class="image-caption">3</figcaption></figure></div></div></div><p>【未完待续】2026-03-09 02:22:35<br>先去睡了</p>]]>
    </content>
    <id>https://www.vlice.cn/po/90585025601a/</id>
    <link href="https://www.vlice.cn/po/90585025601a/"/>
    <published>2026-03-08T14:54:05.000Z</published>
    <summary>更新关于页面时想把双证并排展示，折腾了半天才发现 Hexo 原生不支持，最后用 Fluid 的套图标签搞定。这里把两图和三图的写法记下来，方便以后直接抄。</summary>
    <title>博客手札：Hexo博客实现图片同行并排显示</title>
    <updated>2026-11-10T05:01:17.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="无法分类" scheme="https://www.vlice.cn/categories/%E6%97%A0%E6%B3%95%E5%88%86%E7%B1%BB/"/>
    <category term="账号冻结" scheme="https://www.vlice.cn/tags/%E8%B4%A6%E5%8F%B7%E5%86%BB%E7%BB%93/"/>
    <category term="解封流程" scheme="https://www.vlice.cn/tags/%E8%A7%A3%E5%B0%81%E6%B5%81%E7%A8%8B/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><div class="note note-success">            <p>我刚说可能没有无法分类的博文，结果还真有一篇。——2026年3月13日 21:33:00</p>          </div><p>今天用CSDN查资料，看评论要登录，结果账号被永久冻结了。然后要查的资料就变了，如何解冻？请看我的解冻流程。</p><p>冻结是啥样式的提示，我没截图。毕竟着急解冻，没顾得上那么多。</p><blockquote><p>我真服了啊，搬我文章好歹点个关注，留个言啊。</p><p><a href="https://blog.csdn.net/weixin_36436683/article/details/113629523">fastadmin出现token验证错误!_FastAdmin 支持 php7.4 的教程-CSDN博客</a> ——<a href="https://blog.csdn.net/weixin_36436683">星瀚Air</a></p><p>原文</p><p><a href="https://www.vlice.cn/po/6a1b099fe711/">FastAdmin支持php7.4的教程 | 紫冰的小屋</a></p><p>搬得我发在微信公众号上的版本，一字不改，CSDN还收费！！（好歹关注一下嘛）</p><p><a href="https://mp.weixin.qq.com/s/XxMEF_D-XsL2JxYUpV48pQ">FastAdmin 支持 php7.4 的教程</a></p></blockquote><h1 id="过程"><a href="#过程" class="headerlink" title="过程"></a>过程</h1><h2 id="前期准备"><a href="#前期准备" class="headerlink" title="前期准备"></a>前期准备</h2><p>申诉材料：</p><ul><li>邮箱号</li><li>手机号</li><li>注册地址（省市即可）</li><li>CSDN账号注册时间（大概即可）</li></ul><h3 id="CSDN账号注册时间"><a href="#CSDN账号注册时间" class="headerlink" title="CSDN账号注册时间"></a>CSDN账号注册时间</h3><p>百度搜索：你的账号昵称 site:blog.csdn.net</p><p>发过文章的是很好解冻的。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/1211/e8030c4795f85a93.png" srcset="/img/loading.gif" lazyload alt="自己发过啥总记得吧"><figcaption aria-hidden="true">自己发过啥总记得吧</figcaption></figure></p><p>个人主页会404，但是文章可以看到。头像有显示，名称会变成【普通网友】。<del>（因该是吧，不记得了）</del></p><p>主要是获取一个码龄。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/1211/399c6f392c332509.png" srcset="/img/loading.gif" lazyload alt="image-20251109170443452"><figcaption aria-hidden="true">image-20251109170443452</figcaption></figure></p><p>这样就知道了注册时间，9年前。只需要一个大概时间。</p><h1 id="客服解封"><a href="#客服解封" class="headerlink" title="客服解封"></a>客服解封</h1><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/1211/3389dfa816ba85b6.png" srcset="/img/loading.gif" lazyload alt="image-20251109170716611"><figcaption aria-hidden="true">image-20251109170716611</figcaption></figure></p><p>工作时间内直接转人工即可。告知需求，给出材料。是保护性冻结的话很快就解封了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/1211/b7cdfd54774a1711.png" srcset="/img/loading.gif" lazyload alt="提供身份信息"><figcaption aria-hidden="true">提供身份信息</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/1211/182b2c27cccda44b.png" srcset="/img/loading.gif" lazyload alt="提供账号注册时间地点"><figcaption aria-hidden="true">提供账号注册时间地点</figcaption></figure></p><h1 id="后记"><a href="#后记" class="headerlink" title="后记"></a>后记</h1><p>只是单纯的长时间没登录，导致的保护性冻结。</p><p>有点和银行差不多了，卡片长时间不用，就给你冻结了。</p><p>然后就是密码管理，各种密码都不能和之前一样，就导致要记很多。记得多了就容易遗忘，同一个密码加后缀也非常不安全。</p><p>以前用过【1Password】，目前强推【Bitwarden】。</p>]]>
    </content>
    <id>https://www.vlice.cn/po/5fb5288f1909/</id>
    <link href="https://www.vlice.cn/po/5fb5288f1909/"/>
    <published>2025-11-09T07:26:34.000Z</published>
    <summary>今天用 CSDN 查资料，看评论要登录，结果账号被永久冻结了。查的资料变成了如何解冻，这里把申诉材料和人工客服解封的流程记一下。</summary>
    <title>记录一下，CSDN账号被保护性冻结（永封）后的解封过程</title>
    <updated>2026-11-10T05:01:17.001Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="博客手札" scheme="https://www.vlice.cn/categories/%E5%8D%9A%E5%AE%A2%E6%89%8B%E6%9C%AD/"/>
    <category term="Hexo" scheme="https://www.vlice.cn/tags/Hexo/"/>
    <category term="运维" scheme="https://www.vlice.cn/tags/%E8%BF%90%E7%BB%B4/"/>
    <category term="实战" scheme="https://www.vlice.cn/tags/%E5%AE%9E%E6%88%98/"/>
    <category term="部署" scheme="https://www.vlice.cn/tags/%E9%83%A8%E7%BD%B2/"/>
    <category term="1Panel" scheme="https://www.vlice.cn/tags/1Panel/"/>
    <category term="Umami" scheme="https://www.vlice.cn/tags/Umami/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><p>接上文：<a href="https://www.vlice.cn/po/edf02dacb27f/">初次使用 1Panel，部署博客实战记录 | 紫冰的小屋</a></p><p>1Panel 安装完成，博客部署成功。我开这个服务器主要还是为了用 Umami 统计。</p><div class="note note-danger">            <p>注意：这是全程记录，而不是教程。精简教程之后再写。</p>          </div><h1 id="1-简单的介绍一下-Umami"><a href="#1-简单的介绍一下-Umami" class="headerlink" title="1. 简单的介绍一下 Umami"></a>1. 简单的介绍一下 Umami</h1><p><em>Umami</em> 是 Google Analytics 的简单、快速、注重隐私的替代方案。<sup id="fnref:1" class="footnote-ref"><a href="#fn:1" rel="footnote"><span class="hint--top hint--rounded" aria-label="[1Panel 安装 umami 网站统计 | 自行搭建一个网站统计工具 不限PV-日有所思博客](https://www.thinks365.com/1panel-安装-umami-网站统计/)">[1]</span></a></sup></p><p><strong>实时数据监控</strong>：提供实时网站访问数据，包括访客数量、页面浏览量等。</p><p><strong>流量来源追踪</strong>：分析和显示网站访问流量的来源，包括搜索引擎、推荐网站等。</p><p><strong>地理位置分析</strong>：展示访客的地理位置分布情况，帮助了解用户所在地区分布。</p><p><strong>关键指标跟踪</strong>：提供关键指标如会话时长、页面停留时间等，帮助优化用户体验和网站内容。</p><h1 id="2-安装-Umami"><a href="#2-安装-Umami" class="headerlink" title="2. 安装 Umami"></a>2. 安装 Umami</h1><p>前往应用商店，搜索 Umami，点击安装。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/81e2b58fdf730468.png" srcset="/img/loading.gif" lazyload alt="Umami"><figcaption aria-hidden="true">Umami</figcaption></figure></p><p>有个前置条件，需要安装数据库。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/0a75b14b13203fa4.png" srcset="/img/loading.gif" lazyload alt="缺少数据库"><figcaption aria-hidden="true">缺少数据库</figcaption></figure></p><h2 id="2-1-安装数据库"><a href="#2-1-安装数据库" class="headerlink" title="2.1. 安装数据库"></a>2.1. 安装数据库</h2><p>点击去安装，就会进入 MySQL 的安装界面。</p><p>但是我比较叛逆，我非要安装 MariaDB，反正也是 MySQL 家族的。</p><p>主要是我昨天尝试的时候，用 PostgreSQL 来安装，居然安装失败了。但是没有错误日志，我也不知道是啥问题。</p><h3 id="2-1-1-安装-MariaDB"><a href="#2-1-1-安装-MariaDB" class="headerlink" title="2.1.1. 安装 MariaDB"></a>2.1.1. 安装 MariaDB</h3><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/9669836c70bf996e.png" srcset="/img/loading.gif" lazyload alt="安装 MariaDB"><figcaption aria-hidden="true">安装 MariaDB</figcaption></figure></p><p>【等吧……】</p><p>安装完成，但是用不了。要用 MariaDB 那就得手写 Docker。还是安装 MySQL 吧，手写的方案之后再研究。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/8740a669a2d2bb7b.png" srcset="/img/loading.gif" lazyload alt="读取不到"><figcaption aria-hidden="true">读取不到</figcaption></figure></p><h3 id="2-1-2-安装-MySQL"><a href="#2-1-2-安装-MySQL" class="headerlink" title="2.1.2. 安装 MySQL"></a>2.1.2. 安装 MySQL</h3><p> 也就只有这一个选择了，别的都用不了。</p><p>点击去安装，端口改成 3307，毕竟 MariaDB 占用了 3306，直接确认。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/1d642b552c84ee99.png" srcset="/img/loading.gif" lazyload alt="安装 MySQL"><figcaption aria-hidden="true">安装 MySQL</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/91590446cc893018.png" srcset="/img/loading.gif" lazyload alt="安装完成"><figcaption aria-hidden="true">安装完成</figcaption></figure></p><h2 id="2-2-自动安装-Umami"><a href="#2-2-自动安装-Umami" class="headerlink" title="2.2. 自动安装 Umami"></a>2.2. 自动安装 Umami</h2><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/0349c740797b78ce.png" srcset="/img/loading.gif" lazyload alt="全部默认"><figcaption aria-hidden="true">全部默认</figcaption></figure></p><p>先用自动安装试试看吧，不行再手动处理。</p><p>安装是安上了，但是数据库连错了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/49346e1affcd535a.png" srcset="/img/loading.gif" lazyload alt="mysql:3306"><figcaption aria-hidden="true">mysql:3306</figcaption></figure></p><p>这是连到 MariaDB 去了。</p><p>我还是手动安装吧，就用 PostgreSQL 做数据库的。</p><h2 id="2-3-手动安装-Umami"><a href="#2-3-手动安装-Umami" class="headerlink" title="2.3. 手动安装 Umami"></a>2.3. 手动安装 Umami</h2><p>作了一番尝试，在面板里拉取镜像太慢了。所以在本机装了一个 Docker，专门用来拉取 image。</p><p>现在不单单是 Docker Hub (<em>docker.io</em>) 了，还有GitHub (<em>ghcr.io</em>)，所以更方便了。</p><p>pkgs发布页：<a href="https://github.com/umami-software/umami/pkgs/container/umami">Package umami</a></p><h3 id="2-3-1-拉取-Umami-镜像"><a href="#2-3-1-拉取-Umami-镜像" class="headerlink" title="2.3.1. 拉取 Umami 镜像"></a>2.3.1. 拉取 Umami 镜像</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">docker pull ghcr.io/umami-software/umami:postgresql-latest<br></code></pre></td></tr></table></figure><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/6b0cf8357cf8211a.png" srcset="/img/loading.gif" lazyload alt="拉取镜像"><figcaption aria-hidden="true">拉取镜像</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/815b260b8fc520c1.png" srcset="/img/loading.gif" lazyload alt="拉取完成"><figcaption aria-hidden="true">拉取完成</figcaption></figure></p><h3 id="2-3-2-导出镜像包"><a href="#2-3-2-导出镜像包" class="headerlink" title="2.3.2. 导出镜像包"></a>2.3.2. 导出镜像包</h3><p>由于是要放到云服务器上的，所以需要导出镜像。</p><p>Docker 是虚拟容器，所有文件都不在本机，而是在容器里面，本机无法直接拿到。</p><p>在这部分耽误了一点时间，好在找到了导出方法。<sup id="fnref:2" class="footnote-ref"><a href="#fn:2" rel="footnote"><span class="hint--top hint--rounded" aria-label="[Docker - 实现本地镜像的导出、导入（export、import、save、load）](https://www.hangge.com/blog/cache/detail_2411.html)">[2]</span></a></sup></p><p>为了防止大家继续上当受骗，我这直接用正确方式。</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">#</span><span class="language-bash">列出所有镜像</span><br>docker images<br></code></pre></td></tr></table></figure><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/7afbb1231734146e.png" srcset="/img/loading.gif" lazyload alt="镜像列表"><figcaption aria-hidden="true">镜像列表</figcaption></figure></p><p>由于 Repository 实在是过于冗长，所以操作一下。单纯导出还是很方便的。<sup id="fnref:3" class="footnote-ref"><a href="#fn:3" rel="footnote"><span class="hint--top hint--rounded" aria-label="[解决 docker load -i 导入镜像后名称为 none_docker导入镜像没有名字-CSDN博客](https://blog.csdn.net/qq12547345/article/details/119993542)">[3]</span></a></sup></p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">#</span><span class="language-bash">重设镜像Tag</span><br>docker tag &lt;Image ID&gt; &lt;Repository&gt;:&lt;Tag&gt;<br></code></pre></td></tr></table></figure><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/aa3190c98fa1d68b.png" srcset="/img/loading.gif" lazyload alt="重设Tag"><figcaption aria-hidden="true">重设Tag</figcaption></figure></p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">#</span><span class="language-bash">导出镜像包</span><br>docker save -o &lt;Image Name&gt;-&lt;Tag&gt;.tar &lt;Image ID&gt;  #无标识的导出<br>docker save -o &lt;Image Name&gt;-&lt;Tag&gt;.tar &lt;Repository&gt;:&lt;Tag&gt;  #有标识的导出<br></code></pre></td></tr></table></figure><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/e04ea847f00e979a.png" srcset="/img/loading.gif" lazyload alt="导出镜像"><figcaption aria-hidden="true">导出镜像</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/5c932f3105915845.png" srcset="/img/loading.gif" lazyload alt="镜像标识"><figcaption aria-hidden="true">镜像标识</figcaption></figure></p><p>只要包里 RepoTags 有标识内容，那导入进 Docker 就不会是 None。之前尝试就是这里被坑了。</p><h3 id="2-3-3-服务器导入镜像包"><a href="#2-3-3-服务器导入镜像包" class="headerlink" title="2.3.3. 服务器导入镜像包"></a>2.3.3. 服务器导入镜像包</h3><p>怎么上传服务器就不用我多说了吧。我就简单说说，不会的自己去查吧。</p><p>我用的<a href="https://www.hostbuf.com/t/988.html">FinalShell 版本4.5.12,更新日期2024.10.30 - FinalShell官网</a></p><p>Xshell 可以用 Lrzsz，也可以用 1Panel 面板上传。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/125d7bd81d24e05f.png" srcset="/img/loading.gif" lazyload alt="上传到服务器"><figcaption aria-hidden="true">上传到服务器</figcaption></figure></p><p>有点慢，是我这宽带拖后腿了。上下行不对等的小水管是真的难受。下载能到20M&#x2F;s。</p><p>因为 1Panel 都是 root 权限管理的，所以 Docker 也是 root。</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">#</span><span class="language-bash">切换root用户</span><br>sudo -i<br><span class="hljs-meta prompt_"></span><br><span class="hljs-meta prompt_">#</span><span class="language-bash">导入镜像包</span><br>docker load -i /home/ecs-user/umami-pgsql-2.15.1.tar<br></code></pre></td></tr></table></figure><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/a2c7e11991185c83.png" srcset="/img/loading.gif" lazyload alt="导入完成"><figcaption aria-hidden="true">导入完成</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0209/fcac0ed05c54f5b8.png" srcset="/img/loading.gif" lazyload alt="面板上也有了"><figcaption aria-hidden="true">面板上也有了</figcaption></figure></p><p>导入镜像包完成！</p><h3 id="2-3-4-创建编排"><a href="#2-3-4-创建编排" class="headerlink" title="2.3.4. 创建编排"></a><del>2.3.4. 创建编排</del></h3><p><del>这部分有点烧脑，我尽量写的简单易懂。</del>【先去睡了，明天再写 2025-2-9 23:38:56】</p><p>【刚收车回来，今天有点累，只能写一个小时的。2025年2月10日23:09:11】</p><p>整段垮掉，不用那么复杂的。</p><h3 id="2-3-5-使用应用商店安装模板"><a href="#2-3-5-使用应用商店安装模板" class="headerlink" title="2.3.5. 使用应用商店安装模板"></a>2.3.5. 使用应用商店安装模板</h3><p>把应用商店的编排模板修改一下，就可以用来安装了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0210/d4c83bc45ae8a0c4.png" srcset="/img/loading.gif" lazyload alt="修改模板"><figcaption aria-hidden="true">修改模板</figcaption></figure></p><p>把镜像修改成我们导入的，拉取镜像关掉。其他都不用动，直接轻松秒杀。</p><p>本地有了镜像，安装速度也非常快。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0210/8173da0fb44d1de9.png" srcset="/img/loading.gif" lazyload alt="安装完成"><figcaption aria-hidden="true">安装完成</figcaption></figure></p><h2 id="2-4-反向代理，让外网访问"><a href="#2-4-反向代理，让外网访问" class="headerlink" title="2.4. 反向代理，让外网访问"></a>2.4. 反向代理，让外网访问</h2><p>域名解析好之后，代理到 3000 端口。这样外网就能访问了。</p><p>然后配置一下https，上一篇写过，我就不重复了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0211/849c86ea1036fb09.png" srcset="/img/loading.gif" lazyload alt="反向代理"><figcaption aria-hidden="true">反向代理</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0211/ccdf6ce220a9b750.png" srcset="/img/loading.gif" lazyload alt="成功访问"><figcaption aria-hidden="true">成功访问</figcaption></figure></p><div class="note note-success">            <p>默认账号：admin，密码：umami</p><p>这玩意也没个日志提示，不查还真不知道了。</p>          </div><h1 id="3-博客接入-Umami"><a href="#3-博客接入-Umami" class="headerlink" title="3. 博客接入 Umami"></a>3. 博客接入 Umami</h1><h2 id="3-1-Umami-初始设置"><a href="#3-1-Umami-初始设置" class="headerlink" title="3.1. Umami 初始设置"></a>3.1. Umami 初始设置</h2><h3 id="3-1-1-语言"><a href="#3-1-1-语言" class="headerlink" title="3.1.1. 语言"></a>3.1.1. 语言</h3><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0211/1f9daf0bb7037b9f.png" srcset="/img/loading.gif" lazyload alt="有中文"><figcaption aria-hidden="true">有中文</figcaption></figure></p><h3 id="3-1-2-添加网站"><a href="#3-1-2-添加网站" class="headerlink" title="3.1.2. 添加网站"></a>3.1.2. 添加网站</h3><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0211/21a4389e289d84a5.png" srcset="/img/loading.gif" lazyload alt="点击去设置"><figcaption aria-hidden="true">点击去设置</figcaption></figure></p><p>直接点进去，添加一个网站。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0211/c7515f5e0067aebd.png" srcset="/img/loading.gif" lazyload alt="添加网站"><figcaption aria-hidden="true">添加网站</figcaption></figure></p><h3 id="3-1-3-创建-API-用户"><a href="#3-1-3-创建-API-用户" class="headerlink" title="3.1.3. 创建 API 用户"></a>3.1.3. 创建 API 用户</h3><p><del>创建一个【仅浏览量】权限的用户，用于调用 API。</del>【天坑】</p><p>创建一个【管理员】权限的用户，用于调用 API。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0211/ee46042b9edbf4d0.png" srcset="/img/loading.gif" lazyload alt="用于API的账户"><figcaption aria-hidden="true">用于API的账户</figcaption></figure></p><p>记住这个账号和密码，还要用的。</p><h2 id="3-2-配置博客-yml"><a href="#3-2-配置博客-yml" class="headerlink" title="3.2. 配置博客 yml"></a>3.2. 配置博客 yml</h2><p>我的主题是 <a href="https://hexo.fluid-dev.com/docs/">Fluid</a>，你用的可能不一样，但持续更新的版本，应该都是支持 Umami 的，配置也是大差不差。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0211/f53130e6e08a0661.png" srcset="/img/loading.gif" lazyload alt="配置文件"><figcaption aria-hidden="true">配置文件</figcaption></figure></p><p>都不难理解，主要难点在于 Token 的获取。其他我就简单表述了。</p><table><thead><tr><th>配置项</th><th>说明</th></tr></thead><tbody><tr><td>src</td><td>js脚本文件：设置 &gt; 网站 &gt; 编辑 &gt; 跟踪代码，直接复制src</td></tr><tr><td>website_id</td><td>站点ID：设置 &gt; 网站 &gt; 编辑，网站ID有复制按钮</td></tr><tr><td>domains</td><td>只统计正式域名，测试域名和没套CDN的裸连都不统计。</td></tr><tr><td>start_time</td><td>统计的起始时间，就用开始写博客那天好了。</td></tr><tr><td>api_server</td><td>第一项src，尾部 &#x2F;script.js 改成 &#x2F;api</td></tr></tbody></table><h3 id="3-2-1-登录-API-获取-Token"><a href="#3-2-1-登录-API-获取-Token" class="headerlink" title="3.2.1. 登录 API 获取 Token"></a>3.2.1. 登录 API 获取 Token</h3><p>还记得前面创建的 API 用户吗？现在要用了。<sup id="fnref:4" class="footnote-ref"><a href="#fn:4" rel="footnote"><span class="hint--top hint--rounded" aria-label="[Authentication – Docs - Umami](https://umami.is/docs/api/authentication)">[4]</span></a></sup></p><div class="note note-info">            <p>敲黑板！必须得是管理员身份才行，否则抛「401 Unauthorized」权限错误。</p>          </div><figure class="highlight http"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs http"><span class="hljs-keyword">POST</span> <span class="hljs-string">/api/auth/login</span> <span class="hljs-meta">HTTP/1.1</span><br><span class="hljs-attribute">Host</span><span class="hljs-punctuation">: </span>umami.xxxx.com<br><span class="hljs-attribute">Content-Type</span><span class="hljs-punctuation">: </span>application/json<br><span class="hljs-attribute">Content-Length</span><span class="hljs-punctuation">: </span>57<br><br><span class="language-json"><span class="hljs-punctuation">&#123;</span></span><br><span class="language-json">  <span class="hljs-attr">&quot;username&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;username&quot;</span><span class="hljs-punctuation">,</span></span><br><span class="language-json">  <span class="hljs-attr">&quot;password&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;password&quot;</span></span><br><span class="language-json"><span class="hljs-punctuation">&#125;</span></span><br></code></pre></td></tr></table></figure><p><strong>Response</strong></p><figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><code class="hljs json"><span class="hljs-punctuation">&#123;</span><br>    <span class="hljs-attr">&quot;token&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;o1bToUEyoSOGHPZ3HqF80GHctDBkiQQQHqst2FYE4ZIB1Oe9+WbRsPPJ6Gbma1aL9DK86qdFDSC40a0Fx3f3wQyXsVlMvjfYAO2akefsY/hnJGYMzu0+7KTFNnhsViZlYNzDEa7m7u905kZCR9vZBwb8bDM1URRRIleBm3KISfhXhDt6WAOjY/43uB2AzF7iJgHvaiK+adZ0XLaaNgxcsEvu42EC1L6cGpkUDs6TuhTUkMDABRubVXu8nGrh3YnU9Dzf0jYfnkQ/XZ9M46nGrh9qJvacyxui5bKslGIX6/rpApKA3+ZsHn5jlBQwtF570rZ4y246EHQV/lIRIA5GCtMg7FYZMSKFhw==&quot;</span><span class="hljs-punctuation">,</span><br>    <span class="hljs-attr">&quot;user&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>        <span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;be0bdbe9-e932c-d3bc-5479-1148a955fc6&quot;</span><span class="hljs-punctuation">,</span><br>        <span class="hljs-attr">&quot;username&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;username&quot;</span><span class="hljs-punctuation">,</span><br>        <span class="hljs-attr">&quot;role&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;view-only&quot;</span><span class="hljs-punctuation">,</span><br>        <span class="hljs-attr">&quot;createdAt&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;2025-02-10T16:40:13.335Z&quot;</span><span class="hljs-punctuation">,</span><br>        <span class="hljs-attr">&quot;isAdmin&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-literal"><span class="hljs-keyword">true</span></span><br>    <span class="hljs-punctuation">&#125;</span><br><span class="hljs-punctuation">&#125;</span><br></code></pre></td></tr></table></figure><p>随便你们怎么请求，我是用的国产软件<a href="https://apifox.com/">Apifox</a>。</p><p>Token 拿到手了，建议用引号包起来。</p><p>【卧槽，写嗨了，溜了溜了。2025年2月11日 02:36:34】</p><h2 id="3-3-修复-Fluid-主题兼容问题"><a href="#3-3-修复-Fluid-主题兼容问题" class="headerlink" title="3.3. 修复 Fluid 主题兼容问题"></a>3.3. 修复 Fluid 主题兼容问题</h2><div class="note note-info">            <p>【2025年2月11日 22:57:11】</p><p>这玩意是真的复杂，而且版本更新也快，新版本又是新问题。和 Fluid v1.8.9（在用版本）存在兼容性冲突。需要改代码才行。</p><p>而且我没写完就上线了，还直接刷新了CDN。主要是为了测试，果不其然的出问题了。</p>          </div><p>v2.15.1 版本的 Umami，即便是 GET 请求，也需要携带 Bearer Token。</p><p>检查一下代码，我直呼好家伙！这样真的合适吗？半成本发版！！</p><p>文件路径： hexo-theme-fluid&#x2F;source&#x2F;js&#x2F;umami-view.js</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0211/6d94a16163a9ea25.png" srcset="/img/loading.gif" lazyload alt="我真的无话可说"><figcaption aria-hidden="true">我真的无话可说</figcaption></figure></p><h3 id="3-3-1-修复请求错误"><a href="#3-3-1-修复请求错误" class="headerlink" title="3.3.1. 修复请求错误"></a>3.3.1. 修复请求错误</h3><p>找到 request_header，这样修改就行了。</p><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs javascript"><span class="hljs-comment">// 构造请求头</span><br><span class="hljs-keyword">const</span> request_header = &#123;<br>  <span class="hljs-attr">method</span>: <span class="hljs-string">&quot;GET&quot;</span>,<br>  <span class="hljs-attr">headers</span>: &#123;<br>    <span class="hljs-string">&quot;Content-Type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,<br>    <span class="hljs-string">&quot;Authorization&quot;</span>: <span class="hljs-string">`Bearer <span class="hljs-subst">$&#123;token&#125;</span>`</span>,<br>  &#125;,<br>&#125;;<br></code></pre></td></tr></table></figure><h3 id="3-3-2-修复显示问题"><a href="#3-3-2-修复显示问题" class="headerlink" title="3.3.2. 修复显示问题"></a>3.3.2. 修复显示问题</h3><p>还是这个文件，下面一点的位置。</p><figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><code class="hljs javascript"><span class="hljs-comment">// 获取站点统计数据</span><br><span class="hljs-keyword">async</span> <span class="hljs-keyword">function</span> <span class="hljs-title function_">siteStats</span>(<span class="hljs-params"></span>) &#123;<br>  <span class="hljs-keyword">try</span> &#123;<br>    ......<br>    <span class="hljs-keyword">const</span> uniqueVisitors = data.&#123;uniques -&gt; visitors&#125;.<span class="hljs-property">value</span>; <span class="hljs-comment">// 获取独立访客数</span><br>    <span class="hljs-comment">//改成这样，不知道是不是Umami版本问题，字段都换了。</span><br>    <span class="hljs-keyword">const</span> uniqueVisitors = data.<span class="hljs-property">visitors</span>.<span class="hljs-property">value</span>;<br>......<br>  &#125; <span class="hljs-keyword">catch</span> (error) &#123;<br>    <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">error</span>(error);<br>    <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;-1&quot;</span>;<br>  &#125;<br>&#125;<br></code></pre></td></tr></table></figure><p>检查底部和文章页，能正常显示访问量。那就完成了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0211/75495d2b58d7a0fe.png" srcset="/img/loading.gif" lazyload alt="网站底部"><figcaption aria-hidden="true">网站底部</figcaption></figure></p><h1 id="4-结语"><a href="#4-结语" class="headerlink" title="4. 结语"></a>4. 结语</h1><p>至此，Hexo 博客 Fluid 主题，成功接入 Umami 统计。挂个横幅庆祝一下。</p><div class="note note-danger">            <p>热烈庆祝 Umami 统计系统接入工程取得圆满成功！</p>          </div><p>这一路也是踩了好几个坑，主要是半成品，想起来就想笑。</p><p>已经提交了PR，但是有人在我之前就修改了。我也只能做一些注释上的加注。以及对配置文件的详细注解。</p><p><a href="https://github.com/fluid-dev/hexo-theme-fluid/pull/1171">:bug: Fix: 基于 Umami v2.15.1 的修复 by violetice · Pull Request #1171 · fluid-dev&#x2F;hexo-theme-fluid</a></p><h1 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://www.thinks365.com/1panel-%E5%AE%89%E8%A3%85-umami-%E7%BD%91%E7%AB%99%E7%BB%9F%E8%AE%A1/">1Panel 安装 umami 网站统计 | 自行搭建一个网站统计工具 不限PV-日有所思博客</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:2" class="footnote-text"><span><a href="https://www.hangge.com/blog/cache/detail_2411.html">Docker - 实现本地镜像的导出、导入（export、import、save、load）</a><a href="#fnref:2" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:3" class="footnote-text"><span><a href="https://blog.csdn.net/qq12547345/article/details/119993542">解决 docker load -i 导入镜像后名称为 none_docker导入镜像没有名字-CSDN博客</a><a href="#fnref:3" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:4" class="footnote-text"><span><a href="https://umami.is/docs/api/authentication">Authentication – Docs - Umami</a><a href="#fnref:4" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/ae0e7184fce0/</id>
    <link href="https://www.vlice.cn/po/ae0e7184fce0/"/>
    <published>2025-02-09T11:13:27.000Z</published>
    <summary>接上文，1Panel 安装完成，博客部署成功。我开这个服务器主要还是为了用 Umami 统计。</summary>
    <title>博客手札：使用 1Panel 安装 Umami，并接入博客</title>
    <updated>2026-11-10T05:01:17.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="博客手札" scheme="https://www.vlice.cn/categories/%E5%8D%9A%E5%AE%A2%E6%89%8B%E6%9C%AD/"/>
    <category term="Hexo" scheme="https://www.vlice.cn/tags/Hexo/"/>
    <category term="运维" scheme="https://www.vlice.cn/tags/%E8%BF%90%E7%BB%B4/"/>
    <category term="实战" scheme="https://www.vlice.cn/tags/%E5%AE%9E%E6%88%98/"/>
    <category term="部署" scheme="https://www.vlice.cn/tags/%E9%83%A8%E7%BD%B2/"/>
    <category term="1Panel" scheme="https://www.vlice.cn/tags/1Panel/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><p> 为什么突然要用 1Panel？还得从阿里云坑我说起。</p><p>我原以为轻应用服务器才是最便宜，没想到 ECS 居然打折！！不到 20 元一个月本体 +7 元的硬盘，这你能受得了吗？</p><p>还好轻应用服务器还处于 5 天无理由退款中，现在 ICP 备案也过了，果断退款！支付宝到账 35 元×3</p><div class="note note-success">            <p>经济型e【ecs.e-c1m1.large】2核2G</p><p>ESSD Entry 20GiB</p><p>Alibaba Cloud Linux 3.2104 LTS 64位</p><p>按量付费（CDT）100Mbps 拉满，每个月送 200G 流量呢，比又拍云还壕。</p>          </div><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/7721c43336fddd76.png" srcset="/img/loading.gif" lazyload alt="ecs.e-c1m1.large"><figcaption aria-hidden="true">ecs.e-c1m1.large</figcaption></figure></p><p>两个月也是折扣价，但是三个月就是目录价了，所以一次性开两个月就行了。支付宝消费 53.74 元。</p><h1 id="1-1Panel-介绍"><a href="#1-1Panel-介绍" class="headerlink" title="1. 1Panel 介绍"></a>1. 1Panel 介绍</h1><p>基于 Go 语言开发，天然具备高并发处理能力和跨平台优势，核心代码更精简高效。<sup id="fnref:1" class="footnote-ref"><a href="#fn:1" rel="footnote"><span class="hint--top hint--rounded" aria-label="[1Panel vs 宝塔面板：现代化运维工具的全方位对比 - 知乎](https://zhuanlan.zhihu.com/p/20575317573)">[1]</span></a></sup></p><p>深度整合 Docker 容器技术，所有应用通过容器隔离部署，避免环境依赖冲突，支持一键迁移和弹性扩缩容。</p><p>200+ 应用均提供 Docker 镜像，包含 Nginx、MySQL 等基础服务及 JupyterLab、GitLab 等开发工具。</p><h1 id="2-安装-1Panel"><a href="#2-安装-1Panel" class="headerlink" title="2. 安装 1Panel"></a>2. 安装 1Panel</h1><p>官网：<a href="https://1panel.cn/">1Panel - 现代化、开源的 Linux 服务器运维管理面板 - 官网</a></p><p>ECS 用的 Ali-C-Linux 基于 CentOS 改造实现，所以用 CentOS 的安装方式就行。</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh &amp;&amp; sh quick_start.sh<br></code></pre></td></tr></table></figure><p>包大小只有 44.5M，比宝塔轻便太多了。宝塔商业化之后我是真不喜欢。他也不搞分支版本，愣是把商业化内容塞满整个面板。1Panel 也是不满宝塔商业化之后的产物。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/415e639b6f0db8d3.png" srcset="/img/loading.gif" lazyload alt="选择语言"><figcaption aria-hidden="true">选择语言</figcaption></figure></p><p>毕竟是国内组织的开源项目，那当然是有官中的。<sup id="fnref:2" class="footnote-ref"><a href="#fn:2" rel="footnote"><span class="hint--top hint--rounded" aria-label="[飞致云 - 为数字经济时代创造好软件](https://www.fit2cloud.com/)">[2]</span></a></sup></p><h2 id="2-1-sudo-权限"><a href="#2-1-sudo-权限" class="headerlink" title="2.1. sudo 权限"></a>2.1. sudo 权限</h2><p>选择语言之后，没有 root 权限的机子就会报错。Ali-C-Linux 只能用 ecs-user，这是必然报错的。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/9c8a3d12a8d65dee.png" srcset="/img/loading.gif" lazyload alt="没有权限"><figcaption aria-hidden="true">没有权限</figcaption></figure></p><p>由于安装脚本已经下载完毕，直接执行即可</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">sudo sh quick_start.sh<br></code></pre></td></tr></table></figure><h2 id="2-2-Alibaba-Cloud-Linux-3-安装-Docker"><a href="#2-2-Alibaba-Cloud-Linux-3-安装-Docker" class="headerlink" title="2.2. Alibaba Cloud Linux 3 安装 Docker"></a>2.2. Alibaba Cloud Linux 3 安装 Docker</h2><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/89717550c89ab2c0.png" srcset="/img/loading.gif" lazyload alt="不支持Ali-Lnux"><figcaption aria-hidden="true">不支持Ali-Lnux</figcaption></figure></p><p>翻译：不支持的分发 “alinux”</p><p>阿里云官网有教程，照着做就好。<sup id="fnref:3" class="footnote-ref"><a href="#fn:3" rel="footnote"><span class="hint--top hint--rounded" aria-label="[安装Docker并使用镜像仓库ACR_云服务器 ECS(ECS)-阿里云帮助中心](https://help.aliyun.com/zh/ecs/use-cases/install-and-use-docker)">[3]</span></a></sup></p><p>现在是为了安装 1Panel，所以没必要完全照做，只要环境构建完成即可。</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">#</span><span class="language-bash">添加Docker软件包源</span><br>sudo wget -O /etc/yum.repos.d/docker-ce.repo http://mirrors.cloud.aliyuncs.com/docker-ce/linux/centos/docker-ce.repo<br>sudo sed -i &#x27;s|https://mirrors.aliyun.com|http://mirrors.cloud.aliyuncs.com|g&#x27; /etc/yum.repos.d/docker-ce.repo<br><span class="hljs-meta prompt_"></span><br><span class="hljs-meta prompt_">#</span><span class="language-bash">Alibaba Cloud Linux3专用的dnf源兼容插件</span><br>sudo dnf -y install dnf-plugin-releasever-adapter --repo alinux3-plus<br><span class="hljs-meta prompt_"></span><br><span class="hljs-meta prompt_">#</span><span class="language-bash">安装Docker社区版本，容器运行时containerd.io，以及Docker构建和Compose插件</span><br>sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<br></code></pre></td></tr></table></figure><p>执行完这四条命令即可，后面的不用管了。Docker 安装完毕</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/bbb1cb49157ae8fe.png" srcset="/img/loading.gif" lazyload alt="Docker 安装完毕"><figcaption aria-hidden="true">Docker 安装完毕</figcaption></figure></p><p>回到 1Panel 安装命令，执行一遍。全部默认即可，到时候都能改。</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">sudo sh quick_start.sh<br></code></pre></td></tr></table></figure><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/8181096a44675cfc.png" srcset="/img/loading.gif" lazyload alt="1Panel安装完成"><figcaption aria-hidden="true">1Panel安装完成</figcaption></figure></p><h2 id="2-3-开放端口"><a href="#2-3-开放端口" class="headerlink" title="2.3. 开放端口"></a>2.3. 开放端口</h2><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/818f70ed30c038a3.png" srcset="/img/loading.gif" lazyload alt="开放端口"><figcaption aria-hidden="true">开放端口</figcaption></figure></p><p>我这里默认端口 30937，开放完就可以用 ip 访问了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/5e1e3689d76d8398.png" srcset="/img/loading.gif" lazyload alt="登录界面"><figcaption aria-hidden="true">登录界面</figcaption></figure></p><p>修改账号密码就不用我多说了吧。</p><h1 id="3-部署博客"><a href="#3-部署博客" class="headerlink" title="3. 部署博客"></a>3. 部署博客</h1><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/c73758c1e53c5009.png" srcset="/img/loading.gif" lazyload alt="未检测到 OpenResty"><figcaption aria-hidden="true">未检测到 OpenResty</figcaption></figure></p><h2 id="3-1-安装-OpenResty"><a href="#3-1-安装-OpenResty" class="headerlink" title="3.1. 安装 OpenResty"></a>3.1. 安装 OpenResty</h2><p>1Panel 网站模块需要 OpenResty。【某 php 环境一键脚本就用的这个，也算是老面孔了】</p><p>去阿里云安全组开放 80&#x2F;443 端口。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/0af3ddb6aa8f8ab7.png" srcset="/img/loading.gif" lazyload alt="开放 80&#x2F;443 端口"><figcaption aria-hidden="true">开放 80/443 端口</figcaption></figure></p><p>在 1Panel 应用商店安装 OpenResty，全部保持默认即可。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/7408e37eda2f6e7d.png" srcset="/img/loading.gif" lazyload alt="正在安装"><figcaption aria-hidden="true">正在安装</figcaption></figure></p><p>这也没个安装日志，有点心慌慌。这一点确实不如宝塔，不过宝塔那个日志也很卡。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/d58200df49b7dbdb.png" srcset="/img/loading.gif" lazyload alt="安装完成"><figcaption aria-hidden="true">安装完成</figcaption></figure></p><p>这样就安装好了，很方便。感觉比宝塔安装 Nginx 快一点。</p><h2 id="3-2-创建网站"><a href="#3-2-创建网站" class="headerlink" title="3.2. 创建网站"></a>3.2. 创建网站</h2><p>Hexo 博客是有编译静态内容的，要创建的是静态站。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/56e14222724a96ca.png" srcset="/img/loading.gif" lazyload alt="创建静态网站"><figcaption aria-hidden="true">创建静态网站</figcaption></figure></p><p>打码是为了防止被冲，小门小户真的耗不起。而且现在也都是套 CDN 的。</p><h2 id="3-3-HTTPS设置"><a href="#3-3-HTTPS设置" class="headerlink" title="3.3. HTTPS设置"></a>3.3. HTTPS设置</h2><p>创建完之后，先去上传证书。可惜目前 OHTTPS 还不支持 1Panel，要不然会更方便。</p><p>不过好在可以自行 API 请求 OHTTPS 下载证书，部署一个周期任务就行。我这里就不展开了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/0de6619db9551e54.png" srcset="/img/loading.gif" lazyload alt="上传证书"><figcaption aria-hidden="true">上传证书</figcaption></figure></p><p>然后打开 HTTPS 设置，默认已经加载证书，直接保存即可。TLS1.0 直接不要，太 Low 了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/d29e669531cbeb54.png" srcset="/img/loading.gif" lazyload alt="HTTPS设置"><figcaption aria-hidden="true">HTTPS设置</figcaption></figure></p><h2 id="3-4-git-clone-博客静态库"><a href="#3-4-git-clone-博客静态库" class="headerlink" title="3.4. git clone 博客静态库"></a>3.4. git clone 博客静态库</h2><p>博客更新手动来就行了，也用不着过于追求自动化。拒绝内耗。</p><p>通过 1Panel 获取网站路径【花括号都懂的吧】</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs text">/opt/1panel/apps/openresty/openresty/www/sites/&#123;xxxx.com&#125;/index<br></code></pre></td></tr></table></figure><p>Ali-C-Linux 默认是没有装 git 的，所以需要安装一下。</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">sudo dnf -y install git<br></code></pre></td></tr></table></figure><p>设置 Git SSH，走 https 不稳定，而且私有库也很麻烦。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/2c78ac99ebf812f8.png" srcset="/img/loading.gif" lazyload alt="上传秘钥"><figcaption aria-hidden="true">上传秘钥</figcaption></figure></p><p>其实可以全部使用同一套秘钥的，我当年脑子抽了。不过这样也有好处，我只需要上传 Gitee 相关的就可以了。还有 GitHub，但是和哪一套共用秘钥我就看不出来了，得打开 config 文件才行。</p><p><strong>权限设置</strong></p><div class="group-image-container"><div class="group-image-row"><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/6b92265fc5299e1f.png" srcset="/img/loading.gif" lazyload alt="只能拥有者读写"><figcaption class="image-caption">只能拥有者读写</figcaption></figure></div><div class="group-image-wrap"><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/41bebae5e18eedcb.png" srcset="/img/loading.gif" lazyload alt="其他人只能读"><figcaption class="image-caption">其他人只能读</figcaption></figure></div></div></div><div class="note note-danger">            <p><strong>紧急插播</strong></p><p>由于 1Panel 用户组是 root，所以 Git SSH 也需要 root 才行。</p><p>1Panel 文件管理直接复制粘贴即可。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/3dc2ad20a442673e.png" srcset="/img/loading.gif" lazyload alt="root用户"><figcaption aria-hidden="true">root用户</figcaption></figure></p><p>权限都不用改，毕竟已经改过了。</p>          </div><p>只有这样的权限设置，才能让 Git SSH 正常工作。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/0a2ce42a39c426f0.png" srcset="/img/loading.gif" lazyload alt="成功握手"><figcaption aria-hidden="true">成功握手</figcaption></figure></p><p>由于创建网站导致文件夹已经存在，删除后克隆再重新创建网站，会搞得很麻烦，步骤也很多。</p><p>所以使用本地创建空 git 库，添加远程库，拉取远程库的方式。</p><p>先删除网站目录中的默认文件</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/bf8f6af90ec29260.png" srcset="/img/loading.gif" lazyload alt="删除这两货"><figcaption aria-hidden="true">删除这两货</figcaption></figure></p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_"># </span><span class="language-bash">由于文件权限组的问题，git操作全程需要root权限</span><br><span class="hljs-meta prompt_"># </span><span class="language-bash">所以直接切换到root用户</span><br>sudo -i<br>cd /opt/1panel/apps/openresty/openresty/www/sites/&#123;xxxx.com&#125;/index<br>git init<br>git remote add origin &lt;remote repository URL&gt;<br>git pull origin master<br></code></pre></td></tr></table></figure><p>执行完成之后，博客就算部署完成了。外网也可以访问了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0208/1746221f98838d90.png" srcset="/img/loading.gif" lazyload alt="部署完成"><figcaption aria-hidden="true">部署完成</figcaption></figure></p><h1 id="5-后记"><a href="#5-后记" class="headerlink" title="5. 后记"></a>5. 后记</h1><p>至此，1Panel 的基础部署就完成了。</p><p>然后修改用户名、密码，修改端口，绑定域名，https等。</p><p>居然还有2FA（双因素身份验证），果断加上。</p><p>推荐 <a href="https://github.com/ente-io/ente">Ente Auth</a> 开源验证器，除了苹果手机没有装（因为没有ipa）。其他手机和电脑我都装了。</p><p>当年我也花过500多元，也搞过自签名的ipa包。成本实在是太高了。当然也有收费的代签名，但如果想要无缝更新，而不是删除老软件。还是得自己斥巨资加入苹果开发者。</p><h1 id="参靠文献"><a href="#参靠文献" class="headerlink" title="参靠文献"></a>参靠文献</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://zhuanlan.zhihu.com/p/20575317573">1Panel vs 宝塔面板：现代化运维工具的全方位对比 - 知乎</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:2" class="footnote-text"><span><a href="https://www.fit2cloud.com/">飞致云 - 为数字经济时代创造好软件</a><a href="#fnref:2" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:3" class="footnote-text"><span><a href="https://help.aliyun.com/zh/ecs/use-cases/install-and-use-docker">安装Docker并使用镜像仓库ACR_云服务器 ECS(ECS)-阿里云帮助中心</a><a href="#fnref:3" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/30a7b00c895d/</id>
    <link href="https://www.vlice.cn/po/30a7b00c895d/"/>
    <published>2025-02-08T10:38:53.000Z</published>
    <summary>宝塔算是用够了，看了好多人推荐 1Panel，这次自己也试试看，全流程记录。</summary>
    <title>博客手札：初次使用 1Panel，部署博客实战记录</title>
    <updated>2026-11-10T05:01:17.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="极客工程" scheme="https://www.vlice.cn/categories/%E6%9E%81%E5%AE%A2%E5%B7%A5%E7%A8%8B/"/>
    <category term="硬件" scheme="https://www.vlice.cn/categories/%E6%9E%81%E5%AE%A2%E5%B7%A5%E7%A8%8B/%E7%A1%AC%E4%BB%B6/"/>
    <category term="Windows11" scheme="https://www.vlice.cn/tags/Windows11/"/>
    <category term="系统修复" scheme="https://www.vlice.cn/tags/%E7%B3%BB%E7%BB%9F%E4%BF%AE%E5%A4%8D/"/>
    <category term="蓝牙修复" scheme="https://www.vlice.cn/tags/%E8%93%9D%E7%89%99%E4%BF%AE%E5%A4%8D/"/>
    <category term="WiFi修复" scheme="https://www.vlice.cn/tags/WiFi%E4%BF%AE%E5%A4%8D/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><div class="note note-info">            <p>2026-11-7 23:35:59 补充<br>其实是坏了，最终还是换了个新的WiFi模块。</p>          </div><p>最近买了PS5的手柄，但是笔记本没有蓝牙功能了，由于固定机位直接拉的网线，所以WiFi没了一直都不知道。记录一下解决的过程，帮后人避坑，也方便以后的自己。</p><blockquote><p><strong>重要说明：</strong> 这是过程记录，包含试错过程、折腾过程。可能对别人来说有用，但是对我撰文当时的情况没有用。失败的情况，我会在子标题里写明。</p></blockquote><h1 id="1-设备信息"><a href="#1-设备信息" class="headerlink" title="1. 设备信息"></a>1. 设备信息</h1><p>笔记本：华硕天选2（FX506HM）</p><p>系统版本：</p><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs text">版本Windows 11 专业工作站版<br>版本号24H2<br>安装日期2025/1/28<br>操作系统版本26100.2894<br>体验Windows 功能体验包 1000.26100.36.0<br></code></pre></td></tr></table></figure><p>WiFi 驱动：Intel(R) Wi-Fi 6 AX201 160MHz</p><p>蓝牙驱动：暂时未知</p><h1 id="2-WiFi篇"><a href="#2-WiFi篇" class="headerlink" title="2. WiFi篇"></a>2. WiFi篇</h1><h2 id="2-1-前情介绍"><a href="#2-1-前情介绍" class="headerlink" title="2.1. 前情介绍"></a>2.1. 前情介绍</h2><p>右下角的便捷管理直接没有 WiFi 以及蓝牙，飞行模式都开不了。【好家伙，还能用笔记本的 Fn 功能开启飞行模式】</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/7d23d4755d534485a89b6243e017f433.png" srcset="/img/loading.gif" lazyload alt="缺失功能的便捷管理"><figcaption aria-hidden="true">缺失功能的便捷管理</figcaption></figure></p><p>可以见得，由于长期不用。很多无线模块都出问题了。检查设备管理器，果不其然的黄色叹号。甚至都找不到蓝牙的驱动。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/34f514546fa34635b979a1871c2b5f45.png" srcset="/img/loading.gif" lazyload alt="设备黄色叹号"><figcaption aria-hidden="true">设备黄色叹号</figcaption></figure></p><h2 id="2-2-折腾的过程"><a href="#2-2-折腾的过程" class="headerlink" title="2.2. 折腾的过程"></a>2.2. 折腾的过程</h2><h3 id="2-2-1-重置网络（失败）"><a href="#2-2-1-重置网络（失败）" class="headerlink" title="2.2.1. 重置网络（失败）"></a>2.2.1. 重置网络（失败）</h3><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/d1990d39ad3e41b6b7357e2a102e1278.png" srcset="/img/loading.gif" lazyload alt="重置网络"><figcaption aria-hidden="true">重置网络</figcaption></figure></p><p>点进去后，立即重置，然后重启电脑。一般的网络问题都能解决。</p><p>可惜，我的问题不行。</p><p>【重启中……】</p><p>黄色叹号，失败！</p><h3 id="2-2-2-卸载驱动并重装（失败）"><a href="#2-2-2-卸载驱动并重装（失败）" class="headerlink" title="2.2.2. 卸载驱动并重装（失败）"></a>2.2.2. 卸载驱动并重装（失败）</h3><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0204/2c1547deb3fb5b0f.png" srcset="/img/loading.gif" lazyload alt="卸载驱动"><figcaption aria-hidden="true">卸载驱动</figcaption></figure></p><p>卸载之后，先不安装驱动。先重启，然后在安装。</p><p>AX201的驱动：<a href="https://www.intel.cn/content/www/cn/zh/products/sku/130293/intel-wifi-6-ax201-gig/downloads.html">英特尔® Wi-Fi 6 AX201</a></p><p>我选择了【面向 Windows® 10 和 Windows 11* 的英特尔® 无线 Wi-Fi 驱动程序】。但并不好使，因为它还是黄色叹号！</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/34f514546fa34635b979a1871c2b5f45.png" srcset="/img/loading.gif" lazyload alt="设备黄色叹号"><figcaption aria-hidden="true">设备黄色叹号</figcaption></figure></p><p>直接引用上图，因为我是操作完之后，才开始撰写本文的。</p><h3 id="2-2-3-升级系统（失败）"><a href="#2-2-3-升级系统（失败）" class="headerlink" title="2.2.3. 升级系统（失败）"></a>2.2.3. 升级系统（失败）</h3><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/3dd84d8668ae4e65b6247b2167d48fdc.png" srcset="/img/loading.gif" lazyload alt="升级系统"><figcaption aria-hidden="true">升级系统</figcaption></figure></p><p>我是一直保持自动更新的，但还是积攒了两个升级，现在下载完了。重启看看能不能好使吧。</p><p>【重启中……】</p><p>不顶用，还是黄色叹号。就不重复截图了，省点图片空间。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/34f514546fa34635b979a1871c2b5f45.png" srcset="/img/loading.gif" lazyload alt="设备黄色叹号"><figcaption aria-hidden="true">设备黄色叹号</figcaption></figure></p><h3 id="2-2-4-取消-USB-Hub-的节约用电（失败）"><a href="#2-2-4-取消-USB-Hub-的节约用电（失败）" class="headerlink" title="2.2.4. 取消 USB Hub 的节约用电（失败）"></a>2.2.4. 取消 USB Hub 的节约用电（失败）</h3><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/285e1981e98c4f8bbd04afd218e36aa4.png" srcset="/img/loading.gif" lazyload alt="能取消的全都取消"><figcaption aria-hidden="true">能取消的全都取消</figcaption></figure></p><p>完事之后，重启看看效果。</p><p>【重启中……】失败！</p><h3 id="2-2-5-尝试更多的驱动（失败）"><a href="#2-2-5-尝试更多的驱动（失败）" class="headerlink" title="2.2.5. 尝试更多的驱动（失败）"></a>2.2.5. 尝试更多的驱动（失败）</h3><p>还是之前的 intel 驱动页面，上面还有其他的驱动。</p><p>AX201的驱动：<a href="https://www.intel.cn/content/www/cn/zh/products/sku/130293/intel-wifi-6-ax201-gig/downloads.html">英特尔® Wi-Fi 6 AX201</a></p><p>这次选择【面向 IT 管理员的 英特尔® PROSet&#x2F;无线软件 和 Wi-Fi 驱动程序】</p><p>完蛋，这是个压缩包，直接搞不来。虽然我是全栈开发，但硬件方面我是真不懂。</p><h3 id="2-2-6-释放静电"><a href="#2-2-6-释放静电" class="headerlink" title="2.2.6. 释放静电"></a>2.2.6. 释放静电</h3><p><a href="https://www.zhihu.com/question/358986216/answer/1027844175">无线网卡驱动显示黄色感叹号,网络适配器中没有WLAN，无法连接无线网络，该怎解决？</a></p><p>知乎上看到的，来试试看。</p><p>看评论区说买个三角插头就行了，但是华硕官配就是三角插的电源适配器</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/4d554fa20a09483083f9c8985dbe62d7.jpg?x-oss-process=image/crop,h_2600,y_600/resize,h_500" srcset="/img/loading.gif" lazyload alt="拔掉这些连线"><figcaption aria-hidden="true">拔掉这些连线</figcaption></figure></p><p>下面开始释放静电<sup id="fnref:1" class="footnote-ref"><a href="#fn:1" rel="footnote"><span class="hint--top hint--rounded" aria-label="[现在的金属笔记本怎么能去静电？ - 知乎](https://www.zhihu.com/question/271818989/answer/1886617891)">[1]</span></a></sup></p><p>关机，然后拔光所有的连线，包括网线、电源线。有能力断开电池线的，可以断开电池。</p><blockquote><p><strong>免责声明：</strong> 没过保的不要打开后盖啊。会打开后盖的注意释放身体的静电啊（今天虽然是立春、六九天，但依旧属于冬季干燥阶段）小心损坏主板。</p><p>强行尝试，造成的一切损失，本人概不负责。不断开电池，多尝试几次也能放掉静电。</p></blockquote><p>准备完毕后，长按电源键20多秒。</p><p>【操作中……】</p><p>额，蓝牙回来了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/ed0c88e665704f3c9a6ea2a5190f8412.png" srcset="/img/loading.gif" lazyload alt="蓝牙驱动有了"><figcaption aria-hidden="true">蓝牙驱动有了</figcaption></figure></p><p>WiFi还是黄色叹号😂</p><p>但是我的需求已经搞定了，我拉的网线，WiFi不重要。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/402dc1ad7d934547ad31e0aefdde31d8.png" srcset="/img/loading.gif" lazyload alt="手柄连上了"><figcaption aria-hidden="true">手柄连上了</figcaption></figure></p><hr><p>生命不息，折腾不止。</p><p>继续释放静电看看，刚才有一个细节没注意。先禁用 WiFi 驱动，然后再关机放电。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/51797229f3e54337b79155c57c25accb.png" srcset="/img/loading.gif" lazyload alt="禁用驱动"><figcaption aria-hidden="true">禁用驱动</figcaption></figure></p><p>【放电中……】</p><p>来了，一切都回来了！！</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/7af956288291/ce3264f9e06f4f70ae458ef4836a1cd8.png" srcset="/img/loading.gif" lazyload alt="复活吧！我的WiFi"><figcaption aria-hidden="true">复活吧！我的WiFi</figcaption></figure></p><h1 id="3-蓝牙篇"><a href="#3-蓝牙篇" class="headerlink" title="3. 蓝牙篇"></a>3. 蓝牙篇</h1><p>见 <a href="#2-2-6-%E9%87%8A%E6%94%BE%E9%9D%99%E7%94%B5">2.2.6. 释放静电</a></p><h1 id="4-番外"><a href="#4-番外" class="headerlink" title="4. 番外"></a>4. 番外</h1><p>结稿检查的时候，发现误删了一张图片。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0204/ef4f79270f014393.png" srcset="/img/loading.gif" lazyload alt="误删图片"><figcaption aria-hidden="true">误删图片</figcaption></figure></p><p>打开设备管理器，准备补截一张图，结果又是熟悉的黄色叹号！！设置里果然还是没有了WiFi，但好在蓝牙没问题。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0204/556b2763d1420034.png" srcset="/img/loading.gif" lazyload alt="黄色叹号"><figcaption aria-hidden="true">黄色叹号</figcaption></figure></p><p>我不管了，爱咋咋地吧。反正我拉网线了，哼╭(╯^╰)╮。</p><h1 id="5-参考文献"><a href="#5-参考文献" class="headerlink" title="5. 参考文献"></a>5. 参考文献</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://www.zhihu.com/question/271818989/answer/1886617891">现在的金属笔记本怎么能去静电？ - 知乎</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/d8107d293999/</id>
    <link href="https://www.vlice.cn/po/d8107d293999/"/>
    <published>2025-02-03T15:01:43.000Z</published>
    <summary>最近买了PS5的手柄，但是笔记本没有蓝牙功能了，由于固定机位直接拉的网线，所以WiFi没了一直都不知道。记录一下解决的过程，帮后人避坑，也方便以后的自己。</summary>
    <title>笔记本没有WIFI又没有蓝牙，解决过程分享</title>
    <updated>2026-11-10T05:01:17.001Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="博客手札" scheme="https://www.vlice.cn/categories/%E5%8D%9A%E5%AE%A2%E6%89%8B%E6%9C%AD/"/>
    <category term="Hexo" scheme="https://www.vlice.cn/tags/Hexo/"/>
    <category term="Github" scheme="https://www.vlice.cn/tags/Github/"/>
    <category term="自动化" scheme="https://www.vlice.cn/tags/%E8%87%AA%E5%8A%A8%E5%8C%96/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><h1 id="编写工作流"><a href="#编写工作流" class="headerlink" title="编写工作流"></a>编写工作流</h1><p>由于众所周知的稳定性缘故，所以需要使用同步代理站 <strong>kkgithub.com</strong></p><p>创建完仓库，push 好之后。直接点进 <strong>Action</strong> 栏目，选择 <strong>Node.js</strong> 项目，把代码复制下来。</p><p>然后本地创建文件：.&#x2F;.github&#x2F;workflows&#x2F;hexo.yml</p><p>我这就直接放我测试通过的了。<sup id="fnref:1" class="footnote-ref"><a href="#fn:1" rel="footnote"><span class="hint--top hint--rounded" aria-label="[GitHub Actions 入门教程 - 阮一峰的网络日志](https://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html)">[1]</span></a></sup><sup id="fnref:2" class="footnote-ref"><a href="#fn:2" rel="footnote"><span class="hint--top hint--rounded" aria-label="[记录一次Hexo持续集成部署尝试-腾讯云开发者社区|Dreamy.TZK](https://cloud.tencent.com/developer/article/1651297)">[2]</span></a></sup><sup id="fnref:3" class="footnote-ref"><a href="#fn:3" rel="footnote"><span class="hint--top hint--rounded" aria-label="[GitHub Actions 中环境变量使用总结: 配置,读取,传递 | api2o](https://www.api2o.com/zh/blog/github/action-docker-image-environment-variables-summary)">[3]</span></a></sup></p><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># For more information see: https://docs.kkgithub.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs</span><br><br><span class="hljs-attr">name:</span> <span class="hljs-string">Hexo</span> <span class="hljs-string">Blog</span> <span class="hljs-string">CI</span><br><br><span class="hljs-attr">on:</span><br>  <span class="hljs-attr">push:</span><br>    <span class="hljs-attr">branches:</span> [ <span class="hljs-string">&quot;master&quot;</span> ]<br><br><span class="hljs-attr">jobs:</span><br>  <span class="hljs-attr">build:</span><br>    <span class="hljs-attr">name:</span> <span class="hljs-string">构建</span> <span class="hljs-string">Hexo</span> <span class="hljs-string">静态页</span><br>    <span class="hljs-attr">runs-on:</span> <span class="hljs-string">ubuntu-latest</span><br><br>    <span class="hljs-attr">strategy:</span><br>      <span class="hljs-attr">matrix:</span><br>        <span class="hljs-attr">node-version:</span> [ <span class="hljs-number">22.</span><span class="hljs-string">x</span> ]<br>        <span class="hljs-comment"># See supported Node.js release schedule at https://nodejs.org/en/about/releases/</span><br><br>    <span class="hljs-attr">steps:</span><br>      <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-number">1</span><span class="hljs-string">.检出</span> <span class="hljs-string">master</span><br>        <span class="hljs-attr">uses:</span> <span class="hljs-string">actions/checkout@v4</span><br><br>      <span class="hljs-comment"># 设置 NodeJS 环境</span><br>      <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-number">2</span><span class="hljs-string">.设置</span> <span class="hljs-string">NodeJS</span> <span class="hljs-string">$&#123;&#123;</span> <span class="hljs-string">matrix.node-version</span> <span class="hljs-string">&#125;&#125;</span><br>        <span class="hljs-attr">uses:</span> <span class="hljs-string">actions/setup-node@v4</span><br>        <span class="hljs-attr">with:</span><br>          <span class="hljs-attr">node-version:</span> <span class="hljs-string">$&#123;&#123;</span> <span class="hljs-string">matrix.node-version</span> <span class="hljs-string">&#125;&#125;</span><br>          <span class="hljs-attr">cache:</span> <span class="hljs-string">&#x27;npm&#x27;</span><br><br><br>      <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-number">3</span><span class="hljs-string">.安装</span> <span class="hljs-string">yarn</span><br>        <span class="hljs-attr">run:</span> <span class="hljs-string">npm</span> <span class="hljs-string">install</span> <span class="hljs-string">yarn</span> <span class="hljs-string">-g</span><br><br>      <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-number">4</span><span class="hljs-string">.安装</span> <span class="hljs-string">Hexo</span> <span class="hljs-string">命令行工具</span><br>        <span class="hljs-attr">run:</span> <span class="hljs-string">yarn</span> <span class="hljs-string">global</span> <span class="hljs-string">add</span> <span class="hljs-string">hexo-cli</span><br><br>      <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-number">5</span><span class="hljs-string">.缓存</span> <span class="hljs-string">node_modules</span><br>        <span class="hljs-attr">uses:</span> <span class="hljs-string">actions/cache@v4</span><br>        <span class="hljs-attr">id:</span> <span class="hljs-string">cache-yarn</span><br>        <span class="hljs-attr">with:</span><br>          <span class="hljs-attr">path:</span> <span class="hljs-string">./node_modules</span><br>          <span class="hljs-attr">key:</span> <span class="hljs-string">$&#123;&#123;runner.OS&#125;&#125;-$&#123;&#123;hashFiles(&#x27;**/yarn.lock&#x27;)&#125;&#125;</span><br>          <span class="hljs-attr">restore-keys:</span> <span class="hljs-string">|</span><br><span class="hljs-string">            $&#123;&#123;runner.OS&#125;&#125;-$&#123;&#123;hashFiles(&#x27;**/yarn.lock&#x27;)&#125;&#125;</span><br><span class="hljs-string">            $&#123;&#123;runner.OS&#125;&#125;-</span><br><span class="hljs-string"></span><br>      <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-number">5.1</span><span class="hljs-string">.缓存</span> <span class="hljs-string">public</span><br>        <span class="hljs-attr">uses:</span> <span class="hljs-string">actions/cache@v4</span><br>        <span class="hljs-attr">id:</span> <span class="hljs-string">cache-public</span><br>        <span class="hljs-attr">with:</span><br>          <span class="hljs-attr">path:</span> <span class="hljs-string">./public</span><br>          <span class="hljs-attr">key:</span> <span class="hljs-string">$&#123;&#123;runner.OS&#125;&#125;-public</span><br>          <span class="hljs-attr">restore-keys:</span> <span class="hljs-string">|</span><br><span class="hljs-string">            $&#123;&#123;runner.OS&#125;&#125;-public</span><br><span class="hljs-string"></span><br>      <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-number">6</span><span class="hljs-string">.配置</span> <span class="hljs-string">gitssh</span><br>        <span class="hljs-attr">env:</span><br>          <span class="hljs-attr">PRIVATE:</span> <span class="hljs-string">$&#123;&#123;</span> <span class="hljs-string">secrets.GIT_SSH_PRIVATE</span> <span class="hljs-string">&#125;&#125;</span><br>        <span class="hljs-attr">run:</span> <span class="hljs-string">|</span><br><span class="hljs-string">          mkdir -p ~/.ssh/</span><br><span class="hljs-string">          echo &quot;$PRIVATE&quot; &gt; ~/.ssh/github</span><br><span class="hljs-string">          chmod 600 ~/.ssh/github</span><br><span class="hljs-string">          printf &quot;Host github.com\nHostName github.com\nIdentityFile ~/.ssh/github&quot; &gt; ~/.ssh/config</span><br><span class="hljs-string">          ssh-keyscan github.com &gt;&gt; ~/.ssh/known_hosts</span><br><span class="hljs-string">          git config --global user.name &#x27;$&#123;&#123; secrets.GIT_USER &#125;&#125;&#x27; </span><br><span class="hljs-string">          git config --global user.email &#x27;$&#123;&#123; secrets.GIT_MAIL &#125;&#125;&#x27;</span><br><span class="hljs-string"></span><br>      <span class="hljs-bullet">-</span> <span class="hljs-attr">if:</span> <span class="hljs-string">$&#123;&#123;</span> <span class="hljs-string">steps.cache-yarn.outputs.cache-hit</span> <span class="hljs-type">!=</span> <span class="hljs-string">&#x27;true&#x27;</span> <span class="hljs-string">&#125;&#125;</span><br>        <span class="hljs-attr">name:</span> <span class="hljs-number">7</span><span class="hljs-string">.初始化Hexo</span><br>        <span class="hljs-attr">run:</span> <span class="hljs-string">yarn</span><br><br>      <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-number">8.</span><span class="hljs-string">Hexo构建静态页</span><br>        <span class="hljs-attr">run:</span> <span class="hljs-string">|</span><br><span class="hljs-string">          hexo g</span><br><span class="hljs-string"></span><br>      <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-number">9.</span><span class="hljs-string">Git</span> <span class="hljs-string">Push</span><br>        <span class="hljs-attr">run:</span> <span class="hljs-string">|</span><br><span class="hljs-string">          git config --global core.autocrlf false</span><br><span class="hljs-string">          hexo deploy</span><br></code></pre></td></tr></table></figure><hr><p>敲黑板，划重点。github库设置（存放 Hexo 源码的库，不是 public 库）</p><table><thead><tr><th>变量名</th><th>含义</th></tr></thead><tbody><tr><td>GIT_SSH_PRIVATE</td><td>git ssh的私钥，直接复制即可</td></tr><tr><td>GIT_USER</td><td>git 用于提交的用户名</td></tr><tr><td>GIT_MAIL</td><td>git 用于提交的邮箱</td></tr></tbody></table><p>跟着下面两张图去找到设置变量的位置，一个一个设置就完事了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/08712ebf88b2/7439175ac551403fb73d57748cd5de1b.png" srcset="/img/loading.gif" lazyload alt="找到位置"><figcaption aria-hidden="true">找到位置</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/08712ebf88b2/809bfc6de5364bb499dfbb8f723a7c3e.png" srcset="/img/loading.gif" lazyload alt="设置变量"><figcaption aria-hidden="true">设置变量</figcaption></figure></p><p>完事直接 push 就可以了。</p><h1 id="后记"><a href="#后记" class="headerlink" title="后记"></a>后记</h1><p>我是真服了啊，<strong>deploy</strong> 得另外准备一个库【<strong>&lt;username&gt;.github.io</strong>】才行啊。得强行覆盖了。</p><p><figure><img src="https://cdn.vlice.cn/hexo/po/08712ebf88b2/af800ddea5c744a781e0ff0c57d3b56e.png" srcset="/img/loading.gif" lazyload alt="我本地的"><figcaption aria-hidden="true">我本地的</figcaption></figure></p><p><figure><img src="https://cdn.vlice.cn/hexo/po/08712ebf88b2/ff9e8529d32c44a293a13e412022df8a.png" srcset="/img/loading.gif" lazyload alt="Github上的"><figcaption aria-hidden="true">Github上的</figcaption></figure></p><p>【<strong>&lt;username&gt;.github.io</strong>】这个库是关键，博客 pages 服务靠的就是这个库，然后去又拍云做加速。</p><hr><p>体验一下流程就完事了，action 是真不好用，可能是我不太熟悉吧。public 库的 commit 不是连续的，就很难受。还是本地 deploy 来得舒服，关键是可以保留 commit 记录。</p><h1 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html">GitHub Actions 入门教程 - 阮一峰的网络日志</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:2" class="footnote-text"><span><a href="https://cloud.tencent.com/developer/article/1651297">记录一次Hexo持续集成部署尝试-腾讯云开发者社区|Dreamy.TZK</a><a href="#fnref:2" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:3" class="footnote-text"><span><a href="https://www.api2o.com/zh/blog/github/action-docker-image-environment-variables-summary">GitHub Actions 中环境变量使用总结: 配置,读取,传递 | api2o</a><a href="#fnref:3" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/6a33ba4e7ef0/</id>
    <link href="https://www.vlice.cn/po/6a33ba4e7ef0/"/>
    <published>2025-01-13T14:41:25.000Z</published>
    <summary>把 Hexo 的构建和部署交给 GitHub Action，push 完自动跑。这里记录一下工作流、Secrets 和踩过的坑。</summary>
    <title>博客手札：利用Github Action自动化部署Hexo</title>
    <updated>2026-11-10T05:01:17.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="博客手札" scheme="https://www.vlice.cn/categories/%E5%8D%9A%E5%AE%A2%E6%89%8B%E6%9C%AD/"/>
    <category term="Hexo" scheme="https://www.vlice.cn/tags/Hexo/"/>
    <category term="折腾" scheme="https://www.vlice.cn/tags/%E6%8A%98%E8%85%BE/"/>
    <category term="升级" scheme="https://www.vlice.cn/tags/%E5%8D%87%E7%BA%A7/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><p>那么，开始吧！按照进度一点一点写。<sup id="fnref:1" class="footnote-ref"><a href="#fn:1" rel="footnote"><span class="hint--top hint--rounded" aria-label="[Hexo 升级 7.0.0 | 三分之七橙](https://umm.js.org/p/3f415d4f/)">[1]</span></a></sup></p><p>环境：Windows 11、NodeJS 20.14、Yarn</p><h1 id="替换package-json"><a href="#替换package-json" class="headerlink" title="替换package.json"></a>替换package.json</h1><p>直接照抄官方<strong>hexo-starter</strong>模板中的<strong>dependencies</strong>模块。<sup id="fnref:2" class="footnote-ref"><a href="#fn:2" rel="footnote"><span class="hint--top hint--rounded" aria-label="[hexo-starter/package.json at master · hexojs/hexo-starter · GitHub](https://kkgithub.com/hexojs/hexo-starter/blob/master/package.json)">[2]</span></a></sup></p><figure class="highlight diff"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs diff"># 只是举个例子<br><span class="hljs-addition">+ &quot;hexo&quot;: &quot;^7.3.0&quot;,</span><br><span class="hljs-deletion">- &quot;hexo&quot;: &quot;^5.3.0&quot;,</span><br>...<br><span class="hljs-addition">+ &quot;hexo-generator-archive&quot;: &quot;^2.0.0&quot;,</span><br><span class="hljs-addition">+ &quot;hexo-generator-category&quot;: &quot;^2.0.0&quot;,</span><br><span class="hljs-deletion">- &quot;hexo-generator-archive&quot;: &quot;^1.0.0&quot;,</span><br><span class="hljs-deletion">- &quot;hexo-generator-category&quot;: &quot;^2.0.0&quot;,</span><br></code></pre></td></tr></table></figure><p>删除<code>yarn.lock</code>，完事直接<code>yarn</code>就行。</p><h1 id="升级模板"><a href="#升级模板" class="headerlink" title="升级模板"></a>升级模板</h1><p>我用的是<strong>Fluid</strong>，所以去查<strong>npmjs</strong>。大版本没有变动，上一步已经更新完成了。</p><p>直接修改<strong>package.json</strong>即可</p><figure class="highlight diff"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs diff"><span class="hljs-addition">+ &quot;hexo-theme-fluid&quot;: &quot;^1.9.8&quot;,</span><br><span class="hljs-deletion">- &quot;hexo-theme-fluid&quot;: &quot;^1.8.7&quot;,</span><br></code></pre></td></tr></table></figure><h2 id="迁移到新模板"><a href="#迁移到新模板" class="headerlink" title="迁移到新模板"></a>迁移到新模板</h2><p>问了防止崩坏，得对模板进行测试。</p><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs sh"><span class="hljs-comment"># Git Bash</span><br><span class="hljs-built_in">cp</span> -r ./node_modules/hexo-theme-fluid/ ./themes/fluid_new<br></code></pre></td></tr></table></figure><p>同时修改<strong>config.yml</strong>的模板配置</p><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># Extensions</span><br><span class="hljs-comment">## Plugins: https://hexo.io/plugins/</span><br><span class="hljs-comment">## Themes: https://hexo.io/themes/</span><br><span class="hljs-attr">theme:</span> <span class="hljs-string">fluid_new</span><br></code></pre></td></tr></table></figure><p>然后自己慢慢改就是了，让新老模板共存，反复测试一段时间。直到完全没有问题之后，再把老模板给删掉即可。</p><p>之后的上线发布我就不啰嗦了。</p><h1 id="参考文献"><a href="#参考文献" class="headerlink" title="参考文献"></a>参考文献</h1><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://umm.js.org/p/3f415d4f/">Hexo 升级 7.0.0 | 三分之七橙</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li><li><span id="fn:2" class="footnote-text"><span><a href="https://kkgithub.com/hexojs/hexo-starter/blob/master/package.json">hexo-starter&#x2F;package.json at master · hexojs&#x2F;hexo-starter · GitHub</a><a href="#fnref:2" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/9177cd4f3c42/</id>
    <link href="https://www.vlice.cn/po/9177cd4f3c42/"/>
    <published>2025-01-12T13:47:07.000Z</published>
    <summary>好久没写博客了，重新捡起来发现更新好快啊，很多东西也不太会了。</summary>
    <title>博客手札：Hexo从5.3.0升级到7.3.0</title>
    <updated>2026-11-10T05:01:17.000Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="游戏爽玩" scheme="https://www.vlice.cn/categories/%E6%B8%B8%E6%88%8F%E7%88%BD%E7%8E%A9/"/>
    <category term="跑跑卡丁车" scheme="https://www.vlice.cn/categories/%E6%B8%B8%E6%88%8F%E7%88%BD%E7%8E%A9/%E8%B7%91%E8%B7%91%E5%8D%A1%E4%B8%81%E8%BD%A6/"/>
    <category term="森林系列" scheme="https://www.vlice.cn/categories/%E6%B8%B8%E6%88%8F%E7%88%BD%E7%8E%A9/%E8%B7%91%E8%B7%91%E5%8D%A1%E4%B8%81%E8%BD%A6/%E6%A3%AE%E6%9E%97%E7%B3%BB%E5%88%97/"/>
    <category term="牧羊场" scheme="https://www.vlice.cn/tags/%E7%89%A7%E7%BE%8A%E5%9C%BA/"/>
    <category term="痕迹视频" scheme="https://www.vlice.cn/tags/%E7%97%95%E8%BF%B9%E8%A7%86%E9%A2%91/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script>    <div class="bilibili-player">      <iframe src="//player.bilibili.com/player.html?aid=670904750&bvid=BV1Ha4y1n742&cid=276053719&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="800" height="725"> </iframe>    </div>    <p>游戏：跑跑卡丁车<br>系列：森林<br>地图：牧羊场<br>车辆：玉玺X<br>成绩：01:20:85<br>BGM：泠鸢yousa - 恋爱语音导航<sup id="fnref:1" class="footnote-ref"><a href="#fn:1" rel="footnote"><span class="hint--top hint--rounded" aria-label="[【泠鸢/小野道】恋爱语音导航【原创】](https://www.bilibili.com/video/BV1ot41127e6)">[1]</span></a></sup>节选，如有侵权请联系我删除。</p><p>这张图算是手动刷里程最好的，相对不难。单次里程8.4km，记录1:17秒多点，正常跑1:30秒以内都是可以接受的。我现在刷了5小时不到，已经500+km了。</p><p>地图解析：<br>1、第一个弯过去后，面临一个选择，走左还是走右。最佳路线是走右，第一弯拖久一点，然后走两棵树中间。<br>2、经过一个飞坡，落地点控制在“路”的左侧，这样通过第二个弯（直角弯）更加舒服。<br>3、第二个选择口，是直接顺坡下去，还是飞出栅栏。可以尝试飞出栅栏，失误也没关系最后成绩在24-27左右。这里无所谓，我是为了刷成绩。<br>4、连续拖漂弯，这里要求不高，别翻车就行。玉玺X不适合跑这图，特别容易翻，这里做不到极限。<br>5、最后过桥，这里我是没经验的。多练吧，看运气。</p><p>小伙伴们，学废了吗？</p><p>森林系列：<a href="https://space.bilibili.com/20263463/channel/detail?cid=162806">https://space.bilibili.com/20263463/channel/detail?cid=162806</a></p><section class="footnotes"><div class="footnote-list"><ol><li><span id="fn:1" class="footnote-text"><span><a href="https://www.bilibili.com/video/BV1ot41127e6">【泠鸢&#x2F;小野道】恋爱语音导航【原创】</a><a href="#fnref:1" rev="footnote" class="footnote-backref"> ↩</a></span></span></li></ol></div></section>]]>
    </content>
    <id>https://www.vlice.cn/po/5f0e6269c042/</id>
    <link href="https://www.vlice.cn/po/5f0e6269c042/"/>
    <published>2021-01-02T12:40:32.000Z</published>
    <summary>为了刷里程，把森林牧羊场练到了 1:20.85。这张图手动刷里程性价比很高，单次 8.4km，正常跑进 1:30 就行；顺手记一下路线和几个容易翻车的点。</summary>
    <title>【S4个人】森林牧羊场 1:20.85 为了刷里程被迫练图</title>
    <updated>2026-11-10T05:01:17.001Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="极客工程" scheme="https://www.vlice.cn/categories/%E6%9E%81%E5%AE%A2%E5%B7%A5%E7%A8%8B/"/>
    <category term="编程" scheme="https://www.vlice.cn/categories/%E6%9E%81%E5%AE%A2%E5%B7%A5%E7%A8%8B/%E7%BC%96%E7%A8%8B/"/>
    <category term="php7.4" scheme="https://www.vlice.cn/tags/php7-4/"/>
    <category term="FastAdmin" scheme="https://www.vlice.cn/tags/FastAdmin/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><p>从安装到运行，一条龙走到底。</p><h2 id="1-前置"><a href="#1-前置" class="headerlink" title="1. 前置"></a>1. 前置</h2><p>默认你们已经安装了 <code>NodeJS</code> 和 <code>Composer</code>。</p><p>php命令行版本：7.4.*</p><p>ThinkPHP：5.0.24</p><h3 id="1-1-下载安装"><a href="#1-1-下载安装" class="headerlink" title="1.1. 下载安装"></a>1.1. 下载安装</h3><p><code>&gt;</code>表示执行命令</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_"># </span><span class="language-bash">设置过国内镜像源的请忽略</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash">npm config <span class="hljs-built_in">set</span> registry https://registry.npm.taobao.org</span><br><span class="hljs-meta prompt_"></span><br><span class="hljs-meta prompt_"># </span><span class="language-bash">安装过bower的请忽略</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash">npm i -g bower</span><br><span class="hljs-meta prompt_"></span><br><span class="hljs-meta prompt_"># </span><span class="language-bash">安装FastAdmin</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash">git <span class="hljs-built_in">clone</span> https://gitee.com/karson/fastadmin.git fa_test</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash"><span class="hljs-built_in">cd</span> fa_test</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash">bower install</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash">composer install</span><br></code></pre></td></tr></table></figure><h3 id="1-2-运行访问"><a href="#1-2-运行访问" class="headerlink" title="1.2. 运行访问"></a>1.2. 运行访问</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_"># </span><span class="language-bash">启动FastAdmin</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash">php -S 127.0.0.1:8080 -t public</span><br>[Tue Dec  1 19:35:46 2020] PHP 7.4.13 Development Server (http://127.0.0.1:8080) started<br><span class="hljs-meta prompt_"># </span><span class="language-bash">出现如上所述，表示 php 内置 Server 启动成功</span><br></code></pre></td></tr></table></figure><p>打开浏览器，访问<code>http://127.0.0.1:8080</code>出现安装页面。</p><p><img src="https://cdn.vlice.cn/hexo/po/2025/0204/b6cac3ae03977681.jpg" srcset="/img/loading.gif" lazyload></p><h2 id="2-安装"><a href="#2-安装" class="headerlink" title="2. 安装"></a>2. 安装</h2><p>数据库，管理员信息填写完成，点击安装。出现如下所述。</p><p><img src="https://cdn.vlice.cn/hexo/po/2025/0204/88c2c112e28da56d.jpg" srcset="/img/loading.gif" lazyload></p><p>php7.4开始不再支持使用花括号 <code>&#123;&#125;</code> 来访问数组和字符串成员。</p><p>出现问题就要解决，把 <code>&#123;&#125;</code> 改成 <code>[]</code> 就可以了。那么改那个文件呢？</p><p>引用一下我的开发三步走，后来人就可以站在前辈们铺好的路上了。</p><blockquote><p>第一步，debug<br>第二步，看文档<br>第三步，翻源码</p></blockquote><h3 id="2-1-开启debug"><a href="#2-1-开启debug" class="headerlink" title="2.1. 开启debug"></a>2.1. 开启debug</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">&gt; </span><span class="language-bash"><span class="hljs-built_in">cp</span> .env.sample .<span class="hljs-built_in">env</span></span><br></code></pre></td></tr></table></figure><p>编辑<code>.env</code>，改成如下内容。</p><figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs ini"><span class="hljs-section">[app]</span><br><span class="hljs-attr">debug</span> = <span class="hljs-literal">true</span><br><span class="hljs-attr">trace</span> = <span class="hljs-literal">true</span><br><br><span class="hljs-section">[database]</span><br><span class="hljs-comment"># hostname = 192.168.1.101</span><br><span class="hljs-comment"># database = fastadmin</span><br><span class="hljs-comment"># username = root</span><br><span class="hljs-comment"># password = root</span><br><span class="hljs-comment"># hostport = 3306</span><br><span class="hljs-comment"># prefix = fa_</span><br></code></pre></td></tr></table></figure><h3 id="2-2-找到错误位置"><a href="#2-2-找到错误位置" class="headerlink" title="2.2. 找到错误位置"></a>2.2. 找到错误位置</h3><p>编辑<code>application/admin/command/Install.php: 132-138行</code></p><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs php"><span class="hljs-keyword">try</span> &#123;<br>    <span class="hljs-variable">$adminName</span> = <span class="hljs-variable language_">$this</span>-&gt;<span class="hljs-title function_ invoke__">installation</span>(<span class="hljs-variable">$mysqlHostname</span>, <span class="hljs-variable">$mysqlHostport</span>, <span class="hljs-variable">$mysqlDatabase</span>, <span class="hljs-variable">$mysqlUsername</span>, <span class="hljs-variable">$mysqlPassword</span>, <span class="hljs-variable">$mysqlPrefix</span>, <span class="hljs-variable">$adminUsername</span>, <span class="hljs-variable">$adminPassword</span>, <span class="hljs-variable">$adminEmail</span>, <span class="hljs-variable">$siteName</span>);<br>&#125; <span class="hljs-keyword">catch</span> (\PDOException <span class="hljs-variable">$e</span>) &#123;<br>    <span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> <span class="hljs-built_in">Exception</span>(<span class="hljs-variable">$e</span>-&gt;<span class="hljs-title function_ invoke__">getMessage</span>());<br>&#125; <span class="hljs-keyword">catch</span> (\<span class="hljs-built_in">Exception</span> <span class="hljs-variable">$e</span>) &#123;<br>    \think<span class="hljs-title class_">\Log</span>::<span class="hljs-title function_ invoke__">error</span>(<span class="hljs-variable">$e</span>); <span class="hljs-comment">// 在这里打印错误日志</span><br>    <span class="hljs-keyword">return</span> <span class="hljs-variable">$output</span>(<span class="hljs-number">0</span>, <span class="hljs-variable">$e</span>-&gt;<span class="hljs-title function_ invoke__">getMessage</span>());<br>&#125;<br></code></pre></td></tr></table></figure><p>日志如下：</p><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs php">[ error ] think\exception<span class="hljs-title class_">\ErrorException</span>::<span class="hljs-title function_ invoke__">__set_state</span>(<span class="hljs-keyword">array</span>(<br>   <span class="hljs-string">&#x27;severity&#x27;</span> =&gt; <span class="hljs-number">8192</span>,<br>   <span class="hljs-string">&#x27;data&#x27;</span> =&gt; <br>  <span class="hljs-keyword">array</span> (<br>  ),<br>   <span class="hljs-string">&#x27;message&#x27;</span> =&gt; <span class="hljs-string">&#x27;Array and string offset access syntax with curly braces is deprecated&#x27;</span>,<br>   <span class="hljs-string">&#x27;string&#x27;</span> =&gt; <span class="hljs-string">&#x27;&#x27;</span>,<br>   <span class="hljs-string">&#x27;code&#x27;</span> =&gt; <span class="hljs-number">0</span>,<br>   <span class="hljs-string">&#x27;file&#x27;</span> =&gt; <span class="hljs-string">&#x27;thinkphp/library/think/db/Query.php&#x27;</span>,<br>   <span class="hljs-string">&#x27;line&#x27;</span> =&gt; <span class="hljs-number">400</span>,<br>   <span class="hljs-comment">// 后面的就可以忽略了</span><br></code></pre></td></tr></table></figure><p><code>message</code>和安装页的错误提示是一样的</p><p>错误位置是<code>thinkphp/library/think/db/Query.php</code>的400行。</p><p><img src="/./002-FastAdmin%E6%94%AF%E6%8C%81php7-4%E7%9A%84%E6%95%99%E7%A8%8B/vKMZAuOhHLTjQSR.jpg" srcset="/img/loading.gif" lazyload></p><p>找到就可以修改了，把 <code>&#123;&#125;</code> 改成 <code>[]</code> 即可。</p><h3 id="2-3-安装成功"><a href="#2-3-安装成功" class="headerlink" title="2.3. 安装成功"></a>2.3. 安装成功</h3><p>修改完后不用刷新页面，直接点击安装。安装成功！</p><p><img src="https://cdn.vlice.cn/hexo/po/2025/0204/89d304321c822f2a.jpg" srcset="/img/loading.gif" lazyload></p><h2 id="3-结尾"><a href="#3-结尾" class="headerlink" title="3. 结尾"></a>3. 结尾</h2><p>简单的用了一下，暂时还没发现别的问题。稳定性待测。</p><p>FastAdmin 支持 php7.4 教程完毕</p><p>Violet_ice紫冰 写于 2020-12-1 21:12:26</p><h2 id="4-番外"><a href="#4-番外" class="headerlink" title="4. 番外"></a>4. 番外</h2><p>写的时候发现了一个小bug。重复安装完成后，由于 <code>$adminName</code> 为空字符串。所以点进入后台是跳到前台的。</p><p>文件<code>application/admin/command/Install.php</code></p><figure class="highlight php"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><code class="hljs php"><span class="hljs-comment"># 200行</span><br><span class="hljs-variable">$adminFile</span> = ROOT_PATH . <span class="hljs-string">&#x27;public&#x27;</span> . DS . <span class="hljs-string">&#x27;admin.php&#x27;</span>;<br><span class="hljs-comment"># 下面是我加的，都重装了，入口文件还是改个名比较好。</span><br><span class="hljs-comment"># 因为本身工作目录就在public，所以不需要用chdir()。</span><br><span class="hljs-comment"># php的glob能不能使用正则，这一点我没研究明白。有没有懂行的大佬，麻烦告知一下。</span><br><span class="hljs-keyword">if</span> (!<span class="hljs-title function_ invoke__">is_file</span>(<span class="hljs-variable">$adminFile</span>)) &#123;<br>    <span class="hljs-variable">$files</span> = <span class="hljs-title function_ invoke__">glob</span>(<span class="hljs-string">&#x27;*.php&#x27;</span>);<br>    <span class="hljs-keyword">foreach</span> (<span class="hljs-variable">$files</span> <span class="hljs-keyword">as</span> <span class="hljs-variable">$file</span>) &#123;<br>        <span class="hljs-keyword">if</span> (<span class="hljs-title function_ invoke__">preg_match</span>(<span class="hljs-string">&#x27;/^[a-zA-Z]&#123;10&#125;\.php$/&#x27;</span>, <span class="hljs-variable">$file</span>, <span class="hljs-variable">$flag</span>)) &#123;<br>            <span class="hljs-variable">$adminFile</span> = ROOT_PATH . <span class="hljs-string">&#x27;public&#x27;</span> . DS . <span class="hljs-variable">$flag</span>[<span class="hljs-number">0</span>];<br>            <span class="hljs-keyword">break</span>;<br>        &#125;<br>    &#125;<br>    <span class="hljs-keyword">unset</span>(<span class="hljs-variable">$files</span>); <span class="hljs-comment">// 数组开销比较大用完就删掉，$file字符串就无所谓了。</span><br>&#125;<br><br><span class="hljs-comment"># 248行</span><br><span class="hljs-variable">$adminName</span> = <span class="hljs-string">&#x27;&#x27;</span>;<br><span class="hljs-keyword">if</span> (<span class="hljs-title function_ invoke__">is_file</span>(<span class="hljs-variable">$adminFile</span>)) &#123;<br>    <span class="hljs-variable">$adminName</span> = <span class="hljs-title class_">Random</span>::<span class="hljs-title function_ invoke__">alpha</span>(<span class="hljs-number">10</span>) . <span class="hljs-string">&#x27;.php&#x27;</span>;<br>    <span class="hljs-title function_ invoke__">rename</span>(<span class="hljs-variable">$adminFile</span>, ROOT_PATH . <span class="hljs-string">&#x27;public&#x27;</span> . DS . <span class="hljs-variable">$adminName</span>);<br>&#125;<br></code></pre></td></tr></table></figure>]]>
    </content>
    <id>https://www.vlice.cn/po/14821968b84a/</id>
    <link href="https://www.vlice.cn/po/14821968b84a/"/>
    <published>2020-12-28T12:15:37.000Z</published>
    <summary>从安装到运行，一条龙走到底。默认你们已经安装了 NodeJS 和 Composer。</summary>
    <title>FastAdmin支持php7.4的教程</title>
    <updated>2026-11-10T05:01:17.001Z</updated>
  </entry>
  <entry>
    <author>
      <name>Violet_ice紫冰</name>
    </author>
    <category term="博客手札" scheme="https://www.vlice.cn/categories/%E5%8D%9A%E5%AE%A2%E6%89%8B%E6%9C%AD/"/>
    <category term="Hexo" scheme="https://www.vlice.cn/tags/Hexo/"/>
    <category term="博客" scheme="https://www.vlice.cn/tags/%E5%8D%9A%E5%AE%A2/"/>
    <content>
      <![CDATA[<link rel="stylesheet" class="aplayer-secondary-style-marker" href="/assets/css/APlayer.min.css"><script src="/assets/js/APlayer.min.js" class="aplayer-secondary-script-marker"></script><script class="meting-secondary-script-marker" src="/assets/js/Meting.min.js"></script><p>具体是第几次，已经无从考究啦。一直执着于自己写，自己开发博客和 <code>MarkDown</code> 编辑器，但一直碌碌无为。在不写博客我就老了，截止今天（2020-12-22）我已经22岁了，没精力折腾了。这次下定决心啦，直接用成熟的博客产品。访问了几个博客，最终选择了 <a href="https://hexo.io/">Hexo</a> ，以 <a href="https://github.com/fluid-dev/hexo-theme-fluid">Fluid</a> 主题作为基础。</p><p>感谢前辈们：<a href="https://www.julydate.com/">七夏浅笑</a>、<a href="https://diygod.me/">DIYdog</a></p><h2 id="约定"><a href="#约定" class="headerlink" title="约定"></a>约定</h2><p><code>&gt;</code> 表示执行 <code>shell</code> 命令</p><p><code>#</code> 表示注释</p><h2 id="安装-Hexo"><a href="#安装-Hexo" class="headerlink" title="安装 Hexo"></a>安装 Hexo</h2><p>我是使用是虚拟机 + Linux宝塔面板，虚拟机和宝塔的安装这里就不赘述了。请看我的教程：【web实战】Linux宝塔面板安装、【web实战】开发环境 - 虚拟机安装。</p><p>Hexo 官网：<a href="https://hexo.io/">https://hexo.io/</a></p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_"># </span><span class="language-bash">安装Hexo脚手架</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash">npm i -g hexo-cli</span><br><br>+ hexo-cli@4.2.0<br>added 65 packages from 334 contributors in 4.085s<br><span class="hljs-meta prompt_"></span><br><span class="hljs-meta prompt_"># </span><span class="language-bash">进入宝塔web根目录</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash"><span class="hljs-built_in">cd</span> /www/wwwroot</span><br><span class="hljs-meta prompt_"></span><br><span class="hljs-meta prompt_"># </span><span class="language-bash">初始化Hexo项目</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash">hexo init example.com</span><br><br>INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git<br>INFO  Install dependencies<br>INFO  Start blogging with Hexo!<br><span class="hljs-meta prompt_"></span><br><span class="hljs-meta prompt_"># </span><span class="language-bash">运行Hexo</span><br><span class="hljs-meta prompt_">&gt; </span><span class="language-bash">hexo server -i 0.0.0.0</span><br><br>INFO  Validating config<br>INFO  Start processing<br>INFO  Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.<br></code></pre></td></tr></table></figure><p>到此，Hexo就安装完成了。</p><p>但不是我想要的效果，指定<code>ip</code>为<code>0.0.0.0</code>被替换了。</p><h2 id="解决ip问题"><a href="#解决ip问题" class="headerlink" title="解决ip问题"></a>解决ip问题</h2><p>直接翻阅<code>hexo-server</code>源代码，找到了问题所在。</p><p>文件：<code>node_modules/hexo-server/lib/server.js</code></p><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs js"><span class="hljs-keyword">function</span> <span class="hljs-title function_">formatAddress</span>(<span class="hljs-params">ip, port, root</span>) &#123;<br>  <span class="hljs-keyword">let</span> hostname = ip;<br>  <span class="hljs-keyword">if</span> (ip === <span class="hljs-string">&#x27;0.0.0.0&#x27;</span> || ip === <span class="hljs-string">&#x27;::&#x27;</span>) &#123;<br>    hostname = <span class="hljs-string">&#x27;localhost&#x27;</span>;<br>  &#125;<br><br>  <span class="hljs-keyword">return</span> url.<span class="hljs-title function_">format</span>(&#123;<span class="hljs-attr">protocol</span>: <span class="hljs-string">&#x27;http&#x27;</span>, <span class="hljs-attr">hostname</span>: hostname, <span class="hljs-attr">port</span>: port, <span class="hljs-attr">path</span>: root&#125;);<br>&#125;<br></code></pre></td></tr></table></figure><p><code>Hexo</code> 团队为什么这么做呢，可能是为了所谓的安全吧。</p><p>翻阅 <code>server.js</code> 的 <a href="https://github.com/hexojs/hexo-server/commits/2.0.0/lib/server.js">Commit History</a>，找到了对应修改记录。</p><blockquote><p>Commit <a href="https://github.com/hexojs/hexo-server/commit/4103a759e406ed4d9cda123ae6afe8a77f8f9432">4103a759e4</a></p><p><strong>Add options and some improvements</strong></p><ul><li>Add “compress” option: Enable GZIP compression</li><li>Add “header” option: Add “X-Powered-By: Hexo” header</li><li>Display “0.0.0.0” as “localhost”</li><li>Use supertest-promised in tests</li></ul></blockquote><blockquote><p>Commit <a href="https://github.com/hexojs/hexo-server/commit/5efada50abab6d611ad2aaba8a3fb344ebc7b326">5efada50ab</a></p><p><strong>Serve on all interfaces by default</strong></p><p>This commit changes the default value of the <code>--ip</code> option to use<br>Node’s internal resolution. It means that it will try to bind to<br>the unspecified IPv6 address <code>::</code> if available or else fall back to the<br>unspecified IPv4 address <code>0.0.0.0</code>. In most systems, <code>::</code> also binds<br>to <code>0.0.0.0</code> which effectively allows to listen on all interfaces.</p></blockquote><p>找到了重点：Display “0.0.0.0” as “localhost”</p><p>这个做法就是不让外网访问，为了小白而考虑的所谓的安全。</p><p>不会吧，不会真有人不使用静态访问吧？！</p><p>直接把替换判断注释掉就可以了。</p><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs js"><span class="hljs-keyword">function</span> <span class="hljs-title function_">formatAddress</span>(<span class="hljs-params">ip, port, root</span>) &#123;<br>  <span class="hljs-keyword">let</span> hostname = ip;<br>  <span class="hljs-comment">// if (ip === &#x27;0.0.0.0&#x27; || ip === &#x27;::&#x27;) &#123;</span><br>  <span class="hljs-comment">//   hostname = &#x27;localhost&#x27;;</span><br>  <span class="hljs-comment">// &#125;</span><br><br>  <span class="hljs-keyword">return</span> url.<span class="hljs-title function_">format</span>(&#123;<span class="hljs-attr">protocol</span>: <span class="hljs-string">&#x27;http&#x27;</span>, <span class="hljs-attr">hostname</span>: hostname, <span class="hljs-attr">port</span>: port, <span class="hljs-attr">path</span>: root&#125;);<br>&#125;<br></code></pre></td></tr></table></figure><h2 id="最终成果"><a href="#最终成果" class="headerlink" title="最终成果"></a>最终成果</h2><p><figure><img src="https://cdn.vlice.cn/hexo/po/2025/0204/ea1e696ce5841510.jpg" srcset="/img/loading.gif" lazyload alt="最终成果"><figcaption aria-hidden="true">最终成果</figcaption></figure></p>]]>
    </content>
    <id>https://www.vlice.cn/po/84d8a836d176/</id>
    <link href="https://www.vlice.cn/po/84d8a836d176/"/>
    <published>2020-12-22T12:31:54.000Z</published>
    <summary>具体是第几次已经记不清了。一直想自己写博客和 Markdown 编辑器，折腾来折腾去也没做出什么。再不写博客就老了，22 岁这年决定直接用成熟的 Hexo + Fluid，先把博客跑起来再说。</summary>
    <title>博客手札：人生第好几次想搞博客</title>
    <updated>2026-11-10T05:01:17.000Z</updated>
  </entry>
</feed>
