<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>卡泽</name>
  </author>
  <generator uri="https://hexo.io/">Hexo</generator>
  <id>https://www.kaze.zone/</id>
  <link href="https://www.kaze.zone/" rel="alternate"/>
  <link href="https://www.kaze.zone/atom.xml" rel="self"/>
  <rights>All rights reserved 2026, 卡泽</rights>
  <subtitle>持续输入，向上生长。</subtitle>
  <title>Kaze' Home</title>
  <updated>2026-04-27T12:27:21.688Z</updated>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <category term="折腾记录" scheme="https://www.kaze.zone/categories/%E6%8A%98%E8%85%BE%E8%AE%B0%E5%BD%95/"/>
    <category term="Microsoft 365" scheme="https://www.kaze.zone/tags/Microsoft-365/"/>
    <category term="SharePoint" scheme="https://www.kaze.zone/tags/SharePoint/"/>
    <content>
      <![CDATA[<p>首次注册 Microsoft 365 时，系统会自动创建一个 <code>*.onmicrosoft.com</code> 域名，SharePoint 和 OneDrive 的 URL 也会使用这个域名。如果不满意这个随机生成的域名，或者需要进行品牌重塑，可以通过以下方法修改 SharePoint 的 onmicrosoft 域名。</p><h2 id="一、重要限制与注意事项"><a href="#一、重要限制与注意事项" class="headerlink" title="一、重要限制与注意事项"></a>一、重要限制与注意事项</h2><p>在开始之前，请务必了解以下限制：</p><table><thead><tr><th>项目</th><th>说明</th></tr></thead><tbody><tr><td><strong>影响范围</strong></td><td>仅影响 SharePoint 和 OneDrive URL，<strong>不会影响电子邮件地址</strong></td></tr><tr><td><strong>重命名间隔</strong></td><td>只能<strong>每六个月重命名一次</strong></td></tr><tr><td><strong>不可逆</strong></td><td>不支持将域名改回原始名称</td></tr><tr><td><strong>重定向</strong></td><td>原域名会自动创建永久性重定向</td></tr><tr><td><strong>多地理位置</strong></td><td>已设置多地理位置的组织<strong>不适用</strong>此功能</td></tr></tbody></table><h2 id="二、准备工作"><a href="#二、准备工作" class="headerlink" title="二、准备工作"></a>二、准备工作</h2><h3 id="2-1-检查新域名是否可用"><a href="#2-1-检查新域名是否可用" class="headerlink" title="2.1 检查新域名是否可用"></a>2.1 检查新域名是否可用</h3><p>在浏览器中访问 <code>https://你的新域名.sharepoint.com</code>：</p><ul><li>如果返回 <strong>404</strong> 或提示找不到 → 该域名<strong>可用</strong></li><li>如果需要登录或显示用户信息 → 该域名<strong>已被占用</strong>，需要换一个</li></ul><h3 id="2-2-添加新的-onmicrosoft-com-域名"><a href="#2-2-添加新的-onmicrosoft-com-域名" class="headerlink" title="2.2 添加新的 onmicrosoft.com 域名"></a>2.2 添加新的 onmicrosoft.com 域名</h3><blockquote><p><strong>必须使用以下链接</strong>，直接在 Azure AD 后台是找不到这个选项的！</p></blockquote><p><strong>访问链接：</strong> <a href="https://aka.ms/SPORenameAddDomain">https://aka.ms/SPORenameAddDomain</a></p><p><strong>操作步骤：</strong></p><ol><li>使用 Edge 浏览器打开上述链接（Chrome 可能无法正常加载）</li><li>使用 Microsoft 365 全局管理员账号登录</li><li>点击 <strong>Add Custom Domain</strong> 或 <strong>添加自定义域</strong></li><li>输入新的域名前缀，例如 <code>username.onmicrosoft.com</code></li><li>点击确认添加</li></ol><p><strong>注意事项：</strong></p><ul><li>添加后<strong>无法删除</strong></li><li>每个账户最多只能添加 <strong>30 个</strong> onmicrosoft 域名</li></ul><h2 id="三、通过-PowerShell-执行重命名"><a href="#三、通过-PowerShell-执行重命名" class="headerlink" title="三、通过 PowerShell 执行重命名"></a>三、通过 PowerShell 执行重命名</h2><h3 id="3-1-安装-SharePoint-Online-管理工具"><a href="#3-1-安装-SharePoint-Online-管理工具" class="headerlink" title="3.1 安装 SharePoint Online 管理工具"></a>3.1 安装 SharePoint Online 管理工具</h3><p>下载并安装 SharePoint Online Management Shell：</p><a class="btn-beautify " href="https://go.microsoft.com/fwlink/p/?LinkId=255251" title="下载 SharePoint Online Management Shell"><i class="download"></i><span>下载 SharePoint Online Management Shell</span></a><h3 id="3-2-连接到-SharePoint-管理中心"><a href="#3-2-连接到-SharePoint-管理中心" class="headerlink" title="3.2 连接到 SharePoint 管理中心"></a>3.2 连接到 SharePoint 管理中心</h3><p>首先确认你的管理域名：</p><p>打开 OneDrive，地址栏格式为 <code>https://你的前缀-my.sharepoint.com/personal/...</code>，其中 <code>你的前缀</code> 就是当前域名。</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><span class="line"><span class="comment"># 连接到 SharePoint 管理中心</span></span><br><span class="line"><span class="built_in">Connect-SPOService</span> <span class="literal">-Url</span> <span class="string">&quot;https://你的前缀-admin.sharepoint.com&quot;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 例如</span></span><br><span class="line"><span class="built_in">Connect-SPOService</span> <span class="literal">-Url</span> <span class="string">&quot;https://username-admin.sharepoint.com&quot;</span></span><br></pre></td></tr></table></figure><p>执行后会弹出登录窗口，使用管理员账号登录。</p><h3 id="3-3-计划并执行重命名"><a href="#3-3-计划并执行重命名" class="headerlink" title="3.3 计划并执行重命名"></a>3.3 计划并执行重命名</h3><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 执行重命名计划</span></span><br><span class="line"><span class="built_in">Start-SPOTenantRename</span> <span class="literal">-DomainName</span> <span class="string">&quot;新前缀&quot;</span> <span class="literal">-ScheduledDateTime</span> <span class="string">&quot;2026-05-01T10:00:00&quot;</span></span><br></pre></td></tr></table></figure><p><strong>参数说明：</strong></p><table><thead><tr><th>参数</th><th>说明</th><th>示例</th></tr></thead><tbody><tr><td><code>-DomainName</code></td><td>新域名前缀（不含 .onmicrosoft.com）</td><td><code>contoso</code></td></tr><tr><td><code>-ScheduledDateTime</code></td><td>生效时间（格式：年-月-日<strong>T</strong>时:分:秒）</td><td><code>2026-05-01T10:00:00</code></td></tr></tbody></table><p><strong>时间要求：</strong></p><ul><li>必须设置为<strong>当前时间 24 小时之后</strong></li><li>最长可设置为 <strong>30 天</strong>之后</li><li>时区与电脑系统时区一致</li></ul><p><strong>执行确认：</strong></p><p>执行命令后会提示确认，输入 <code>Y</code> 确认操作。</p><h2 id="四、监控与管理"><a href="#四、监控与管理" class="headerlink" title="四、监控与管理"></a>四、监控与管理</h2><h3 id="4-1-查询重命名状态"><a href="#4-1-查询重命名状态" class="headerlink" title="4.1 查询重命名状态"></a>4.1 查询重命名状态</h3><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 查看整体重命名状态</span></span><br><span class="line"><span class="built_in">Get-SPOTenantRenameStatus</span></span><br></pre></td></tr></table></figure><p>状态说明：</p><table><thead><tr><th>状态</th><th>含义</th></tr></thead><tbody><tr><td><code>Queued</code></td><td>已排队，等待执行</td></tr><tr><td><code>InProgress</code></td><td>正在进行中</td></tr><tr><td><code>Success</code></td><td>已完成</td></tr></tbody></table><h3 id="4-2-查看单个站点进度"><a href="#4-2-查看单个站点进度" class="headerlink" title="4.2 查看单个站点进度"></a>4.2 查看单个站点进度</h3><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 查看单个站点重命名状态</span></span><br><span class="line"><span class="built_in">Get-SPOSiteRenameState</span> <span class="literal">-ParentOperationId</span> &lt;RenameJobID&gt;</span><br></pre></td></tr></table></figure><h3 id="4-3-取消重命名"><a href="#4-3-取消重命名" class="headerlink" title="4.3 取消重命名"></a>4.3 取消重命名</h3><p>如果需要取消重命名，可在计划时间之前执行：</p><figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 取消重命名（必须在计划时间之前执行）</span></span><br><span class="line"><span class="built_in">Stop-SPOTenantRename</span></span><br></pre></td></tr></table></figure><h2 id="五、验证更改是否成功"><a href="#五、验证更改是否成功" class="headerlink" title="五、验证更改是否成功"></a>五、验证更改是否成功</h2><ol><li>登录 <a href="https://admin.microsoft.com/">Microsoft 365 管理中心</a></li><li>左侧菜单点击 <strong>显示所有</strong> → <strong>SharePoint</strong></li><li>检查地址栏是否显示新的域名</li></ol><h2 id="六、常见问题"><a href="#六、常见问题" class="headerlink" title="六、常见问题"></a>六、常见问题</h2><p><strong>Q: 报错 <code>-722</code> 是什么原因？</strong></p><p>A: 计划的重命名时间距离现在不足 24 小时，请重新设置一个更晚的时间。</p><p><strong>Q: 可以将域名改回原来的吗？</strong></p><p>A: 不支持。微软只允许重命名一次，不支持回退。</p><p><strong>Q: 重命名过程中会影响用户使用吗？</strong></p><p>A: 会有一定影响。重命名期间将暂时阻止创建新的 OneDrive 和网站（如 Teams 新团队）。</p><h2 id="参考链接"><a href="#参考链接" class="headerlink" title="参考链接"></a>参考链接</h2><ul><li><a href="https://learn.microsoft.com/zh-cn/sharepoint/change-your-sharepoint-domain-name">Microsoft 官方文档：重命名 SharePoint 域</a></li></ul>]]>
    </content>
    <id>https://www.kaze.zone/posts/microsoft-365-change-fallback-domain.html</id>
    <link href="https://www.kaze.zone/posts/microsoft-365-change-fallback-domain.html"/>
    <published>2026-04-27T09:19:00.000Z</published>
    <summary>
      <![CDATA[<p>首次注册 Microsoft 365 时，系统会自动创建一个 <code>*.onmicrosoft.com</code> 域名，SharePoint 和 OneDrive 的 URL 也会使用这个域名。如果不满意这个随机生成的域名，或者需要进行品牌重塑，可以通过以下方法修]]>
    </summary>
    <title>Microsoft 365 修改 SharePoint 域名</title>
    <updated>2026-04-27T12:27:21.688Z</updated>
  </entry>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <category term="折腾记录" scheme="https://www.kaze.zone/categories/%E6%8A%98%E8%85%BE%E8%AE%B0%E5%BD%95/"/>
    <category term="Cloudflare" scheme="https://www.kaze.zone/tags/Cloudflare/"/>
    <category term="TLS" scheme="https://www.kaze.zone/tags/TLS/"/>
    <content>
      <![CDATA[<p>Cloudflare 免费计划提供了三种 TLS 通用证书可选：Let’s Encrypt、Google Trust Services、SSL.com，均为三个月有效期。</p><p>默认情况下，Cloudflare 会自动使用 Let’s Encrypt 或 Google Trust Services 证书。如果想使用 SSL.com（或 DigiCert）证书，则需要通过 API 手动切换。</p><blockquote><p><strong>2025年3月更新</strong>：此前 DigiCert 一年期证书已停用，新增 SSL.com 三个月期证书。</p></blockquote><h2 id="一、获取必要信息"><a href="#一、获取必要信息" class="headerlink" title="一、获取必要信息"></a>一、获取必要信息</h2><p>在开始之前，需要准备三样东西：<strong>Zone ID</strong>、<strong>邮箱</strong> 和 <strong>Global API Key</strong>。</p><h3 id="1-获取-Zone-ID"><a href="#1-获取-Zone-ID" class="headerlink" title="1. 获取 Zone ID"></a>1. 获取 Zone ID</h3><ol><li>登录 <a href="https://dash.cloudflare.com/">Cloudflare Dashboard</a></li><li>进入目标域名</li><li>点击左侧 <strong>概述</strong></li><li>页面右下角找到 <strong>API</strong> 区域</li><li>复制 <strong>区域 ID</strong></li></ol><h3 id="2-获取-Global-API-Key"><a href="#2-获取-Global-API-Key" class="headerlink" title="2. 获取 Global API Key"></a>2. 获取 Global API Key</h3><ol><li>点击右上角小人 → <strong>我的个人资料</strong></li><li>左侧菜单选择 <strong>API 令牌</strong></li><li>找到 <strong>API 密钥</strong></li><li>选择 <strong>Global API Key</strong> → <strong>查看</strong></li><li>邮箱验证，并复制 Key。</li></ol><blockquote><p>注意：API Key 相当于账号密码，请勿泄露给他人。</p></blockquote><h2 id="二、执行-API-请求"><a href="#二、执行-API-请求" class="headerlink" title="二、执行 API 请求"></a>二、执行 API 请求</h2><p>打开终端，执行以下命令：</p><figure class="highlight bash"><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><span class="line">curl -X PATCH <span class="string">&quot;https://api.cloudflare.com/client/v4/zones/你的Zone_ID/ssl/universal/settings&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;X-Auth-Email: 你的Cloudflare邮箱&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;X-Auth-Key: 你的Global_API_Key&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;Content-Type: application/json&quot;</span> \</span><br><span class="line">     --data <span class="string">&#x27;&#123;&quot;certificate_authority&quot;:&quot;证书类型&quot;&#125;&#x27;</span></span><br></pre></td></tr></table></figure><h3 id="证书类型参数"><a href="#证书类型参数" class="headerlink" title="证书类型参数"></a>证书类型参数</h3><table><thead><tr><th>证书类型</th><th>参数值</th><th>兼容性</th><th>备注</th></tr></thead><tbody><tr><td>Let’s Encrypt</td><td><code>lets_encrypt</code></td><td>现代设备</td><td>默认自动使用</td></tr><tr><td>Google Trust Services</td><td><code>google</code></td><td>主流浏览器</td><td>默认自动使用</td></tr><tr><td>SSL.com</td><td><code>ssl_com</code></td><td>99.9% 浏览器&#x2F;设备</td><td>备份证书，需通过 API 切换</td></tr></tbody></table><p>例如，切换到 Let’s Encrypt：</p><figure class="highlight bash"><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><span class="line">curl -X PATCH <span class="string">&quot;https://api.cloudflare.com/client/v4/zones/你的Zone_ID/ssl/universal/settings&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;X-Auth-Email: 你的Cloudflare邮箱&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;X-Auth-Key: 你的Global_API_Key&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;Content-Type: application/json&quot;</span> \</span><br><span class="line">     --data <span class="string">&#x27;&#123;&quot;certificate_authority&quot;:&quot;lets_encrypt&quot;&#125;&#x27;</span></span><br></pre></td></tr></table></figure><h2 id="三、验证结果"><a href="#三、验证结果" class="headerlink" title="三、验证结果"></a>三、验证结果</h2><p>执行成功后，返回的 JSON 中 <code>success</code> 应为 <code>true</code>：</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></pre></td><td class="code"><pre><span class="line"><span class="punctuation">&#123;</span></span><br><span class="line">  <span class="attr">&quot;result&quot;</span><span class="punctuation">:</span> <span class="punctuation">&#123;</span></span><br><span class="line">    <span class="attr">&quot;enabled&quot;</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">true</span></span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;certificate_authority&quot;</span><span class="punctuation">:</span> <span class="string">&quot;lets_encrypt&quot;</span></span><br><span class="line">  <span class="punctuation">&#125;</span><span class="punctuation">,</span></span><br><span class="line">  <span class="attr">&quot;success&quot;</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">true</span></span><span class="punctuation">,</span></span><br><span class="line">  <span class="attr">&quot;errors&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line">  <span class="attr">&quot;messages&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span></span><br><span class="line"><span class="punctuation">&#125;</span></span><br></pre></td></tr></table></figure><p>如果 <code>success</code> 为 <code>false</code>，检查一下 API 参数是否填写正确。</p><h3 id="命令行快速验证"><a href="#命令行快速验证" class="headerlink" title="命令行快速验证"></a>命令行快速验证</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">curl -Iv https://你的域名.com 2&gt;&amp;1 | grep <span class="string">&quot;issuer&quot;</span></span><br></pre></td></tr></table></figure><h2 id="四、强制刷新证书"><a href="#四、强制刷新证书" class="headerlink" title="四、强制刷新证书"></a>四、强制刷新证书</h2><p>如果证书长时间未更新：</p><ol><li>进入 Cloudflare 控制台</li><li>导航到 <strong>SSL&#x2F;TLS</strong> → <strong>边缘证书</strong></li><li><strong>禁用</strong> 通用 SSL，等几秒</li><li><strong>重新启用</strong> 通用 SSL</li><li>清除浏览器缓存后访问网站查看</li></ol><p>搞定 😋</p>]]>
    </content>
    <id>https://www.kaze.zone/posts/cloudflare-api-change-ssl-certificate.html</id>
    <link href="https://www.kaze.zone/posts/cloudflare-api-change-ssl-certificate.html"/>
    <published>2026-04-20T08:43:00.000Z</published>
    <summary>
      <![CDATA[<p>Cloudflare 免费计划提供了三种 TLS 通用证书可选：Let’s Encrypt、Google Trust Services、SSL.com，均为三个月有效期。</p>
<p>默认情况下，Cloudflare 会自动使用 Let’s Encrypt 或 Googl]]>
    </summary>
    <title>通过 API 切换 Cloudflare TLS 通用证书</title>
    <updated>2026-04-27T12:31:26.592Z</updated>
  </entry>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <category term="折腾记录" scheme="https://www.kaze.zone/categories/%E6%8A%98%E8%85%BE%E8%AE%B0%E5%BD%95/"/>
    <category term="Cloudflare" scheme="https://www.kaze.zone/tags/Cloudflare/"/>
    <category term="IPv6" scheme="https://www.kaze.zone/tags/IPv6/"/>
    <content>
      <![CDATA[<p>Cloudflare 控制面板只提供开启 IPv6 的选项，无法直接关闭。如果需要关闭 IPv6 兼容性，需要通过 API 来实现。</p><h2 id="一、获取必要信息"><a href="#一、获取必要信息" class="headerlink" title="一、获取必要信息"></a>一、获取必要信息</h2><p>需要准备三样东西：<strong>Zone ID</strong>、<strong>邮箱</strong> 和 <strong>Global API Key</strong>。</p><h3 id="1-获取-Zone-ID"><a href="#1-获取-Zone-ID" class="headerlink" title="1. 获取 Zone ID"></a>1. 获取 Zone ID</h3><ol><li>登录 <a href="https://dash.cloudflare.com/">Cloudflare Dashboard</a></li><li>进入目标域名</li><li>点击左侧 <strong>概述</strong></li><li>页面右下角找到 <strong>API</strong> 区域</li><li>复制 <strong>区域 ID</strong></li></ol><h3 id="2-获取-Global-API-Key"><a href="#2-获取-Global-API-Key" class="headerlink" title="2. 获取 Global API Key"></a>2. 获取 Global API Key</h3><ol><li>点击右上角小人 → <strong>配置文件</strong></li><li>左侧菜单选择 <strong>API 令牌</strong></li><li>找到 <strong>API 密钥</strong></li><li>选择 <strong>Global API Key</strong> → <strong>查看</strong></li><li>邮箱验证，并复制 Key。</li></ol><h2 id="二、关闭-IPv6"><a href="#二、关闭-IPv6" class="headerlink" title="二、关闭 IPv6"></a>二、关闭 IPv6</h2><p>执行以下命令关闭 IPv6 兼容性：</p><figure class="highlight bash"><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><span class="line">curl -X PATCH <span class="string">&quot;https://api.cloudflare.com/client/v4/zones/你的Zone_ID/settings/ipv6&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;X-Auth-Email: 你的Cloudflare邮箱&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;X-Auth-Key: 你的Global_API_Key&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;Content-Type: application/json&quot;</span> \</span><br><span class="line">     --data <span class="string">&#x27;&#123;&quot;value&quot;:&quot;off&quot;&#125;&#x27;</span></span><br></pre></td></tr></table></figure><h2 id="三、开启-IPv6"><a href="#三、开启-IPv6" class="headerlink" title="三、开启 IPv6"></a>三、开启 IPv6</h2><p>如果需要重新开启，执行以下命令：</p><figure class="highlight bash"><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><span class="line">curl -X PATCH <span class="string">&quot;https://api.cloudflare.com/client/v4/zones/你的Zone_ID/settings/ipv6&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;X-Auth-Email: 你的Cloudflare邮箱&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;X-Auth-Key: 你的Global_API_Key&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;Content-Type: application/json&quot;</span> \</span><br><span class="line">     --data <span class="string">&#x27;&#123;&quot;value&quot;:&quot;on&quot;&#125;&#x27;</span></span><br></pre></td></tr></table></figure><h2 id="四、验证结果"><a href="#四、验证结果" class="headerlink" title="四、验证结果"></a>四、验证结果</h2><p>执行成功后，返回的 JSON 中 <code>success</code> 应为 <code>true</code>：</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><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="punctuation">&#123;</span></span><br><span class="line">  <span class="attr">&quot;result&quot;</span><span class="punctuation">:</span> <span class="punctuation">&#123;</span></span><br><span class="line">    <span class="attr">&quot;id&quot;</span><span class="punctuation">:</span> <span class="string">&quot;ipv6&quot;</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;value&quot;</span><span class="punctuation">:</span> <span class="string">&quot;off&quot;</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;modified_on&quot;</span><span class="punctuation">:</span> <span class="string">&quot;2026-04-27T17:10:00.000000Z&quot;</span><span class="punctuation">,</span></span><br><span class="line">    <span class="attr">&quot;editable&quot;</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">true</span></span></span><br><span class="line">  <span class="punctuation">&#125;</span><span class="punctuation">,</span></span><br><span class="line">  <span class="attr">&quot;success&quot;</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">true</span></span><span class="punctuation">,</span></span><br><span class="line">  <span class="attr">&quot;errors&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line">  <span class="attr">&quot;messages&quot;</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span></span><br><span class="line"><span class="punctuation">&#125;</span></span><br></pre></td></tr></table></figure><h2 id="五、查询当前状态"><a href="#五、查询当前状态" class="headerlink" title="五、查询当前状态"></a>五、查询当前状态</h2><p>查看当前 IPv6 设置状态：</p><figure class="highlight bash"><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><span class="line">curl -X GET <span class="string">&quot;https://api.cloudflare.com/client/v4/zones/你的Zone_ID/settings/ipv6&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;X-Auth-Email: 你的Cloudflare邮箱&quot;</span> \</span><br><span class="line">     -H <span class="string">&quot;X-Auth-Key: 你的Global_API_Key&quot;</span></span><br></pre></td></tr></table></figure><p>搞定 😋</p>]]>
    </content>
    <id>https://www.kaze.zone/posts/cloudflare-api-disable-ipv6.html</id>
    <link href="https://www.kaze.zone/posts/cloudflare-api-disable-ipv6.html"/>
    <published>2026-04-10T09:10:00.000Z</published>
    <summary>
      <![CDATA[<p>Cloudflare 控制面板只提供开启 IPv6 的选项，无法直接关闭。如果需要关闭 IPv6 兼容性，需要通过 API 来实现。</p>
<h2 id="一、获取必要信息"><a href="#一、获取必要信息" class="headerlink" title="一、]]>
    </summary>
    <title>通过 API 关闭 Cloudflare IPv6 兼容性</title>
    <updated>2026-04-27T12:30:33.867Z</updated>
  </entry>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <category term="折腾记录" scheme="https://www.kaze.zone/categories/%E6%8A%98%E8%85%BE%E8%AE%B0%E5%BD%95/"/>
    <category term="Hexo" scheme="https://www.kaze.zone/tags/Hexo/"/>
    <content>
      <![CDATA[<p>记录一下今天给 Hexo 配置 Git 部署的过程，免得下次又忘。</p><h2 id="一、安装部署"><a href="#一、安装部署" class="headerlink" title="一、安装部署"></a>一、安装部署</h2><p>首先安装 <code>hexo-deployer-git</code>，Hexo 默认不包含此插件，需手动安装。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure><h2 id="二、设置-Git-用户信息"><a href="#二、设置-Git-用户信息" class="headerlink" title="二、设置 Git 用户信息"></a>二、设置 Git 用户信息</h2><p>配置 Git 用户名和邮箱，建议与 GitHub 账号保持一致（尤其是邮箱），否则提交记录上的”小绿点”可能对不上号。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">git config --global user.name <span class="string">&quot;你的GitHub用户名&quot;</span></span><br><span class="line">git config --global user.email <span class="string">&quot;你的GitHub关联邮箱&quot;</span></span><br></pre></td></tr></table></figure><h2 id="三、生成-SSH-密钥"><a href="#三、生成-SSH-密钥" class="headerlink" title="三、生成 SSH 密钥"></a>三、生成 SSH 密钥</h2><p>执行以下命令后一路回车即可，然后找到 <code>~/.ssh/id_rsa.pub</code> 文件，将其中内容复制出来。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ssh-keygen -t rsa -C <span class="string">&quot;你的GitHub关联邮箱&quot;</span></span><br></pre></td></tr></table></figure><h2 id="四、添加公钥到-GitHub"><a href="#四、添加公钥到-GitHub" class="headerlink" title="四、添加公钥到 GitHub"></a>四、添加公钥到 GitHub</h2><ol><li>登录 GitHub，点击右上角头像 → <strong>Settings</strong></li><li>左侧菜单选择 <strong>SSH and GPG keys</strong></li><li>点击 <strong>New SSH key</strong></li><li>将复制的内容粘贴到 Key 文本框中，输入标题后点击保存。</li></ol><h2 id="五、测试-SSH-连接"><a href="#五、测试-SSH-连接" class="headerlink" title="五、测试 SSH 连接"></a>五、测试 SSH 连接</h2><p>执行以下命令，若返回 <code>Hi xxx! You&#39;ve successfully authenticated...</code> 则说明 SSH 配置成功。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ssh -T git@github.com</span><br></pre></td></tr></table></figure><h2 id="六、修改-Hexo-配置文件"><a href="#六、修改-Hexo-配置文件" class="headerlink" title="六、修改 Hexo 配置文件"></a>六、修改 Hexo 配置文件</h2><p>打开项目根目录下的 <code>_config.yml</code>，找到或添加 <code>deploy</code> 配置如下：</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><span class="line"><span class="attr">deploy:</span></span><br><span class="line">  <span class="attr">type:</span> <span class="string">git</span></span><br><span class="line">  <span class="attr">repo:</span> <span class="string">git@github.com:你的GitHub用户名/你的GitHub用户名.github.io.git</span></span><br><span class="line">  <span class="attr">branch:</span> <span class="string">main</span></span><br></pre></td></tr></table></figure><p>完成以上配置后，执行 <code>hexo clean &amp;&amp; hexo deploy</code> 即可直接推送部署，舒服 😋</p>]]>
    </content>
    <id>https://www.kaze.zone/posts/hexo-configure-git-repository.html</id>
    <link href="https://www.kaze.zone/posts/hexo-configure-git-repository.html"/>
    <published>2026-04-08T08:23:35.000Z</published>
    <summary>
      <![CDATA[<p>记录一下今天给 Hexo 配置 Git 部署的过程，免得下次又忘。</p>
<h2 id="一、安装部署"><a href="#一、安装部署" class="headerlink" title="一、安装部署"></a>一、安装部署</h2><p>首先安装 <code>he]]>
    </summary>
    <title>记一下 Hexo 配置 Git 部署</title>
    <updated>2026-04-27T12:26:37.677Z</updated>
  </entry>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <category term="折腾记录" scheme="https://www.kaze.zone/categories/%E6%8A%98%E8%85%BE%E8%AE%B0%E5%BD%95/"/>
    <category term="Docker" scheme="https://www.kaze.zone/tags/Docker/"/>
    <content>
      <![CDATA[<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>Docker 是一种开源的容器化平台，用于将应用及其依赖打包到一个轻量级、可移植、自包含的运行环境中，从而实现”一次构建，到处运行”。它基于 Linux 内核的命名空间（namespace）和控制组（cgroups）技术，实现进程级隔离和资源限制，比传统虚拟机更高效。</p><blockquote><p>Docker 分为 Docker EE（企业版）和 Docker CE（社区版），本文使用 Docker CE。</p></blockquote><h2 id="环境说明"><a href="#环境说明" class="headerlink" title="环境说明"></a>环境说明</h2><p>本文以 Debian 10 (Buster) 环境为例进行安装说明。</p><h2 id="安装步骤"><a href="#安装步骤" class="headerlink" title="安装步骤"></a>安装步骤</h2><h3 id="第一步：安装基础依赖"><a href="#第一步：安装基础依赖" class="headerlink" title="第一步：安装基础依赖"></a>第一步：安装基础依赖</h3><p>首先更新本地软件包索引列表，并安装必要的依赖工具：</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">sudo</span> apt update</span><br><span class="line"><span class="built_in">sudo</span> apt install ca-certificates curl</span><br></pre></td></tr></table></figure><h3 id="第二步：配置-Docker-GPG-密钥"><a href="#第二步：配置-Docker-GPG-密钥" class="headerlink" title="第二步：配置 Docker GPG 密钥"></a>第二步：配置 Docker GPG 密钥</h3><p>创建一个用于存放 Docker GPG 密钥的目录，并设置合适的权限。然后从 Docker 官方地址下载 GPG 密钥：</p><figure class="highlight bash"><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><span class="line"><span class="built_in">sudo</span> install -m 0755 -d /etc/apt/keyrings</span><br><span class="line"><span class="built_in">sudo</span> curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc</span><br><span class="line"><span class="built_in">sudo</span> <span class="built_in">chmod</span> a+r /etc/apt/keyrings/docker.asc</span><br></pre></td></tr></table></figure><h3 id="第三步：添加-Docker-软件源"><a href="#第三步：添加-Docker-软件源" class="headerlink" title="第三步：添加 Docker 软件源"></a>第三步：添加 Docker 软件源</h3><p>将 Docker 官方仓库添加到 APT 源列表中：</p><figure class="highlight bash"><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><span class="line"><span class="built_in">echo</span> \</span><br><span class="line">  <span class="string">&quot;deb [arch=<span class="subst">$(dpkg --print-architecture)</span> signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \</span></span><br><span class="line"><span class="string">  <span class="subst">$(. /etc/os-release &amp;&amp; echo <span class="string">&quot;<span class="variable">$VERSION_CODENAME</span>&quot;</span>)</span> stable&quot;</span> | \</span><br><span class="line">  <span class="built_in">sudo</span> <span class="built_in">tee</span> /etc/apt/sources.list.d/docker.list &gt; /dev/null</span><br></pre></td></tr></table></figure><h3 id="第四步：安装-Docker-组件"><a href="#第四步：安装-Docker-组件" class="headerlink" title="第四步：安装 Docker 组件"></a>第四步：安装 Docker 组件</h3><p>再次更新软件包索引，并安装 Docker Engine、CLI、Containerd 以及 Docker Compose 插件：</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">sudo</span> apt update</span><br><span class="line"><span class="built_in">sudo</span> apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin</span><br></pre></td></tr></table></figure><h3 id="第五步：验证安装"><a href="#第五步：验证安装" class="headerlink" title="第五步：验证安装"></a>第五步：验证安装</h3><p>运行 hello-world 镜像来确认 Docker 是否安装成功：</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">sudo</span> docker run hello-world</span><br></pre></td></tr></table></figure><p>如果看到安装成功的提示信息，说明 Docker 已正确安装。</p><h2 id="结语"><a href="#结语" class="headerlink" title="结语"></a>结语</h2><p>至此，Docker 基础环境安装完成！后续可以开始构建和运行容器了 🎉</p>]]>
    </content>
    <id>https://www.kaze.zone/posts/docker-environment-setup.html</id>
    <link href="https://www.kaze.zone/posts/docker-environment-setup.html"/>
    <published>2026-04-05T02:00:00.000Z</published>
    <summary>
      <![CDATA[<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>Docker 是一种开源的容器化平台，用于将应用及其依赖打包到一个轻量级、可移植、自包含的运行环境中，从而实现”一次构建，到处运行”。它基于]]>
    </summary>
    <title>Docker 基础环境安装</title>
    <updated>2026-04-27T12:28:14.549Z</updated>
  </entry>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <category term="折腾记录" scheme="https://www.kaze.zone/categories/%E6%8A%98%E8%85%BE%E8%AE%B0%E5%BD%95/"/>
    <category term="Debian" scheme="https://www.kaze.zone/tags/Debian/"/>
    <content>
      <![CDATA[<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>最近打算在服务器上部署 Docker 服务，选用了 Debian 10 作为系统。然而在执行软件更新时，发现默认的软件源已经停止维护，无法正常使用。</p><p>经过查阅资料了解到：Debian 10 (buster) 于 2024 年 6 月结束了标准支持周期（EOL），官方已将其软件源迁移至归档服务器。因此需要将软件源更换为归档源才能继续使用。</p><blockquote><p><strong>注意：</strong> Debian 10 已停止接收安全更新，如非必要，建议使用仍在维护周期内的版本！</p></blockquote><h2 id="操作步骤"><a href="#操作步骤" class="headerlink" title="操作步骤"></a>操作步骤</h2><h3 id="第一步：备份软件源列表"><a href="#第一步：备份软件源列表" class="headerlink" title="第一步：备份软件源列表"></a>第一步：备份软件源列表</h3><p>养成好习惯，操作前先备份：</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cp</span> /etc/apt/sources.list /etc/apt/sources.list.bak</span><br></pre></td></tr></table></figure><h3 id="第二步：编辑源列表"><a href="#第二步：编辑源列表" class="headerlink" title="第二步：编辑源列表"></a>第二步：编辑源列表</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">nano /etc/apt/sources.list</span><br></pre></td></tr></table></figure><h3 id="第三步：替换为归档源地址"><a href="#第三步：替换为归档源地址" class="headerlink" title="第三步：替换为归档源地址"></a>第三步：替换为归档源地址</h3><p>将原有内容替换为以下内容，保存后退出（<code>Ctrl + O</code> 保存，<code>Ctrl + X</code> 退出）：</p><figure class="highlight bash"><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><span class="line">deb http://archive.debian.org/debian/ buster main contrib non-free</span><br><span class="line">deb http://archive.debian.org/debian/ buster-updates main contrib non-free</span><br><span class="line">deb http://archive.debian.org/debian-security buster/updates main contrib non-free</span><br></pre></td></tr></table></figure><h3 id="第四步：更新软件列表"><a href="#第四步：更新软件列表" class="headerlink" title="第四步：更新软件列表"></a>第四步：更新软件列表</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">apt update -o Acquire::Check-Valid-Until=<span class="literal">false</span></span><br></pre></td></tr></table></figure><h2 id="结语"><a href="#结语" class="headerlink" title="结语"></a>结语</h2><p>这样就能愉快地使用 apt 安装软件了 🎉</p>]]>
    </content>
    <id>https://www.kaze.zone/posts/debian-10-change-archive-sources.html</id>
    <link href="https://www.kaze.zone/posts/debian-10-change-archive-sources.html"/>
    <published>2026-03-31T06:30:00.000Z</published>
    <summary>
      <![CDATA[<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>最近打算在服务器上部署 Docker 服务，选用了 Debian 10 作为系统。然而在执行软件更新时，发现默认的软件源已经停止维护，无法正]]>
    </summary>
    <title>Debian 10 更换归档源</title>
    <updated>2026-04-27T12:29:41.032Z</updated>
  </entry>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <content>
      <![CDATA[<p>Welcome to <a href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p><h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">&quot;My New Post&quot;</span></span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/writing.html">Writing</a></p><h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/server.html">Server</a></p><h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/generating.html">Generating</a></p><h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>]]>
    </content>
    <id>https://www.kaze.zone/posts/hello-world.html</id>
    <link href="https://www.kaze.zone/posts/hello-world.html"/>
    <published>2026-03-31T06:24:27.000Z</published>
    <summary>
      <![CDATA[<p>Welcome to <a href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/">documentation</a> for]]>
    </summary>
    <title>Hello World</title>
    <updated>2026-04-27T12:24:51.702Z</updated>
  </entry>
</feed>
