<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>轩然阁科技</title>
	<atom:link href="https://xrange.haoyong8.top/feed/" rel="self" type="application/rss+xml" />
	<link>https://xrange.haoyong8.top</link>
	<description>轩然阁科技 &#124; 专注软路由、NAS与仿真技术分享</description>
	<lastBuildDate>Fri, 08 May 2026 12:21:32 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://xrange.haoyong8.top/wp-content/uploads/2026/03/cropped-cropped-logo_only_red-32x32.png</url>
	<title>轩然阁科技</title>
	<link>https://xrange.haoyong8.top</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>连接器 Housing 结构仿真：Creo 模型处理 + Workbench 静力学分析（附模型下载）</title>
		<link>https://xrange.haoyong8.top/housing-1/</link>
					<comments>https://xrange.haoyong8.top/housing-1/#comments</comments>
		
		<dc:creator><![CDATA[轩然 拙见]]></dc:creator>
		<pubDate>Tue, 05 May 2026 09:56:48 +0000</pubDate>
				<category><![CDATA[CAE 仿真]]></category>
		<category><![CDATA[ansys]]></category>
		<category><![CDATA[结构仿真]]></category>
		<category><![CDATA[连接器，workbench]]></category>
		<category><![CDATA[非线性材料]]></category>
		<guid isPermaLink="false">https://xrange.haoyong8.top/?p=1844</guid>

					<description><![CDATA[本文以连接器 Housing 为研究对象，完整分享了从 Creo 三维建模到 Ansys Workbench 静力学仿真的全流程，通过等效总应变分析定位了结构薄弱区域，同时提供了可下载的完整模型文件，为连接器结构设计与仿真学习提供参考]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="1844" class="elementor elementor-1844">
				<div class="elementor-element elementor-element-3c6c9128 e-flex e-con-boxed e-con e-parent" data-id="3c6c9128" data-element_type="container" data-e-type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-1b0353dc elementor-widget elementor-widget-text-editor" data-id="1b0353dc" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
									<p></p>
<p>摘要: 本文以连接器 Housing 为研究对象，完整分享了从 Creo 三维建模到 Ansys Workbench 静力学仿真的全流程，通过等效总应变分析定位了结构薄弱区域，同时提供了可下载的完整模型文件，为连接器结构设计与仿真学习提供参考</p>
<p></p>
<p>在连接器的实际应用中，Housing（外壳 / 基座）的结构强度直接影响产品的可靠性 —— 插拔过程的挤压、装配时的卡扣变形，都可能导致开裂、失效等问题。因此，在设计阶段通过 CAE 仿真提前验证结构性能，是降低试错成本、优化设计的关键步骤。</p>
<p></p>
<p>今天以一款连接器 Housing 为例，带大家走一遍<strong>从 Creo 建模到 Ansys Workbench 静力学分析</strong>的完整流程，文末还为大家准备了可直接下载的 Creo 模型与仿真文件，注册后即可获取，方便大家对照学习、练手。</p><p>相关视频可点击以下B站链接</p><p><span style="text-align: var(--text-align); -webkit-text-size-adjust: 100%;">【连接器非线性材料模型CAE仿真分析2-哔哩哔哩】 https://b23.tv/tAkmUXk</span></p>
<p></p>
本网站提供模型下载，需要注册后获得下载链接。<hr>
<p></p>
<h3 class="wp-block-heading">一、项目背景与分析目标</h3>
<p></p>
<p>本次分析的核心目标，是验证连接器 Housing 在典型工况下的结构应变分布，定位受力薄弱区域，为后续结构优化提供依据：</p>
<p></p>
<ul class="wp-block-list"><p></p>
<li>模拟 Housing 在装配 / 插拔过程中的受力状态</li>
<p></p>
<li>分析关键位置（如卡扣、接触位）的等效总应变水平</li>
<p></p>
<li>验证结构是否存在过度变形风险，为壁厚、卡扣结构优化提供参考</li>
<p></p></ul>
<p></p>
<hr>
<p></p>
<h3 class="wp-block-heading">二、建模与仿真全流程</h3>
<p></p>
<h4 class="wp-block-heading">2.1 Creo Parametric 模型前处理</h4>
<p></p>
<p>首先我们在 Creo 中完成 Housing 的三维建模，这一步是仿真的基础，细节处理直接影响后续仿真的效率与精度：</p>
<p></p>
<ol class="wp-block-list"><p></p>
<li><strong>核心特征建模</strong>：根据连接器的设计需求，完成 Housing 的腔体、卡扣、安装定位孔等关键特征的创建，还原产品的实际结构。</li>
<p></p>
<li><strong>模型简化处理</strong>：去除对仿真结果影响极小的细小圆角、倒角和工艺特征，避免网格划分时出现畸形单元，大幅提升仿真计算效率。</li>
<p></p>
<li><strong>中性文件导出</strong>：将简化后的模型导出为 STEP 格式，确保模型能被 Ansys Workbench 完整识别，为后续仿真做准备。</li>
<p></p></ol>
<p></p>
<h4 class="wp-block-heading">2.2 Ansys Workbench 2024 R1 静力学仿真设置</h4>
<p></p>
<p>接下来我们在 Workbench 中搭建静力学分析项目，一步步完成仿真设置：</p>
<p></p>
<ol class="wp-block-list"><p></p>
<li><strong>项目创建与模型导入</strong>：新建<code>Static Structural</code>（静力学分析）项目，导入 Creo 导出的 STEP 格式模型。</li>
<p></p>
<li><strong>材料属性定义</strong>：为 Housing 分配工程塑料材料属性（附非线性PA66材料下载链接），还原实际材料的力学特性。</li>
<p></p>
<li><strong>网格划分</strong>：采用四面体网格对模型进行划分，重点对卡扣、受力接触区域进行局部网格加密，平衡计算精度与求解效率。</li>
<p></p>
<li><strong>边界条件设置</strong>：<br>
<ul class="wp-block-list"><p></p>
<li>约束：对 Housing 的安装固定面施加固定约束，模拟实际装配中的固定状态。</li>
<p></p>
<li>载荷：在卡扣接触位置施加模拟插拔 / 挤压的接触载荷，还原产品实际受力工况。</li>
<p></p></ul>
<p></p></li>
<p></p>
<li><strong>求解与后处理</strong>：提交求解，添加<code>Equivalent Total Strain</code>（等效总应变）等结果，求解完成后查看应变分布云图。</li>
<p></p></ol>
<p></p>
<hr>
<p></p>
<h3 class="wp-block-heading">三、仿真结果解读与分析</h3>
<p></p>
<p>本次分析的等效总应变云图请参考B站视频，链接如下:</p>
<p></p>
<p></p>
<p>从结果可以看出：</p>
<p></p>
<ul class="wp-block-list"><p></p>
<li>模型大部分区域应变水平极低，仅在卡扣受力位置出现局部高应变区，<strong>最大等效总应变为 0.1338mm/mm</strong>。</li>
<p></p>
<li>高应变区域集中在卡扣的接触受力位置，这是结构受力的关键区域，也是后续设计优化的重点关注对象 —— 可通过调整卡扣壁厚、增加过渡圆角或优化结构形式，降低局部应变水平，避免过度变形或开裂风险。</li>
<p></p></ul>
<p></p>
<hr>
<p></p>
<h3 class="wp-block-heading">四、模型获取与学习资源</h3>
<p></p>
<p>为了方便大家对照学习，本次分享的<strong>完整 Creo Housing 模型 + Ansys Workbench 仿真文件</strong>已经放置如下位置：</p>
<p></p>
<div style="padding:10px; background:#f5f5f5; border-radius:4px;">🔒 请登录后操作，解锁隐藏内容</div>
<p>
</p>
<p></p>								</div>
					</div>
				</div>
				</div>
		]]></content:encoded>
					
					<wfw:commentRss>https://xrange.haoyong8.top/housing-1/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>剪映字幕识别限免不够用？OpenAI Whisper 本地免费提取字幕</title>
		<link>https://xrange.haoyong8.top/openai-whisper-video/</link>
					<comments>https://xrange.haoyong8.top/openai-whisper-video/#respond</comments>
		
		<dc:creator><![CDATA[轩然 拙见]]></dc:creator>
		<pubDate>Tue, 05 May 2026 02:01:00 +0000</pubDate>
				<category><![CDATA[工具分类]]></category>
		<guid isPermaLink="false">https://xrange.haoyong8.top/?p=1838</guid>

					<description><![CDATA[日常剪辑视频时，很多人会用剪映的自动识别字幕功能，但近期剪映PC版更新后，已经需要开通VIP才能使用。对于需要频繁提取字幕的小伙伴来说，这无疑增加了不便。今天给大家分享一套「完全免费、无次数限制、本地运行」的字幕提取方案，核心用到 OpenAI Whisper（语音转文字神器），搭配 Python 环境和必要工具，不管是视频语音转字幕、硬字幕识别，都能轻松搞定。]]></description>
										<content:encoded><![CDATA[
<p>摘要：日常剪辑视频时，很多人会用剪映的自动识别字幕功能，但近期剪映PC版更新后，已经需要开通VIP才能使用。对于需要频繁提取字幕的小伙伴来说，这无疑增加了不便。今天给大家分享一套「完全免费、无次数限制、本地运行」的字幕提取方案，核心用到 OpenAI Whisper（语音转文字神器），搭配 Python 环境和必要工具，不管是视频语音转字幕、硬字幕识别，都能轻松搞定。</p>



<h3 class="wp-block-heading"><strong>一、前期准备：明确需求与工具清单</strong></h3>



<h4 class="wp-block-heading">1. 适用场景</h4>



<ul class="wp-block-list">
<li>剪映字幕识别次数用完，需要免费替代工具；</li>



<li>视频只有语音，需生成带时间轴的字幕（SRT格式，可直接导入剪映）；</li>



<li>视频内有硬字幕（烧录在画面里，无法关闭），需提取为文本字幕；</li>



<li>批量处理视频字幕，追求高识别率、无网络依赖。</li>
</ul>



<h4 class="wp-block-heading">2. 核心工具清单（全部免费，附官方/镜像下载链接）</h4>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th class="has-text-align-left" data-align="left">工具名称</th><th class="has-text-align-left" data-align="left">用途</th><th class="has-text-align-left" data-align="left">下载链接</th><th class="has-text-align-left" data-align="left">备注</th></tr></thead><tbody><tr><td class="has-text-align-left" data-align="left">Python 3.10.x</td><td class="has-text-align-left" data-align="left">运行 Whisper 的基础环境</td><td class="has-text-align-left" data-align="left">官方地址：<a href="https://www.python.org/downloads/release/python-31011/">Python 3.10.11 官方下载页</a>国内镜像：<a href="https://mirrors.huaweicloud.com/python/3.10.10/python-3.10.10-amd64.exe">Python 3.10.10 华为镜像</a></td><td class="has-text-align-left" data-align="left">优先选 3.10 版本，兼容 Whisper 最佳，避免 3.12+ 高版本（依赖适配不足）</td></tr><tr><td class="has-text-align-left" data-align="left">OpenAI Whisper</td><td class="has-text-align-left" data-align="left">核心字幕提取工具（语音转文字/硬字幕识别）</td><td class="has-text-align-left" data-align="left">通过 Python 命令安装（下文附详细指令）</td><td class="has-text-align-left" data-align="left">开源免费，支持多语言，识别率优于多数免费工具</td></tr><tr><td class="has-text-align-left" data-align="left">FFmpeg</td><td class="has-text-align-left" data-align="left">辅助 Whisper 读取视频/音频文件</td><td class="has-text-align-left" data-align="left">官方地址：<a href="https://ffmpeg.org/download.html">FFmpeg 官方下载页</a>备用：通过 Python 命令安装</td><td class="has-text-align-left" data-align="left">Whisper 必须依赖此工具，否则无法读取视频</td></tr><tr><td class="has-text-align-left" data-align="left">Video-Subtitle-Extractor（VSE）</td><td class="has-text-align-left" data-align="left">专门提取硬字幕（烧录在画面里的字幕）</td><td class="has-text-align-left" data-align="left">GitHub 地址：<a href="https://github.com/XingangPan/video-subtitle-extractor">Video-Subtitle-Extractor</a>国内镜像：<a href="https://gitee.com/qq2276632042/video-subtitle-extractor">VSE 码云地址</a></td><td class="has-text-align-left" data-align="left">有 Windows 免安装版，无需复杂配置，专门适配硬字幕识别</td></tr><tr><td class="has-text-align-left" data-align="left">提词匠小程序</td><td class="has-text-align-left" data-align="left">在线免费提取字幕（无需装软件）</td><td class="has-text-align-left" data-align="left">微信搜索「提词匠」即可打开</td><td class="has-text-align-left" data-align="left">无需安装，支持视频/音频转文字，可导出 SRT 文件</td></tr></tbody></table></figure>



<h3 class="wp-block-heading"><strong>二、详细安装步骤（Windows 系统，全程实操无坑）</strong></h3>



<p>重点讲解「Python + Whisper + FFmpeg」的安装，这是本地免费提取字幕的核心组合，适用于大多数场景（语音转字幕、硬字幕识别）。</p>



<h4 class="wp-block-heading">第一步：安装 Python 3.10.x（关键步骤，别踩坑！）</h4>



<p>Python 是运行 Whisper 的基础，必须安装正确版本，且配置好环境变量，否则后续命令无法执行。</p>



<ol class="wp-block-list">
<li>下载安装包： 优先从官方下载 Python 3.10.11（稳定版），打开链接 <a href="https://www.python.org/downloads/release/python-31011/">Python 3.10.11 官方下载页</a>，拉到页面底部「Files」区域，点击「Windows x86-64 executable installer」（64位系统，目前绝大多数电脑都是64位）； 如果官网下载速度慢，直接用国内镜像：<a href="https://mirrors.huaweicloud.com/python/3.10.10/python-3.10.10-amd64.exe">Python 3.10.10 华为镜像</a>，下载后得到「python-3.10.10-amd64.exe」文件（存到桌面，方便后续查找）。</li>



<li>开始安装： 双击打开下载好的 .exe 安装文件，弹出安装窗口，<strong>第一步必须勾选左下角的「Add Python 3.10 to PATH」</strong>（这一步是让系统识别 Python 和 pip 命令，不勾选会导致后续报错）； 勾选完成后，点击窗口中间的「Customize installation」（自定义安装），避免默认路径的权限问题； 下一个页面，所有选项保持默认（全部勾选），点击「Next」； 再下一个页面，点击「Browse」，将安装路径改为「D:\Python310」（放在 D 盘根目录，后续找文件更方便，也能避免 C 盘权限问题），点击「Install」； 等待进度条走完，出现「Setup was successful」，说明安装成功，点击「Close」关闭窗口。</li>



<li>验证安装是否成功： 按下键盘「Win + R」，输入「cmd」，回车打开「命令提示符」（黑窗口）； 在窗口中输入以下命令，按回车： <code>python --version</code> 如果显示「Python 3.10.10」或「Python 3.10.11」，说明 Python 安装成功； 再输入以下命令，按回车： <code>pip --version</code> 如果显示「pip 2x.x.x from &#8230;」（版本号不固定），说明 pip 包管理器也正常工作。</li>
</ol>



<h4 class="wp-block-heading">第二步：安装 OpenAI Whisper（核心字幕提取工具）</h4>



<p>Whisper 是 OpenAI 开源的语音转文字工具，支持多语言，识别率高，完全免费，无次数限制，安装后通过命令行即可使用。</p>



<ol class="wp-block-list">
<li>打开之前的「命令提示符」窗口（无需重新打开，继续使用即可）；</li>



<li>输入以下命令，按回车（用国内清华源，下载速度更快，避免超时失败）： pip install openai-whisper -i https://pypi.tuna.tsinghua.edu.cn/simple</li>



<li>等待安装完成： 安装过程中会自动下载 Whisper 所需的依赖包（如 numpy、torch 等），可能需要3-5分钟（取决于网络速度），耐心等待即可； 如果出现「Successfully installed openai-whisper-xxxx」，说明 Whisper 安装成功（参考下图安装成功示例）。</li>
</ol>



<p>安装成功示例（截取实操过程中的成功日志）：</p>



<pre class="wp-block-preformatted">536.2/536.2 kB 32.9 MB/s eta 0:00:00<br>Collecting MarkupSafe&gt;=2.0<br>  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d6/25/55dc3ab959917602c96985cb1253efaa4ff42f71194bddeb61eb7278b8be/markupsafe-3.0.3-cp310-cp310-win_amd64.whl (15 kB)<br>Building wheels for collected packages: openai-whisper<br>  Building wheel for openai-whisper (pyproject.toml) ... done<br>  Created wheel for openai-whisper: filename=openai_whisper-20250625-py3-none-any.whl size=804012 sha256=b79cb7341847a20d4fabe9c7598d97d96ac3889885999c89b19c590fd2b9f4ff<br>  Stored in directory: c:\users\dell16a\appdata\local\pip\cache\wheels\d0\a3\00\22bcce5ea9156d33bdc12123c66d55e3424c4e85aca4aa2484<br>Successfully built openai-whisper<br>Installing collected packages: mpmath, urllib3, typing-extensions, sympy, regex, numpy, networkx, more-itertools, MarkupSafe, llvmlite, idna, fsspec, filelock, colorama, charset_normalizer, certifi, tqdm, requests, numba, jinja2, torch, tiktoken, openai-whisper<br>Successfully installed MarkupSafe-3.0.3 certifi-2026.4.22 charset_normalizer-3.4.7 colorama-0.4.6 filelock-3.29.0 fsspec-2026.4.0 idna-3.13 jinja2-3.1.6 llvmlite-0.47.0 more-itertools-11.0.2 mpmath-1.3.0 networkx-3.4.2 numba-0.65.1 numpy-2.2.6 openai-whisper-20250625 regex-2026.4.4 requests-2.33.1 sympy-1.14.0 tiktoken-0.12.0 torch-2.11.0 tqdm-4.67.3 typing-extensions-4.15.0 urllib3-2.6.3<br>​<br>[notice] A new release of pip available: 22.3.1 -&gt; 26.1.1<br>[notice] To update, run: python.exe -m pip install --upgrade pip</pre>



<p>备注：最后出现的「pip 升级提示」可升可不升，不影响 Whisper 使用；如果想升级，输入以下命令即可：</p>



<pre class="wp-block-preformatted">python.exe -m pip install --upgrade pip</pre>



<h4 class="wp-block-heading">第三步：安装 FFmpeg（必装！否则 Whisper 无法读取视频）</h4>



<p>FFmpeg 是一款音视频处理工具，Whisper 依赖它来读取视频/音频文件，不安装会出现「系统找不到指定的文件」报错（下文会详细讲这个报错的解决）。提供两种安装方式，任选一种即可，新手推荐第一种。</p>



<h5 class="wp-block-heading">方式一：通过 Python 命令快速安装（新手首选）</h5>



<ol class="wp-block-list">
<li>打开「命令提示符」窗口，输入以下命令，按回车： pip install ffmpeg-python -i https://pypi.tuna.tsinghua.edu.cn/simple</li>



<li>安装完成后，再输入以下命令（补充系统级 FFmpeg，避免遗漏）： winget install ffmpeg</li>



<li>等待安装完成，无需额外配置，即可正常使用。</li>
</ol>



<h5 class="wp-block-heading">方式二：官网下载安装（备用方案，适用于方式一报错）</h5>



<ol class="wp-block-list">
<li>打开 FFmpeg 官方下载页：<a href="https://ffmpeg.org/download.html">https://ffmpeg.org/download.html</a>；</li>



<li>找到「Windows builds」区域，点击对应的链接，下载最新版本的静态压缩包（如「ffmpeg-release-full.7z」）；</li>



<li>解压压缩包，将解压后的「ffmpeg.exe」文件，复制到「D:\Python310\Scripts」文件夹中（和 Python 安装路径对应）；</li>



<li>验证安装：在「命令提示符」中输入「ffmpeg -version」，按回车，能显示版本信息即安装成功。</li>
</ol>



<h3 class="wp-block-heading"><strong>三、Whisper 实操：一键提取视频字幕（核心步骤）</strong></h3>



<p>安装完成后，即可用 Whisper 提取视频字幕，支持语音转文字（无字幕视频）、硬字幕识别（画面烧录字幕），生成的 SRT 文件可直接导入剪映、PR 等剪辑工具。</p>



<h4 class="wp-block-heading">实操步骤（以 Windows 系统为例）</h4>



<ol class="wp-block-list">
<li>准备视频文件：将需要提取字幕的视频（如「housing分析设置.mp4」）放到容易找到的文件夹（推荐放到桌面，或某个路径无中文、无特殊符号的文件夹，避免报错）；</li>



<li>打开「命令提示符」，切换到视频所在文件夹： 如果视频在桌面，输入以下命令，按回车： <code>cd Desktop</code> 如果视频在其他文件夹如F盘，输入以下命令（替换为自己的视频路径），按回车： cd /d F:~video_made\haoyong8.top\housing力学分析</li>



<li>执行字幕提取命令： 复制以下命令，粘贴到「命令提示符」中，按回车（替换「housing分析设置.mp4」为自己的视频文件名）： </li>
</ol>



<h4 class="wp-block-heading">命令参数说明（新手必看）</h4>



<ul class="wp-block-list">
<li>「housing分析设置.mp4」：替换为你的视频文件名（如果文件名有中文，建议加英文双引号 &#8220;&#8221;，避免识别失败）；</li>



<li>&#8211;model small：使用「small」模型，兼顾识别速度和准确率，适合普通电脑；如果电脑配置较高，可替换为「medium」或「large」（识别率更高，但速度更慢）；</li>



<li>&#8211;output_format srt：指定输出格式为 SRT（剪映、PR 等工具均支持，可直接导入）；</li>



<li>&#8211;language zh：指定识别语言为中文，加快识别速度，提高识别准确率（如果是英文视频，可改为「&#8211;language en」）。</li>
</ul>



<pre class="wp-block-code"><code><code>whisper "housing_force1.mp4" --model small --output_format srt --language zh</code></code></pre>



<h4 class="wp-block-heading">实操效果</h4>



<p>\1. 第一次执行命令时，会自动下载「small」模型（约461M），下载速度取决于网络，耐心等待即可（下载完成后，后续使用无需重复下载）； 2. 模型下载完成后，Whisper 会自动识别视频中的语音/硬字幕，识别过程中会显示进度； 3. 识别完成后，视频所在文件夹会自动生成一个「housing分析设置.srt」文件（和视频文件名一致）； 4. 双击打开 SRT 文件，可查看字幕内容和时间轴，直接导入剪映即可使用（剪映中导入字幕，选择「导入字幕文件」，找到 SRT 文件即可）。</p>



<h3 class="wp-block-heading"><strong>四、常见报错及解决方案（实操避坑重点）</strong></h3>



<p>新手安装和使用过程中，可能会遇到一些报错，以下是实操中最常见的2个报错，附上详细解决方法（对应之前实操中遇到的问题）。</p>



<h4 class="wp-block-heading">报错1：FileNotFoundError: [WinError 2] 系统找不到指定的文件</h4>



<p>【报错场景】执行 Whisper 提取命令时，出现以下报错：</p>



<pre class="wp-block-preformatted">F:\~video_made\haoyong8.top\housing力学分析&gt;whisper housing分析设置.mp4 --model small --output_format srt<br>100%|███████████████████████████████████████| 461M/461M [00:23&lt;00:00, 20.2MiB/s]<br>D:\Python310\lib\site-packages\whisper\transcribe.py:132: UserWarning: FP16 is not supported on CPU; using FP32 instead<br>  warnings.warn("FP16 is not supported on CPU; using FP32 instead")<br>Traceback (most recent call last):<br>  File "D:\Python310\lib\site-packages\whisper\transcribe.py", line 615, in cli<br> &nbsp;  result = transcribe(model, audio_path, temperature=temperature, **args)<br>  File "D:\Python310\lib\site-packages\whisper\transcribe.py", line 139, in transcribe<br> &nbsp;  mel = log_mel_spectrogram(audio, model.dims.n_mels, padding=N_SAMPLES)<br>  File "D:\Python310\lib\site-packages\whisper\audio.py", line 140, in log_mel_spectrogram<br> &nbsp;  audio = load_audio(audio)<br>  File "D:\Python310\lib\site-packages\whisper\audio.py", line 58, in load_audio<br> &nbsp;  out = run(cmd, capture_output=True, check=True).stdout<br>  File "D:\Python310\lib\subprocess.py", line 503, in run<br> &nbsp;  with Popen(*popenargs, **kwargs) as process:<br>  File "D:\Python310\lib\subprocess.py", line 971, in __init__<br> &nbsp;  self._execute_child(args, executable, preexec_fn, close_fds,<br>  File "D:\Python310\lib\subprocess.py", line 1440, in _execute_child<br> &nbsp;  hp, ht, pid, tid = _winapi.CreateProcess(executable, args,<br>FileNotFoundError: [WinError 2] 系统找不到指定的文件。<br>Skipping housing分析设置.mp4 due to FileNotFoundError: [WinError 2] 系统找不到指定的文件。</pre>



<p>【报错原因】缺少 FFmpeg 工具，Whisper 无法读取视频文件；或视频路径/文件名有中文、特殊符号，导致识别失败。</p>



<p>【解决方案】</p>



<ol class="wp-block-list">
<li>优先安装 FFmpeg：按照本文「第二步：安装 FFmpeg」的步骤，重新安装 FFmpeg（推荐方式一，命令安装更快捷）；</li>



<li>检查视频路径和文件名：确保视频路径无中文、无特殊符号（如「~」「@」「#」等），如果有，修改为英文路径和文件名；</li>



<li>重新执行提取命令：如果文件名有中文，给文件名加上英文双引号，如： whisper &#8220;housing分析设置.mp4&#8221; &#8211;model small &#8211;output_format srt &#8211;language zh</li>
</ol>



<h4 class="wp-block-heading">报错2：python &#8211;version 提示“不是内部或外部命令”</h4>



<p>【报错场景】安装 Python 后，在「命令提示符」中输入「python &#8211;version」，提示“不是内部或外部命令，也不是可运行的程序或批处理文件”。</p>



<p>【报错原因】安装 Python 时，未勾选「Add Python 3.10 to PATH」，导致系统无法识别 Python 命令。</p>



<p>【解决方案】</p>



<ol class="wp-block-list">
<li>卸载当前 Python：打开「控制面板」→「程序和功能」，找到「Python 3.10.x」，右键卸载；</li>



<li>重新安装 Python：按照本文「第一步：安装 Python 3.10.x」的步骤，重新安装，<strong>务必勾选「Add Python 3.10 to PATH」</strong>；</li>



<li>重新验证：打开新的「命令提示符」，输入「python &#8211;version」，显示版本信息即解决。</li>
</ol>



<h4 class="wp-block-heading">报错3：pip install 下载慢/报错</h4>



<p>【报错场景】执行「pip install openai-whisper」时，下载速度极慢，或出现「Read timed out」超时报错。</p>



<p>【报错原因】默认使用国外的 Python 源，网络不稳定。</p>



<p>【解决方案】使用国内清华源，命令修改为：</p>



<pre class="wp-block-preformatted">pip install openai-whisper -i https://pypi.tuna.tsinghua.edu.cn/simple</pre>



<h3 class="wp-block-heading"><strong>五、补充方案：其他免费字幕提取工具（备用）</strong></h3>



<p>如果不想安装 Python 和 Whisper，可选择以下备用方案，同样免费、无次数限制，适合偶尔使用的场景。</p>



<h4 class="wp-block-heading">方案1：Video-Subtitle-Extractor（专门提取硬字幕）</h4>



<p>适合视频内有硬字幕（烧录在画面里）的场景，无需安装 Python，下载免安装版即可使用。</p>



<ol class="wp-block-list">
<li>下载工具： GitHub 地址：<a href="https://github.com/XingangPan/video-subtitle-extractor">Video-Subtitle-Extractor</a> 国内镜像（下载更快）：<a href="https://gitee.com/qq2276632042/video-subtitle-extractor">VSE 码云地址</a>，找到「Windows CPU 版本」，下载压缩包；</li>



<li>操作步骤： 解压下载的压缩包，双击打开「video_subtitle_extractor.exe」； 点击「导入视频」，选择需要提取字幕的视频； 框选视频中字幕出现的区域（避免识别到其他无关文字）； 点击「开始提取」，软件会自动 OCR 识别硬字幕，生成 SRT 文件； 识别完成后，可手动修改错别字，点击「导出字幕」，保存为 SRT 文件即可。</li>
</ol>



<h4 class="wp-block-heading">方案2：提词匠小程序（在线免费，无需装软件）</h4>



<p>适合手机端、偶尔提取字幕的场景，微信内直接使用，无需下载任何软件，支持导出 SRT 文件。</p>



<ol class="wp-block-list">
<li>打开方式：微信搜索「提词匠」小程序，认准正版（避免山寨小程序）；</li>



<li>操作步骤： 打开小程序后，选择「视频转文字」； 从手机相册或聊天记录中，选择需要提取字幕的视频； 等待识别完成（1分钟视频约5秒出结果）； 识别完成后，可复制字幕文本，或点击「导出 SRT」，将字幕文件保存到手机，再导入电脑剪映即可。</li>
</ol>



<p>备注：提词匠支持本地视频上传、音频上传，还支持粘贴国内主流平台（抖音、快手、视频号等）的公开视频链接提取字幕，处理后的文件服务器会立即删除，保护隐私。</p>



<h3 class="wp-block-heading"><strong>六、总结</strong></h3>



<p>本文分享的方案，完美解决剪映字幕识别限免不够用的问题，核心推荐「Python + OpenAI Whisper」组合，优势如下：</p>



<ul class="wp-block-list">
<li>完全免费，无次数限制，无水印，本地运行，不依赖网络；</li>



<li>识别率高，支持中文/英文等多语言，兼顾语音转文字、硬字幕识别；</li>



<li>生成的 SRT 文件可直接导入剪映、PR 等剪辑工具，无缝衔接剪辑流程；</li>



<li>批量处理方便，适合需要频繁提取字幕的小伙伴。</li>
</ul>



<p>整个流程从软件下载、安装，到实操命令、报错解决，都做了详细讲解，新手按照步骤操作，就能轻松搞定字幕提取。如果在操作过程中遇到其他报错，可直接复制报错提示，到我的博客留言交流，会第一时间帮忙排查解决！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://xrange.haoyong8.top/openai-whisper-video/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ansys Workbench单位一重启就恢复m单位，怎样永久固定为mm单位</title>
		<link>https://xrange.haoyong8.top/ansys-unit1/</link>
					<comments>https://xrange.haoyong8.top/ansys-unit1/#respond</comments>
		
		<dc:creator><![CDATA[轩然 拙见]]></dc:creator>
		<pubDate>Mon, 04 May 2026 12:55:38 +0000</pubDate>
				<category><![CDATA[CAE 仿真]]></category>
		<category><![CDATA[工具分类]]></category>
		<guid isPermaLink="false">https://xrange.haoyong8.top/?p=1829</guid>

					<description><![CDATA[软件版本ansys2024R1,正常mechanical中设置单位后，例如设置为mm、kg、s，关闭软件后再次打开都是国际单位制m、kg、s等，完全不记住之前的单位设置; 这里给一个彻底解决的方法
]]></description>
										<content:encoded><![CDATA[
<p>摘要: 软件版本ansys2024R1,正常mechanical中设置单位后，例如设置为mm、kg、s，关闭软件后再次打开都是国际单位制m、kg、s等，完全不记住之前的单位设置; 这里给一个彻底解决的方法</p>



<h3 class="wp-block-heading">经过数次验证，确认手动可以锁定配置文件（最彻底）</h3>



<p>这是最可靠的解决路径，可以直接“写死”你的单位偏好。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img fetchpriority="high" decoding="async" width="369" height="240" src="https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202447221.png" alt="" class="wp-image-1831" style="width:299px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202447221.png 369w, https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202447221-300x195.png 300w" sizes="(max-width: 369px) 100vw, 369px" /></figure>
</div>


<ol class="wp-block-list">
<li><strong>关闭Ansys软件</strong>：确保Workbench和Mechanical都已完全退出。</li>



<li><strong>定位配置文件夹</strong>：在Windows资源管理器地址栏输入 <code>%appdata%\Ansys</code> 并回车。
<ul class="wp-block-list">
<li>你会看到一个以版本号命名的文件夹，例如 <code>v251</code> 代表2025 R1版本。进入对应你当前使用版本的文件夹。</li>
</ul>
</li>



<li><strong>找到配置文件</strong>：在该文件夹内，找到并进入 <code>UserRegFiles_XXXX</code> 目录（XXXX是随机数字）。里面有一个名为 <code>software.xml</code> 的文件，这个文件负责保存你在Mechanical中的各种偏好设置</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" width="655" height="213" src="https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202546266.png" alt="" class="wp-image-1832" style="width:459px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202546266.png 655w, https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202546266-300x98.png 300w" sizes="(max-width: 655px) 100vw, 655px" /></figure>
</div>


<ol class="wp-block-list">
<li><strong>编辑文件</strong>：用记事本打开 <code>software.xml</code>，搜索 <code>currentunitsys</code>。你会看到类似 <code>&lt;setting name="currentunitsys" value="..."></code> 的字段。</li>



<li><strong>修改并锁定</strong>：将 <code>value</code> 修改为你需要的单位制代码1。<strong>关键步骤</strong>：保存文件后，右键点击 <code>software.xml</code>，选择“属性”，勾选“只读”，然后确定。这会强制Ansys只能读取你的设置，而无法将其重置</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" width="745" height="146" src="https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202628352-1.png" alt="" class="wp-image-1833" style="aspect-ratio:5.103429279713538;width:477px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202628352-1.png 745w, https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202628352-1-300x59.png 300w" sizes="(max-width: 745px) 100vw, 745px" /></figure>
</div>


<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><strong>注意</strong>：设置只读后，你在Mechanical中任何其他试图更改并保存设置的尝试也会失效。如果需要临时调整，记得先取消只读。</p>
</blockquote>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="390" height="497" src="https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202800985-1.png" alt="" class="wp-image-1835" style="width:286px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202800985-1.png 390w, https://xrange.haoyong8.top/wp-content/uploads/2026/05/image-20260504202800985-1-235x300.png 235w" sizes="(max-width: 390px) 100vw, 390px" /></figure>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://xrange.haoyong8.top/ansys-unit1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>轩然阁・官方工具合集</title>
		<link>https://xrange.haoyong8.top/xrange-toollist/</link>
					<comments>https://xrange.haoyong8.top/xrange-toollist/#respond</comments>
		
		<dc:creator><![CDATA[轩然 拙见]]></dc:creator>
		<pubDate>Sun, 26 Apr 2026 10:19:39 +0000</pubDate>
				<category><![CDATA[工具分类]]></category>
		<guid isPermaLink="false">https://xrange.haoyong8.top/?p=1713</guid>

					<description><![CDATA[整理PVE 虚拟化、NAS 运维、软路由配置、CAE 仿真、服务器运维五大领域正版开源工具、官方公开测试版 / 教育试用版，所有链接均指向软件官方渠道，无破解、无盗版、无第三方修改包，仅用于技术学习与实操参考]]></description>
										<content:encoded><![CDATA[
<p>本页面整理<strong>PVE 虚拟化、NAS 运维、软路由配置、CAE 仿真、服务器运维</strong>五大领域正版开源工具、官方公开测试版 / 教育试用版，所有链接均指向软件官方渠道，仅用于技术学习与实操参考。</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">一、虚拟化 / PVE 部署工具（官方正版）</h3>



<h4 class="wp-block-heading">1. Proxmox VE（PVE）</h4>



<ul class="wp-block-list">
<li>官方下载：Proxmox VE 官方下载页 (<a href="https://www.proxmox.com/en/downloads" target="_blank" rel="noreferrer noopener">https://www.proxmox.com/en/downloads</a>)</li>



<li>适用场景：服务器虚拟化部署、多系统嵌套、All In One 主机搭建</li>



<li>配套教程待定：PVE 从零部署保姆级教程、PVE 网络桥接配置 、硬盘直通实操指南。</li>
</ul>



<h4 class="wp-block-heading">2. VMware Workstation Player（免费个人版）</h4>



<ul class="wp-block-list">
<li>官方下载：VMware 个人免费版官网 (<a href="https://www.vmware.com/products/workstation-player.html" target="_blank" rel="noreferrer noopener">https://www.vmware.com/products/workstation-player.html</a>)</li>



<li>适用场景：个人本地虚拟机测试、系统镜像调试</li>



<li>配套教程：VMware 虚拟机安装与网络配置, 镜像导入实操 </li>
</ul>



<h4 class="wp-block-heading">3. Ubuntu（开源 Linux 服务器系统）</h4>



<ul class="wp-block-list">
<li>官方网站：Ubuntu 官方首页 (<a href="https://ubuntu.com/" target="_blank" rel="noreferrer noopener">https://ubuntu.com/</a>)</li>



<li>官方下载：Ubuntu 桌面版 / 服务器版镜像下载 (<a href="https://ubuntu.com/download" target="_blank" rel="noreferrer noopener">https://ubuntu.com/download</a>)</li>



<li>适用场景：服务器搭建、Docker 部署、开发环境、家用虚拟机、长期稳定运维</li>



<li>配套教程：Ubuntu 24.04 零基础安装配置 、Ubuntu 常用命令大全 、Ubuntu 开机自启设置</li>
</ul>



<h4 class="wp-block-heading">4. VirtualBox（开源免费）</h4>



<ul class="wp-block-list">
<li>官方下载：VirtualBox 官方下载 (<a href="https://www.virtualbox.org/wiki/Downloads" target="_blank" rel="noreferrer noopener">https://www.virtualbox.org/wiki/Downloads</a>)</li>



<li>适用场景：轻量级本地虚拟化、小众系统测试</li>



<li>配套教程：VirtualBox 无坑安装、虚拟机互通配置</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">二、NAS / 软路由运维工具（官方开源 / 正版）</h3>



<h4 class="wp-block-heading">1. 群晖 DSM（官方原版）</h4>



<ul class="wp-block-list">
<li>官方下载：iStoreOS 官方固件库 (<a href="https://www.istoreos.com/" target="_blank" rel="noreferrer noopener">https://www.istoreos.com/</a>)</li>



<li>适用场景：软路由系统部署、内网穿透、网络管理</li>



<li>配套教程：iStoreOS 安装配置、DDNS 动态域名 、IPv6 穿透设置 </li>
</ul>



<h4 class="wp-block-heading">2. 飞牛 OS（fnOS，国产 NAS 系统）</h4>



<ul class="wp-block-list">
<li>官方网站：飞牛私有云 fnOS 官方主页 (<a href="https://www.fnnas.com/" target="_blank" rel="noreferrer noopener">https://www.fnnas.com/</a>)</li>



<li>官方下载：飞牛 OS 系统镜像下载页 (<a href="https://www.fnnas.com/download" target="_blank" rel="noreferrer noopener">https://www.fnnas.com/download</a>)</li>



<li>适用场景：家庭 NAS 部署、私有云存储、影视媒体管理、Docker 应用容器化、轻量级服务器搭建</li>



<li>配套教程：飞牛 OS 虚拟机安装体验、硬盘直通与存储池配置 (<a href="https://xrange.haoyong8.top/pve-fnos1/">https://xrange.haoyong8.top/pve-fnos1/</a>)、外网访问设置</li>
</ul>



<h4 class="wp-block-heading">3. iStoreOS</h4>



<ul class="wp-block-list">
<li>官方下载：群晖 DSM 官方镜像 (<a href="https://www.synology.cn/zh-cn/support/download" target="_blank" rel="noreferrer noopener">https://www.synology.cn/zh-cn/support/download</a>)</li>



<li>适用场景：NAS 系统安装、硬盘挂载、网盘部署</li>



<li>配套教程：群晖 DSM 原版安装 、Docker 容器配置 、外网访问设置 </li>
</ul>



<h4 class="wp-block-heading">4. OpenWRT</h4>



<ul class="wp-block-list">
<li>官方下载：OpenWRT 官方固件 (<a href="https://openwrt.org/downloads" target="_blank" rel="noreferrer noopener">https://openwrt.org/downloads</a>)</li>



<li>适用场景：自定义软路由、高级网络调试</li>



<li>配套教程：OpenWRT 固件刷入、防火墙规则配置 </li>
</ul>



<h4 class="wp-block-heading">5. Portainer（开源免费）</h4>



<ul class="wp-block-list">
<li>官方下载：Portainer 官方部署指南 (<a href="https://www.portainer.io/download" target="_blank" rel="noreferrer noopener">https://www.portainer.io/download</a>)</li>



<li>适用场景：Docker 容器可视化管理</li>



<li>配套教程：Portainer 安装与容器管理 、自启配置 </li>
</ul>



<h4 class="wp-block-heading">6. 爱快 (iKuai) 软路由系统</h4>



<ul class="wp-block-list">
<li>官方网站：爱快 iKuai 官方主页 (<a href="https://www.ikuai8.com/" target="_blank" rel="noreferrer noopener">https://www.ikuai8.com/</a>)</li>



<li>官方下载：爱快路由系统固件下载页 (<a href="https://www.ikuai8.com/component/download" target="_blank" rel="noreferrer noopener">https://www.ikuai8.com/component/download</a>)</li>



<li>适用场景：软路由部署、企业级网络管理、DPI 七层流控、多 WAN 口负载均衡、内置 AC 无线管理、网络认证服务</li>



<li>配套教程：爱快软路由安装与基础配置 、多 WAN 口链路叠加设置 、IPv6 网络配置 </li>



<li>经测试iKuai在IPV6测试方面不如iStore稳定，经常因为IP前缀变化等问题失效，推荐用iStore替代iKuai系统</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">三、CAE 仿真实用工具（官方正版 / 教育试用）</h3>



<h4 class="wp-block-heading">1. Abaqus（专业有限元仿真分析）</h4>



<ul class="wp-block-list">
<li>官方网站：SIMULIA Abaqus 官方主页 (<a href="https://www.3ds.com/products/simulia/abaqus/" target="_blank" rel="noreferrer noopener">https://www.3ds.com/products/simulia/abaqus/</a>)</li>



<li>教育版申请：达索系统 3DEXPERIENCE Edu 平台 (<a href="https://www.3ds.com/zh/edu/education/students/" target="_blank" rel="noreferrer noopener">https://www.3ds.com/zh/edu/education/students/</a>)</li>



<li>适用场景：结构力学仿真、非线性分析、多物理场耦合、工业产品性能验证</li>



<li>配套教程：Abaqus 学生版申请与安装 、材料本构模型设置 、仿真结果后处理 </li>
</ul>



<h4 class="wp-block-heading">2. HyperMesh（专业 CAE 前处理平台）</h4>



<ul class="wp-block-list">
<li>官方网站：Altair HyperMesh 官方主页 (<a href="https://www.altair.com/hypermesh" target="_blank" rel="noreferrer noopener">https://www.altair.com/hypermesh</a>)</li>



<li>教育版申请：Altair 学生版软件申请 (<a href="https://www.altair.com/academic/students" target="_blank" rel="noreferrer noopener">https://www.altair.com/academic/students</a>)</li>



<li>适用场景：CAE 仿真网格划分、几何清理修复、多求解器接口适配、复杂模型预处理</li>



<li>配套教程：HyperMesh 网格划分实操 、几何模型修复技巧 、求解器接口配置 </li>
</ul>



<h4 class="wp-block-heading">3. CST Studio Suite（电磁仿真专业工具）</h4>



<ul class="wp-block-list">
<li>官方网站：CST Studio Suite 官方主页 (<a href="https://www.3ds.com/products/simulia/cst-studio-suite/" target="_blank" rel="noreferrer noopener">https://www.3ds.com/products/simulia/cst-studio-suite/</a>)</li>



<li>学习版下载：CST Studio Suite LE 免费学习版 (<a href="https://www.3ds.com/ja/edu/education/students/solutions/cst-le" target="_blank" rel="noreferrer noopener">https://www.3ds.com/ja/edu/education/students/solutions/cst-le</a>)</li>



<li>适用场景：电磁场仿真、天线设计、射频电路分析、电磁兼容性 (EMC) 测试、多物理场耦合仿真</li>



<li>配套教程：CST 学习版安装与激活、天线仿真入门 、EMC 分析流程 </li>
</ul>



<h4 class="wp-block-heading">4. Ansys Workbench Student（多物理场仿真集成平台）</h4>



<ul class="wp-block-list">
<li>官方网站：Ansys Workbench 产品主页 (<a href="https://www.ansys.com/zh-cn/products/ansys-workbench" target="_blank" rel="noreferrer noopener">https://www.ansys.com/zh-cn/products/ansys-workbench</a>)</li>



<li>学生版下载：Ansys Student 官方下载页 (<a href="https://www.ansys.com/zh-cn/academic/students/ansys-student" target="_blank" rel="noreferrer noopener">https://www.ansys.com/zh-cn/academic/students/ansys-student</a>)</li>



<li>适用场景：结构力学、流体动力学、热分析、多物理场耦合仿真、工程优化设计</li>



<li>配套教程：Workbench 学生版安装配置 、仿真流程搭建 、参数化优化设计 </li>
</ul>



<h4 class="wp-block-heading">5. Ansys HFSS（3D 高频电磁仿真软件）</h4>



<ul class="wp-block-list">
<li>官方网站：Ansys HFSS 产品主页 (<a href="https://www.ansys.com/zh-cn/products/electronics/ansys-hfss" target="_blank" rel="noreferrer noopener">https://www.ansys.com/zh-cn/products/electronics/ansys-hfss</a>)</li>



<li>学生版下载：Ansys Electronics Desktop Student 官方下载 (<a href="https://www.ansys.com/zh-cn/academic/students/ansys-electronics-desktop-student" target="_blank" rel="noreferrer noopener">https://www.ansys.com/zh-cn/academic/students/ansys-electronics-desktop-student</a>)</li>



<li>适用场景：天线设计、射频 / 微波组件仿真、高速互连分析、连接器电磁性能验证、电磁兼容性 (EMC) 测试</li>



<li>配套教程：HFSS 学生版安装激活 、天线仿真基础、连接器 EMI 分析 </li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">四、通用运维开源工具（官方正版）</h3>



<h4 class="wp-block-heading">1. Docker（开源容器）</h4>



<ul class="wp-block-list">
<li>官方下载：Docker 官方下载 (<a href="https://www.docker.com/get-started/" target="_blank" rel="noreferrer noopener">https://www.docker.com/get-started/</a>)</li>



<li>适用场景：服务容器化部署、环境隔离</li>



<li>配套教程：Docker 安装与镜像拉取、容器自启设置 </li>
</ul>



<ul class="wp-block-list">
<li></li>
</ul>



<h4 class="wp-block-heading">2. PuTTY（开源远程连接）</h4>



<ul class="wp-block-list">
<li>官方下载：PuTTY 官方下载 (<a href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html" target="_blank" rel="noreferrer noopener">https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html</a>)</li>



<li>适用场景：服务器 SSH 远程连接、命令行调试</li>



<li>配套教程：SSH 连接配置 、密钥登录设置 </li>
</ul>



<h4 class="wp-block-heading">3. FinalShell（全能远程运维工具）</h4>



<ul class="wp-block-list">
<li>官方官网：FinalShell 官方网站 (<a href="https://www.hostbuf.com/" target="_blank" rel="noreferrer noopener">https://www.hostbuf.com/</a>)</li>



<li>官方下载：FinalShell 最新版下载地址 (<a href="https://www.hostbuf.com/t/988" target="_blank" rel="noreferrer noopener">https://www.hostbuf.com/t/988</a>)</li>



<li>适用场景：跨平台 SSH 远程连接、SFTP 文件管理、服务器硬件监控、内网加速</li>



<li>配套教程：FinalShell 快速上手基础配置 </li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">📌 工具使用须知</h3>



<ol class="wp-block-list">
<li>本站仅提供官方正版 / 开源 / 正规教育试用工具链接，不提供破解补丁。</li>



<li>商业用途请务必购买软件官方授权，遵守相关软件版权协议与开源协议，合规使用工具。</li>



<li>部分试用版 / 学生版有使用权限与场景限制，安装前请仔细阅读官方许可协议。</li>



<li>本站不对第三方官方工具的使用风险、版本兼容性承担责任，实操前请做好数据备份。</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">⚖️ 免责声明</h3>



<ol class="wp-block-list">
<li>本页面所有工具链接均来源于软件官方公开渠道，仅用于技术交流、学习研究，无任何商业盈利目的。</li>



<li>若部分工具链接涉及版权争议、官方下架，请通过网站留言或联系邮箱反馈，本站会第一时间核实并删除相关链接。</li>



<li>用户自行下载、安装、使用工具所产生的一切法律责任与风险，由用户自行承担。</li>



<li>本站配套教程仅为技术实操分享，不代表官方指导，仅供学习参考。</li>
</ol>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://xrange.haoyong8.top/xrange-toollist/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>个人开发者零门槛接入阿里云短信验证码教程</title>
		<link>https://xrange.haoyong8.top/aliyun-maillogin/</link>
					<comments>https://xrange.haoyong8.top/aliyun-maillogin/#respond</comments>
		
		<dc:creator><![CDATA[轩然 拙见]]></dc:creator>
		<pubDate>Sat, 25 Apr 2026 01:35:20 +0000</pubDate>
				<category><![CDATA[Wordpress教程]]></category>
		<guid isPermaLink="false">https://xrange.haoyong8.top/?p=1686</guid>

					<description><![CDATA[随着政策缩紧，个人网站创建手机验证码登录越来越困难，本文基于WordPress + GeneratePress 主题 + 宝塔面板环境，完整记录个人开发者无企业资质接入阿里云号码认证服务来实现云短信验证码的调试全过程、接口逻辑、踩坑解决方案、最终可落地代码，作为技术留存文档，可直接使用。]]></description>
										<content:encoded><![CDATA[
<p>摘要：随着政策缩紧，个人网站创建手机验证码登录越来越困难，本文基于<strong>WordPress + GeneratePress 主题 + 宝塔面板</strong>环境，完整记录个人开发者无企业资质接入阿里云号码认证服务来实现云短信验证码的<strong>调试全过程、接口逻辑、踩坑解决方案、最终可落地代码</strong>，作为技术留存文档，可直接使用。</p>



<h3 class="wp-block-heading">文档信息: 当前</h3>



<ul class="wp-block-list">
<li><strong>适用人群</strong>：零基础小白、个人开发者、无企业资质创业者</li>



<li><strong>运行环境</strong>：WordPress + GeneratePress 主题 + 宝塔面板 + BuddyPress 社区插件</li>



<li><strong>核心目标</strong>：实现网站<strong>手机号验证码注册 / 登录</strong>，零付费、零审核、一键部署, 已在轩然阁 (haoyong8.top) 稳定上线运行</li>



<li><strong>文档价值</strong>：全流程复盘、代码逐行解析、绝对路径指引、踩坑全记录，复制粘贴即可使用。</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>一、前期准备（必须完成，3 分钟搞定）</strong></h4>



<h4 class="wp-block-heading">1. 阿里云服务开通（个人实名即可，无需企业资质）</h4>



<ol class="wp-block-list">
<li>注册阿里云账号 → 完成<strong>个人实名认证</strong></li>



<li>开通【号码认证服务】（搜索产品名）→ 自动获得<strong>100 条免费短信额度</strong></li>



<li>创建 <code>AccessKey ID</code> 和 <code>AccessKey Secret</code>（阿里云控制台右上角头像→AccessKey 管理）</li>
</ol>



<h4 class="wp-block-heading">2. 宝塔面板安全配置（核心：accesskey密钥不写在代码里）</h4>



<ol class="wp-block-list">
<li>打开宝塔 → 网站 → 你的网站 → <strong>设置</strong> → <strong>配置文件</strong></li>



<li>添加环境变量（永久生效，安全不泄露）</li>
</ol>



<pre class="wp-block-preformatted"># 阿里云短信认证密钥（宝塔配置，代码直接调用）<br>setenv ALIBABA_CLOUD_ACCESS_KEY_ID "你的AccessKey ID"<br>setenv ALIBABA_CLOUD_ACCESS_KEY_SECRET "你的AccessKey Secret"</pre>



<ol class="wp-block-list">
<li>重启 nginx，完成配置</li>
</ol>



<h4 class="wp-block-heading">3. 基础环境确认</h4>



<ul class="wp-block-list">
<li>已安装 WordPress</li>



<li>已启用 GeneratePress 主题</li>



<li>已安装 BuddyPress 社区插件（注册 / 登录功能）</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>二、核心服务选型深度分析（为什么选这个服务？）</strong></h4>



<h4 class="wp-block-heading">1. 个人开发者的唯一选择：阿里云号码认证服务，注意不是短信服务，笔者开始购买了短信服务验证无法使用，退款又重新开通的号码认证服务。</h4>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th class="has-text-align-center" data-align="center">对比项</th><th class="has-text-align-center" data-align="center">普通短信服务（企业专用）</th><th class="has-text-align-center" data-align="center">号码认证服务（个人专用）</th><th class="has-text-align-center" data-align="center">选择原因</th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">资质要求</td><td class="has-text-align-center" data-align="center">必须企业营业执照</td><td class="has-text-align-center" data-align="center">仅个人实名</td><td class="has-text-align-center" data-align="center">小白无企业资质，只能用这个</td></tr><tr><td class="has-text-align-center" data-align="center">签名 / 模板</td><td class="has-text-align-center" data-align="center">人工审核 7 天，通过率低</td><td class="has-text-align-center" data-align="center">系统自动赠送，免审核</td><td class="has-text-align-center" data-align="center">开箱即用，无需等待</td></tr><tr><td class="has-text-align-center" data-align="center">免费额度</td><td class="has-text-align-center" data-align="center">无</td><td class="has-text-align-center" data-align="center">新用户 100 条 / 12 个月</td><td class="has-text-align-center" data-align="center">零成本测试使用</td></tr><tr><td class="has-text-align-center" data-align="center">计费规则</td><td class="has-text-align-center" data-align="center">提交就扣费</td><td class="has-text-align-center" data-align="center">发送成功才扣费</td><td class="has-text-align-center" data-align="center">调试不花钱，失败不计费</td></tr><tr><td class="has-text-align-center" data-align="center">接口域名</td><td class="has-text-align-center" data-align="center"><a href="https://dysmsapi.aliyuncs.com">dysmsapi.aliyuncs.com</a></td><td class="has-text-align-center" data-align="center"><a href="https://dypnsapi.aliyuncs.com">dypnsapi.aliyuncs.com</a></td><td class="has-text-align-center" data-align="center">个人专用接口，无报错</td></tr></tbody></table></figure>



<h4 class="wp-block-heading">2. 最终结论</h4>



<p><strong>个人开发者唯一正确选择：阿里云号码认证服务（短信认证）</strong></p>



<p>接口：<code>SendSmsVerifyCode</code>(发送) + <code>CheckSmsVerifyCode</code>(校验)</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>三、整体业务逻辑流程（小白秒懂）</strong></h4>



<p>用户打开注册页前端显示手机号+验证码表单用户输入手机号，点击获取验证码前端校验手机号格式调用WordPress后端接口后端请求阿里云官方接口阿里云自动生成并发送短信用户输入验证码，提交注册后端请求阿里云校验接口校验通过→注册成功；失败→提示错误</p>



<pre class="wp-block-preformatted">flowchart TD<br> &nbsp;  A[用户打开注册页] --&gt; B[前端显示手机号+验证码表单]<br> &nbsp;  B --&gt; C[用户输入手机号，点击获取验证码]<br> &nbsp;  C --&gt; D[前端校验手机号格式]<br> &nbsp;  D --&gt; E[调用WordPress后端接口]<br> &nbsp;  E --&gt; F[后端请求阿里云官方接口]<br> &nbsp;  F --&gt; G[阿里云自动生成并发送短信]<br> &nbsp;  G --&gt; H[用户输入验证码，提交注册]<br> &nbsp;  H --&gt; I[后端请求阿里云校验接口]<br> &nbsp;  I --&gt; J[校验通过→注册成功；失败→提示错误]</pre>



<p>用户打开注册页前端显示手机号+验证码表单用户输入手机号，点击获取验证码前端校验手机号格式调用WordPress后端接口后端请求阿里云官方接口阿里云自动生成并发送短信用户输入验证码，提交注册后端请求阿里云校验接口校验通过→注册成功；失败→提示错误</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>四、代码编写思路与逐段解析（为什么这么写？）</strong></h4>



<p>本套代码<strong>严格按照阿里云官方规范 + WordPress 安全规范</strong>编写，杜绝语法错误、站点崩溃、接口报错。</p>



<h4 class="wp-block-heading">代码整体结构（7 大模块，各司其职）</h4>



<ol class="wp-block-list">
<li><strong>基础配置</strong>：定义固定参数，调用宝塔密钥</li>



<li><strong>签名算法</strong>：阿里云强制要求，鉴权专用（不可修改）</li>



<li><strong>发送验证码函数</strong>：调用阿里云发送接口</li>



<li><strong>校验验证码函数</strong>：调用阿里云校验接口</li>



<li><strong>前端表单</strong>：注册页展示输入框（无语法错误写法）</li>



<li><strong>REST 接口</strong>：WordPress 提供后端调用入口</li>



<li><strong>注册校验</strong>：绑定 WordPress 注册流程，验证验证码</li>
</ol>



<h4 class="wp-block-heading">关键编写原则（小白必看）</h4>



<ol class="wp-block-list">
<li><strong>密钥分离</strong>：AK/SK 放宝塔，不写在主题文件（防泄露、防重复定义报错）</li>



<li><strong>无混写语法</strong>：用 <code>echo &lt;&lt;&lt;HTML</code> 输出前端代码，避免 <code>?&gt;</code> 切标签导致的致命错误</li>



<li><strong>系统生成验证码</strong>：不自己写随机数，阿里云生成保证校验一致</li>



<li><strong>双重校验</strong>：前端 + 后端都校验手机号，防恶意请求</li>



<li><strong>最小改动</strong>：只改参数，不改核心算法，100% 兼容官方接口</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>五、【小白专属】代码粘贴绝对路径 + 具体位置</strong></h4>



<h4 class="wp-block-heading">1. 绝对路径（宝塔面板可视化操作）</h4>



<ol class="wp-block-list">
<li>登录 <strong>宝塔面板</strong></li>



<li>点击左侧 → <strong>网站</strong></li>



<li>找到你的网站 → 点击 <strong>根目录</strong></li>



<li>依次打开文件夹：</li>
</ol>



<pre class="wp-block-preformatted">wp-content → themes → generatepress → functions.php</pre>



<p>✅ <strong>最终文件路径</strong>：</p>



<pre class="wp-block-preformatted">/www/wwwroot/你的网站域名/wp-content/themes/generatepress/functions.php</pre>



<h4 class="wp-block-heading">2. 具体粘贴位置（零错误）</h4>



<ol class="wp-block-list">
<li>用宝塔<strong>文件编辑器</strong>打开 <code>functions.php</code></li>



<li>把页面<strong>拉到最底部</strong></li>



<li><strong>直接粘贴全部代码</strong>（如果文件最后有 <code>?&gt;</code>，粘贴在它的上方；没有就直接粘最后）</li>



<li>点击 <strong>保存</strong> → 完成部署</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>六、完整可直接复制的最终代码（无报错、稳定版）</strong></h4>



<p>代码<strong>严格按照阿里云官方规范 + WordPress 安全规范</strong>编写，杜绝语法错误、站点崩溃、接口报错，<strong>实测无任何兼容问题</strong>。注意更换你自已的ACCESS_KEY_ID和ACCESS_KEY_SECRET</p>



<pre class="wp-block-preformatted">// ==============================================<br>// 阿里云个人开发者短信认证（最终无错版）<br>// 宝塔里需要定义：ALIYUN_ACCESS_KEY_ID / ALIYUN_ACCESS_KEY_SECRET;<br>// 定义路径文件/www/wwwroot/网站名称/wp-config.php, 在/* That's all, stop editing! Happy publishing. */前面输入<br>// 阿里云短信服务配置<br>//define( 'ALIYUN_ACCESS_KEY_ID', &nbsp; &nbsp; '你的ACCESS_KEY' );<br>//define( 'ALIYUN_ACCESS_KEY_SECRET', '你的ACCESS_KEY_SECRET' );<br>// ==============================================<br>​<br>// 仅配置必填项<br>define('ALIYUN_SIGN_NAME', '速通互联验证码');<br>define('ALIYUN_ENDPOINT', 'dypnsapi.aliyuncs.com');<br>​<br>// 阿里云官方签名算法<br>function aliyun_sign($params, $access_secret) {<br> &nbsp;  ksort($params);<br> &nbsp;  $query_str = '';<br> &nbsp;  foreach ($params as $key =&gt; $value) {<br> &nbsp; &nbsp; &nbsp;  $query_str .= '&amp;' . rawurlencode($key) . '=' . rawurlencode($value);<br> &nbsp;  }<br> &nbsp;  $query_str = ltrim($query_str, '&amp;');<br> &nbsp;  $string_to_sign = 'GET&amp;%2F&amp;' . rawurlencode($query_str);<br> &nbsp;  return base64_encode(hash_hmac('sha1', $string_to_sign, $access_secret . '&amp;', true));<br>}<br>​<br>// ====================== 发送验证码（严格按你给的参数+无语法错误） ======================<br>function aliyun_send_sms_verify_code($mobile) {<br> &nbsp;  $params = [<br> &nbsp; &nbsp; &nbsp;  'Action' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; 'SendSmsVerifyCode',<br> &nbsp; &nbsp; &nbsp;  'Version' &nbsp; &nbsp; &nbsp; &nbsp;  =&gt; '2017-05-25',<br> &nbsp; &nbsp; &nbsp;  'PhoneNumber' &nbsp; &nbsp;  =&gt; $mobile,<br>​<br> &nbsp; &nbsp; &nbsp;  // 赠送签名配置<br> &nbsp; &nbsp; &nbsp;  'SignName' &nbsp; &nbsp; &nbsp; &nbsp; =&gt; ALIYUN_SIGN_NAME,<br>​<br> &nbsp; &nbsp; &nbsp;  // 赠送模板配置<br> &nbsp; &nbsp; &nbsp;  'TemplateCode' &nbsp; &nbsp; =&gt; '100001',<br>​<br> &nbsp; &nbsp; &nbsp;  // 与OpenAPI Explorer一致<br> &nbsp; &nbsp; &nbsp;  'TemplateParam' &nbsp;  =&gt; '{"code":"##code##","min":"5"}',<br>​<br> &nbsp; &nbsp; &nbsp;  // 模板匹配参数<br> &nbsp; &nbsp; &nbsp;  'CodeType' &nbsp; &nbsp; &nbsp; &nbsp; =&gt; 1,<br> &nbsp; &nbsp; &nbsp;  'CodeLength' &nbsp; &nbsp; &nbsp; =&gt; 6,<br> &nbsp; &nbsp; &nbsp;  'ValidTime' &nbsp; &nbsp; &nbsp;  =&gt; 300,<br> &nbsp; &nbsp; &nbsp;  'Interval' &nbsp; &nbsp; &nbsp; &nbsp; =&gt; 60,<br>​<br> &nbsp; &nbsp; &nbsp;  'AccessKeyId' &nbsp; &nbsp;  =&gt; ALIYUN_ACCESS_KEY_ID,<br> &nbsp; &nbsp; &nbsp;  'Timestamp' &nbsp; &nbsp; &nbsp;  =&gt; gmdate('Y-m-d\TH:i:s\Z'),<br> &nbsp; &nbsp; &nbsp;  'SignatureMethod'  =&gt; 'HMAC-SHA1',<br> &nbsp; &nbsp; &nbsp;  'SignatureVersion' =&gt; '1.0',<br> &nbsp; &nbsp; &nbsp;  'SignatureNonce' &nbsp; =&gt; uniqid(),<br> &nbsp; &nbsp; &nbsp;  'Format' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; 'JSON',<br> &nbsp;  ];<br>​<br> &nbsp;  $params['Signature'] = aliyun_sign($params, ALIYUN_ACCESS_KEY_SECRET);<br> &nbsp;  $url = 'https://'.ALIYUN_ENDPOINT.'/?'.http_build_query($params);<br>​<br> &nbsp;  $ch = curl_init();<br> &nbsp;  // 修复致命错误：curl_setopt_array<br> &nbsp;  curl_setopt_array($ch, [<br> &nbsp; &nbsp; &nbsp;  CURLOPT_URL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  =&gt; $url,<br> &nbsp; &nbsp; &nbsp;  CURLOPT_RETURNTRANSFER =&gt; true,<br> &nbsp; &nbsp; &nbsp;  CURLOPT_SSL_VERIFYPEER =&gt; false,<br> &nbsp; &nbsp; &nbsp;  CURLOPT_TIMEOUT &nbsp; &nbsp; &nbsp;  =&gt; 10,<br> &nbsp;  ]);<br> &nbsp;  $response = curl_exec($ch);<br> &nbsp;  $error = curl_error($ch);<br> &nbsp;  curl_close($ch);<br>​<br> &nbsp;  if ($error) return ['Code' =&gt; 'CURL_ERROR', 'Message' =&gt; $error];<br> &nbsp;  return json_decode($response, true);<br>}<br>​<br>// 校验验证码（官方标准）<br>function aliyun_check_sms_verify_code($mobile, $verify_code) {<br> &nbsp;  $params = [<br> &nbsp; &nbsp; &nbsp;  'Action' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; 'CheckSmsVerifyCode',<br> &nbsp; &nbsp; &nbsp;  'Version' &nbsp; &nbsp; &nbsp; &nbsp;  =&gt; '2017-05-25',<br> &nbsp; &nbsp; &nbsp;  'PhoneNumber' &nbsp; &nbsp;  =&gt; $mobile,<br> &nbsp; &nbsp; &nbsp;  'VerifyCode' &nbsp; &nbsp; &nbsp; =&gt; (string)$verify_code,<br> &nbsp; &nbsp; &nbsp;  'CountryCode' &nbsp; &nbsp;  =&gt; 'cn',<br> &nbsp; &nbsp; &nbsp;  'AccessKeyId' &nbsp; &nbsp;  =&gt; ALIYUN_ACCESS_KEY_ID,<br> &nbsp; &nbsp; &nbsp;  'Timestamp' &nbsp; &nbsp; &nbsp;  =&gt; gmdate('Y-m-d\TH:i:s\Z'),<br> &nbsp; &nbsp; &nbsp;  'SignatureMethod'  =&gt; 'HMAC-SHA1',<br> &nbsp; &nbsp; &nbsp;  'SignatureVersion' =&gt; '1.0',<br> &nbsp; &nbsp; &nbsp;  'SignatureNonce' &nbsp; =&gt; uniqid(),<br> &nbsp; &nbsp; &nbsp;  'Format' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; 'JSON',<br> &nbsp;  ];<br>​<br> &nbsp;  $params['Signature'] = aliyun_sign($params, ALIYUN_ACCESS_KEY_SECRET);<br> &nbsp;  $url = 'https://'.ALIYUN_ENDPOINT.'/?'.http_build_query($params);<br>​<br> &nbsp;  $ch = curl_init();<br> &nbsp;  // 修复致命错误：curl_setopt_array<br> &nbsp;  curl_setopt_array($ch, [<br> &nbsp; &nbsp; &nbsp;  CURLOPT_RETURNTRANSFER =&gt; true,<br> &nbsp; &nbsp; &nbsp;  CURLOPT_SSL_VERIFYPEER =&gt; false,<br> &nbsp; &nbsp; &nbsp;  CURLOPT_TIMEOUT &nbsp; &nbsp; &nbsp;  =&gt; 10,<br> &nbsp;  ]);<br> &nbsp;  $response = curl_exec($ch);<br> &nbsp;  curl_close($ch);<br> &nbsp;  return json_decode($response, true);<br>}<br>​<br>// 前端表单<br>add_action('bp_before_registration_submit_buttons', function () {<br> &nbsp;  $api_url = esc_url(rest_url('aliyun/send-sms'));<br> &nbsp;  echo &lt;&lt;&lt;HTML<br> &nbsp;  &lt;div class="editfield"&gt;<br> &nbsp; &nbsp; &nbsp;  &lt;label&gt;手机号&lt;/label&gt;<br> &nbsp; &nbsp; &nbsp;  &lt;input type="tel" id="mobile" name="mobile" required&gt;<br> &nbsp;  &lt;/div&gt;<br> &nbsp;  &lt;div class="editfield"&gt;<br> &nbsp; &nbsp; &nbsp;  &lt;label&gt;验证码&lt;/label&gt;<br> &nbsp; &nbsp; &nbsp;  &lt;div style="display:flex;gap:8px;"&gt;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type="text" id="verify_code" name="verify_code" maxlength="6" required&gt;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;button type="button" id="send_sms"&gt;获取验证码&lt;/button&gt;<br> &nbsp; &nbsp; &nbsp;  &lt;/div&gt;<br> &nbsp; &nbsp; &nbsp;  &lt;p id="sms_tip" style="font-size:12px;margin:5px 0;color:red;"&gt;&lt;/p&gt;<br> &nbsp;  &lt;/div&gt;<br>​<br> &nbsp;  &lt;script&gt;<br> &nbsp;  let isSending = false;<br> &nbsp;  document.getElementById('send_sms').onclick = async function () {<br> &nbsp; &nbsp; &nbsp;  const mobile = document.getElementById('mobile').value.trim();<br> &nbsp; &nbsp; &nbsp;  const btn = this;<br> &nbsp; &nbsp; &nbsp;  const tip = document.getElementById('sms_tip');<br> &nbsp; &nbsp; &nbsp;  tip.innerText = '';<br>​<br> &nbsp; &nbsp; &nbsp;  if (!/^1[3-9]\d{9}$/.test(mobile)) { tip.innerText = '手机号格式错误'; return; }<br> &nbsp; &nbsp; &nbsp;  if (isSending) return;<br>​<br> &nbsp; &nbsp; &nbsp;  isSending = true;<br> &nbsp; &nbsp; &nbsp;  btn.disabled = true;<br> &nbsp; &nbsp; &nbsp;  let timer = 60;<br> &nbsp; &nbsp; &nbsp;  btn.innerText = timer + '秒';<br> &nbsp; &nbsp; &nbsp;  const countDown = setInterval(() =&gt; {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  timer--; btn.innerText = timer + '秒';<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (timer &lt;= 0) { clearInterval(countDown); btn.innerText = '获取验证码'; btn.disabled = false; isSending = false; }<br> &nbsp; &nbsp; &nbsp;  }, 1000);<br>​<br> &nbsp; &nbsp; &nbsp;  try {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  const res = await fetch('$api_url', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ mobile }) });<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  const data = await res.json();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (data.success) { tip.innerText = '发送成功'; tip.style.color = 'green'; }<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  else { tip.innerText = data.message; tip.style.color = 'red'; clearInterval(countDown); btn.innerText = '获取验证码'; btn.disabled = false; isSending = false; }<br> &nbsp; &nbsp; &nbsp;  } catch (e) { tip.innerText = '网络异常'; clearInterval(countDown); btn.innerText = '获取验证码'; btn.disabled = false; isSending = false; }<br> &nbsp;  };<br> &nbsp;  &lt;/script&gt;<br>HTML;<br>});<br>​<br>// 发送接口<br>add_action('rest_api_init', function () {<br> &nbsp;  register_rest_route('aliyun', '/send-sms', [<br> &nbsp; &nbsp; &nbsp;  'methods' =&gt; 'POST', 'permission_callback' =&gt; '__return_true',<br> &nbsp; &nbsp; &nbsp;  'callback' =&gt; function ($request) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $mobile = sanitize_text_field($request-&gt;get_param('mobile'));<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!preg_match('/^1[3-9]\d{9}$/', $mobile)) return ['success' =&gt; false, 'message' =&gt; '手机号格式错误'];<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $result = aliyun_send_sms_verify_code($mobile);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  return (isset($result['Code']) &amp;&amp; $result['Code'] === 'OK') ? ['success' =&gt; true] : ['success' =&gt; false, 'message' =&gt; $result['Message'] ?? '发送失败'];<br> &nbsp; &nbsp; &nbsp;  }<br> &nbsp;  ]);<br>});<br>​<br>// 注册校验<br>add_action('bp_signup_validate', function () {<br> &nbsp;  if (!isset($_POST['mobile']) || !isset($_POST['verify_code'])) { bp_core_add_message('手机号/验证码不能为空', 'error'); return; }<br> &nbsp;  $result = aliyun_check_sms_verify_code($_POST['mobile'], $_POST['verify_code']);<br> &nbsp;  if (!isset($result['Code']) || $result['Code'] !== 'OK') bp_core_add_message($result['Message'] ?? '验证码错误', 'error');<br>});<br>​<br>/**<br> * 文章内容半隐藏 + 仅登录解锁 + 防复制 + 美化提示（GeneratePress专用）<br> */<br>​<br>// 1. 内容隐藏逻辑（未登录隐藏后半部分，登录直接看全文）<br>add_filter( 'the_content', 'custom_hide_content_login_only', 10 );<br>function custom_hide_content_login_only( $content ) {<br> &nbsp;  if ( ! is_single() || ! is_singular( 'post' ) ) {<br> &nbsp; &nbsp; &nbsp;  return $content;<br> &nbsp;  }<br>​<br> &nbsp;  // 登录用户直接显示全文<br> &nbsp;  if ( is_user_logged_in() ) {<br> &nbsp; &nbsp; &nbsp;  return $content;<br> &nbsp;  }<br>​<br> &nbsp;  // 可修改：公开内容比例（40表示前40%内容公开）<br> &nbsp;  $open_percent = 40;<br>​<br> &nbsp;  // 按字数分割内容，保留段落格式<br> &nbsp;  $content_clean = wp_strip_all_tags( $content );<br> &nbsp;  $split_length = round( mb_strlen( $content_clean ) * $open_percent / 100 );<br> &nbsp;  $open_content = mb_substr( $content_clean, 0, $split_length );<br> &nbsp;  $open_content = wpautop( $open_content );<br>​<br> &nbsp;  // 美化提示框 + 修复登录链接（彻底解决nonce_failure）<br> &nbsp;  $lock_html = '<br> &nbsp;  &lt;style&gt;<br> &nbsp;  .custom-content-lock {<br> &nbsp; &nbsp; &nbsp;  border: 1px solid #4158D0;<br> &nbsp; &nbsp; &nbsp;  background: #f0f4ff;<br> &nbsp; &nbsp; &nbsp;  padding: 22px;<br> &nbsp; &nbsp; &nbsp;  margin: 25px 0;<br> &nbsp; &nbsp; &nbsp;  border-radius: 10px;<br> &nbsp; &nbsp; &nbsp;  text-align: center;<br> &nbsp;  }<br> &nbsp;  .custom-content-lock p {<br> &nbsp; &nbsp; &nbsp;  margin: 0;<br> &nbsp; &nbsp; &nbsp;  font-size: 19px !important;<br> &nbsp; &nbsp; &nbsp;  line-height: 1.7;<br> &nbsp; &nbsp; &nbsp;  color: #2d3794;<br> &nbsp; &nbsp; &nbsp;  font-weight: 600;<br> &nbsp;  }<br> &nbsp;  .custom-content-lock a {<br> &nbsp; &nbsp; &nbsp;  color: #4158D0;<br> &nbsp; &nbsp; &nbsp;  text-decoration: underline;<br> &nbsp; &nbsp; &nbsp;  font-weight: 700;<br> &nbsp;  }<br> &nbsp;  .custom-content-lock a:hover {<br> &nbsp; &nbsp; &nbsp;  color: #222;<br> &nbsp; &nbsp; &nbsp;  text-decoration: none;<br> &nbsp;  }<br> &nbsp;  &lt;/style&gt;<br> &nbsp;  &lt;div class="custom-content-lock"&gt;<br> &nbsp; &nbsp; &nbsp;  &lt;p&gt;🔐 此内容需登录后查看完整全文，请 &lt;a href="/wp-login.php"&gt;登录账号&lt;/a&gt; 后浏览&lt;/p&gt;<br> &nbsp;  &lt;/div&gt;';<br>​<br> &nbsp;  // 组合输出公开内容+提示框<br> &nbsp;  return $open_content . $lock_html;<br>}<br>​<br>// 2. 未登录用户防复制（禁用右键+Ctrl+C+文本选择）<br>add_action( 'wp_head', 'custom_disable_copy_for_guest', 99 );<br>function custom_disable_copy_for_guest() {<br> &nbsp;  if ( ! is_single() || is_user_logged_in() ) {<br> &nbsp; &nbsp; &nbsp;  return;<br> &nbsp;  }<br> &nbsp;  echo '<br> &nbsp;  &lt;style&gt;<br> &nbsp;  .single-post .entry-content {<br> &nbsp; &nbsp; &nbsp;  user-select: none !important;<br> &nbsp; &nbsp; &nbsp;  -webkit-user-select: none !important;<br> &nbsp; &nbsp; &nbsp;  -moz-user-select: none !important;<br> &nbsp; &nbsp; &nbsp;  -ms-user-select: none !important;<br> &nbsp;  }<br> &nbsp;  &lt;/style&gt;<br> &nbsp;  &lt;script&gt;<br> &nbsp;  document.addEventListener("contextmenu", e =&gt; e.preventDefault());<br> &nbsp;  document.addEventListener("keydown", e =&gt; {<br> &nbsp; &nbsp; &nbsp;  if ((e.ctrlKey || e.metaKey) &amp;&amp; (e.key === "c" || e.key === "C")) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  e.preventDefault();<br> &nbsp; &nbsp; &nbsp;  }<br> &nbsp;  });<br> &nbsp;  &lt;/script&gt;';<br>}</pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>七、调试踩坑全记录（所有报错 + 解决方案）</strong></h4>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th class="has-text-align-center" data-align="center">报错提示</th><th class="has-text-align-center" data-align="center">报错原因</th><th class="has-text-align-center" data-align="center">解决方案</th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">语法错误，unexpected &#8220;&lt;&#8220;</td><td class="has-text-align-center" data-align="center">functions.php 混写 PHP/HTML</td><td class="has-text-align-center" data-align="center">使用 echo &lt;&lt;&lt;HTML 安全写法</td></tr><tr><td class="has-text-align-center" data-align="center">站点致命错误</td><td class="has-text-align-center" data-align="center">curl_set_array 拼写错误</td><td class="has-text-align-center" data-align="center">改为正确函数 curl_setopt_array</td></tr><tr><td class="has-text-align-center" data-align="center">模板内容与参数不匹配</td><td class="has-text-align-center" data-align="center">TemplateParam 缺少 min 字段</td><td class="has-text-align-center" data-align="center">固定写为 {&#8220;code&#8221;:&#8221;##code##&#8221;,&#8221;min&#8221;:&#8221;5&#8243;}</td></tr><tr><td class="has-text-align-center" data-align="center">密钥重复定义</td><td class="has-text-align-center" data-align="center">代码和宝塔都定义了 AK/SK</td><td class="has-text-align-center" data-align="center">代码删除定义，仅调用宝塔变量</td></tr><tr><td class="has-text-align-center" data-align="center">发送失败 / 无短信</td><td class="has-text-align-center" data-align="center">接口域名错误</td><td class="has-text-align-center" data-align="center">固定为<a href="https://dypnsapi.aliyuncs.com">dypnsapi.aliyuncs.com</a></td></tr></tbody></table></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>八、为什么不付费也能发送短信？（官方免费政策）</strong></h4>



<ol class="wp-block-list">
<li><strong>新用户专属福利</strong>：个人实名账号自动获得 <strong>100 条免费短信额度</strong>，有效期 12 个月</li>



<li><strong>失败不计费</strong>：调试、手机号错误、频率超限等失败场景，<strong>完全不扣费</strong></li>



<li><strong>校验接口免费</strong>：验证码校验功能永久免费，仅发送接口计费</li>



<li><strong>个人专属</strong>：号码认证服务专为个人开发者设计，零门槛使用</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>九、安全规范与后续维护</strong></h4>



<ol class="wp-block-list">
<li><strong>密钥绝对不能写在代码里</strong>，必须放宝塔环境变量</li>



<li>免费额度用完后，可购买低价套餐（3.99 元 / 100 条）</li>



<li>不要修改签名算法、接口参数，严格使用官方配置</li>



<li>前端倒计时 + 后端频率限制，防止恶意刷短信</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>十、最终成功验证步骤</strong></h4>



<ol class="wp-block-list">
<li>保存 functions.php 文件</li>



<li>打开网站注册页</li>



<li>输入手机号 → 点击获取验证码</li>



<li>手机收到短信</li>



<li>输入验证码 → 提交注册</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h4 class="wp-block-heading"><strong>十一、总结</strong></h4>



<p>本套方案是<strong>个人开发者接入短信验证码的最优解</strong>，全程实测验证：</p>



<p>✅ 零企业资质 ✅ 零审核 ✅ 零成本 ✅ 零语法错误</p>



<p>✅ 复制粘贴即用 ✅ 小白友好 ✅ 永久稳定复用</p>



<p>所有代码、路径、逻辑均经过实战调试，直接按照文档操作，100% 成功！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://xrange.haoyong8.top/aliyun-maillogin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ansys2024仿真软件安装教程</title>
		<link>https://xrange.haoyong8.top/ansys2024-setup/</link>
					<comments>https://xrange.haoyong8.top/ansys2024-setup/#comments</comments>
		
		<dc:creator><![CDATA[轩然 拙见]]></dc:creator>
		<pubDate>Sun, 19 Apr 2026 02:51:13 +0000</pubDate>
				<category><![CDATA[工具分类]]></category>
		<guid isPermaLink="false">https://xrange.haoyong8.top/?p=1608</guid>

					<description><![CDATA[Ansys2024软件安装教程，适配新手小白，助力快速上手。该版本适配Windows11系统，经实测可完美运行、稳定性拉满；搭载AI增强功能与高效GPU求解器，仿真速度大幅提升，还优化了用户界面、支持多物理场仿真，兼顾易用性与专业性，适配多行业工程设计需求，新手也能轻松驾驭。]]></description>
										<content:encoded><![CDATA[
<p>Ansys2024软件安装教程，适配新手小白，助力快速上手。该版本适配Windows11系统，经实测可完美运行、稳定性拉满；搭载AI增强功能与高效GPU求解器，仿真速度大幅提升，还优化了用户界面、支持多物理场仿真，兼顾易用性与专业性，适配多行业工程设计需求，新手也能轻松驾驭</p>


<p><div style="padding:10px; background:#f5f5f5; border-radius:4px;">🔒 请登录后操作，解锁隐藏内容</div></p>



<ol class="wp-block-list">
<li>解压安装压缩包</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="352" height="302" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102120406.png" alt="" class="wp-image-1610" style="aspect-ratio:1.16563179136914;width:286px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102120406.png 352w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102120406-300x257.png 300w" sizes="(max-width: 352px) 100vw, 352px" /></figure>
</div>


<ol start="2" class="wp-block-list">
<li>管理员权限打开setup</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="510" height="583" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102109060.png" alt="" class="wp-image-1611" style="aspect-ratio:0.8748090375492482;width:377px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102109060.png 510w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102109060-262x300.png 262w" sizes="(max-width: 510px) 100vw, 510px" /></figure>
</div>


<ol start="3" class="wp-block-list">
<li>安装Ansys License manager, ok</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="289" height="327" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102054057.png" alt="" class="wp-image-1612" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102054057.png 289w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102054057-265x300.png 265w" sizes="(max-width: 289px) 100vw, 289px" /></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="247" height="194" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102032701.png" alt="" class="wp-image-1613" style="aspect-ratio:1.2733204446592556;width:313px;height:auto"/></figure>
</div>


<ol start="4" class="wp-block-list">
<li>同意, 下一个</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="606" height="232" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102021253.png" alt="" class="wp-image-1614" style="aspect-ratio:2.6122448979591835;width:480px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102021253.png 606w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102021253-300x115.png 300w" sizes="(max-width: 606px) 100vw, 606px" /></figure>
</div>


<ol start="5" class="wp-block-list">
<li>设定安装目录</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="710" height="403" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102006270.png" alt="" class="wp-image-1615" style="aspect-ratio:1.7618161374122756;width:582px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102006270.png 710w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419102006270-300x170.png 300w" sizes="(max-width: 710px) 100vw, 710px" /></figure>
</div>


<ol start="6" class="wp-block-list">
<li>下一步、下一步</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="599" height="361" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101930621.png" alt="" class="wp-image-1616" style="aspect-ratio:1.6593083149374541;width:518px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101930621.png 599w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101930621-300x181.png 300w" sizes="(max-width: 599px) 100vw, 599px" /></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="581" height="326" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101908328.png" alt="" class="wp-image-1617" style="aspect-ratio:1.7822460815798302;width:498px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101908328.png 581w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101908328-300x168.png 300w" sizes="(max-width: 581px) 100vw, 581px" /></figure>
</div>


<ol start="7" class="wp-block-list">
<li>不要勾选退出时启动授权管理中心，继续</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="602" height="363" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101851216.png" alt="" class="wp-image-1618" style="aspect-ratio:1.6584305453919332;width:548px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101851216.png 602w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101851216-300x181.png 300w" sizes="(max-width: 602px) 100vw, 602px" /></figure>
</div>


<ol start="8" class="wp-block-list">
<li>点击退出</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="623" height="226" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101828448.png" alt="" class="wp-image-1619" style="aspect-ratio:2.7567586254580654;width:546px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101828448.png 623w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101828448-300x109.png 300w" sizes="(max-width: 623px) 100vw, 623px" /></figure>
</div>


<ol start="9" class="wp-block-list">
<li>回到安装包位置，复制Ansys Inc文件夹</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="476" height="298" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101817228.png" alt="" class="wp-image-1620" style="aspect-ratio:1.5973467568559594;width:413px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101817228.png 476w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101817228-300x188.png 300w" sizes="(max-width: 476px) 100vw, 476px" /></figure>
</div>


<ol start="10" class="wp-block-list">
<li>安装文件夹粘贴替换</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="476" height="350" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101803465.png" alt="" class="wp-image-1621" style="aspect-ratio:1.360016072146078;width:354px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101803465.png 476w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101803465-300x221.png 300w" sizes="(max-width: 476px) 100vw, 476px" /></figure>
</div>


<p>11.开始菜单打开Ansys License Managerment Center</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="320" height="305" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101747877.png" alt="" class="wp-image-1622" style="aspect-ratio:1.0491828474819407;width:248px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101747877.png 320w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101747877-300x286.png 300w" sizes="(max-width: 320px) 100vw, 320px" /></figure>
</div>


<p>12.在网页页面复制Mac Address</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="792" height="430" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101737180.png" alt="" class="wp-image-1623" style="aspect-ratio:1.8418910570878302;width:619px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101737180.png 792w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101737180-300x163.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101737180-768x417.png 768w" sizes="(max-width: 792px) 100vw, 792px" /></figure>
</div>


<ol start="13" class="wp-block-list">
<li>安装包位置Crack下License替换Mac address</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="369" height="310" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101721528.png" alt="" class="wp-image-1624" style="aspect-ratio:1.1903825797671252;width:340px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101721528.png 369w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101721528-300x252.png 300w" sizes="(max-width: 369px) 100vw, 369px" /></figure>
</div>


<ol start="14" class="wp-block-list">
<li>网页Add a License File安装License, 然后退出</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="801" height="489" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101707575.png" alt="" class="wp-image-1625" style="aspect-ratio:1.638057197635405;width:635px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101707575.png 801w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101707575-300x183.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101707575-768x469.png 768w" sizes="(max-width: 801px) 100vw, 801px" /></figure>
</div>


<ol start="15" class="wp-block-list">
<li>正式安装Ansys产品</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="411" height="280" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101656290.png" alt="" class="wp-image-1626" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101656290.png 411w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101656290-300x204.png 300w" sizes="(max-width: 411px) 100vw, 411px" /></figure>
</div>


<ol start="16" class="wp-block-list">
<li>同意，下一个</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="739" height="404" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101645429.png" alt="" class="wp-image-1627" style="aspect-ratio:1.829310744952425;width:585px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101645429.png 739w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101645429-300x164.png 300w" sizes="(max-width: 739px) 100vw, 739px" /></figure>
</div>


<ol start="17" class="wp-block-list">
<li>下一个</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="714" height="411" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101633300.png" alt="" class="wp-image-1628" style="width:589px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101633300.png 714w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101633300-300x173.png 300w" sizes="(max-width: 714px) 100vw, 714px" /></figure>
</div>


<ol start="18" class="wp-block-list">
<li>输入localhost, 下一个</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="717" height="414" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101619168.png" alt="" class="wp-image-1629" style="width:592px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101619168.png 717w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101619168-300x173.png 300w" sizes="(max-width: 717px) 100vw, 717px" /></figure>
</div>


<ol start="19" class="wp-block-list">
<li>下一个，</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="719" height="410" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101607084-1.png" alt="" class="wp-image-1631" style="aspect-ratio:1.7536872594229964;width:624px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101607084-1.png 719w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101607084-1-300x171.png 300w" sizes="(max-width: 719px) 100vw, 719px" /></figure>
</div>


<ol start="20" class="wp-block-list">
<li>下一个，</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="714" height="415" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101551701.png" alt="" class="wp-image-1632" style="aspect-ratio:1.7205467073308482;width:624px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101551701.png 714w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101551701-300x174.png 300w" sizes="(max-width: 714px) 100vw, 714px" /></figure>
</div>


<ol start="21" class="wp-block-list">
<li>下一步，浏览选择3文件夹</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="482" height="280" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101536000.png" alt="" class="wp-image-1633" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101536000.png 482w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101536000-300x174.png 300w" sizes="(max-width: 482px) 100vw, 482px" /></figure>
</div>


<p>22.下一个</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="488" height="262" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101509278.png" alt="" class="wp-image-1634" style="aspect-ratio:1.8626468658674777;width:414px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101509278.png 488w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101509278-300x161.png 300w" sizes="(max-width: 488px) 100vw, 488px" /></figure>
</div>


<p>23.安装包step2复制Ansys inc文件夹</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="389" height="199" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101457680.png" alt="" class="wp-image-1635" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101457680.png 389w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101457680-300x153.png 300w" sizes="(max-width: 389px) 100vw, 389px" /></figure>
</div>


<ol start="24" class="wp-block-list">
<li>安装文件夹粘贴替换，安装完成</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="296" height="315" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101446436.png" alt="" class="wp-image-1636" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101446436.png 296w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101446436-282x300.png 282w" sizes="(max-width: 296px) 100vw, 296px" /></figure>
</div>


<ol start="25" class="wp-block-list">
<li>开始菜单拉取Workbench到桌面快捷方式，双击打开即可。</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="238" height="277" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260419101437079-1.png" alt="" class="wp-image-1638" style="aspect-ratio:0.8592463048629132;width:325px;height:auto"/></figure>
</div>]]></content:encoded>
					
					<wfw:commentRss>https://xrange.haoyong8.top/ansys2024-setup/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Windows备份还原神器-DiskGenius</title>
		<link>https://xrange.haoyong8.top/diskgenius2/</link>
					<comments>https://xrange.haoyong8.top/diskgenius2/#respond</comments>
		
		<dc:creator><![CDATA[轩然 拙见]]></dc:creator>
		<pubDate>Sat, 18 Apr 2026 14:02:46 +0000</pubDate>
				<category><![CDATA[Windows虚拟机]]></category>
		<guid isPermaLink="false">https://xrange.haoyong8.top/?p=1562</guid>

					<description><![CDATA[实操讲解使用 DiskGenius 工具备份与还原电脑系统分区的完整流程：先在 PE 中通过 DiskGenius 备份 C 盘，按需同步备份 ESP 引导分区；后续需恢复系统时，同样进入 PE 界面，利用该工具从备份镜像还原 C 盘分区，启动异常时也可恢复 ESP 分区，步骤清晰易上手，适合电脑系统备份还原实操参考]]></description>
										<content:encoded><![CDATA[
<p>实操讲解借助 Ventory U 盘进入 WinPE 系统后，使用 DiskGenius 工具备份与还原电脑系统分区的完整流程：先在 PE 中通过 DiskGenius 备份 C 盘，可按需同步备份 ESP 引导分区；后续需恢复系统时，同样进入 PE 界面，利用该工具从备份镜像还原 C 盘分区，启动异常时也可恢复 ESP 分区，步骤清晰易上手，适合电脑系统备份还原实操参考。</p>



<h2 class="wp-block-heading"><strong>DiskGenius备份系统c盘</strong></h2>



<ol class="wp-block-list">
<li>Ventory u盘插入电脑, u盘启动，u盘里有winPE</li>



<li>进入系统后打开DiskGenius，c盘盘符可能会变，如图系统(2)</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="547" height="322" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215107905.png" alt="" class="wp-image-1564" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215107905.png 547w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215107905-300x177.png 300w" sizes="(max-width: 547px) 100vw, 547px" /></figure>
</div>


<ol start="3" class="wp-block-list">
<li>选择系统2盘右键,选择备份分区到镜像文件</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="321" height="270" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215131106.png" alt="" class="wp-image-1565" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215131106.png 321w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215131106-300x252.png 300w" sizes="(max-width: 321px) 100vw, 321px" /></figure>
</div>


<p>3.1 选择文件路径：选择一个其它盘的路径备份，执行开始</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="645" height="497" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215150197.png" alt="" class="wp-image-1566" style="aspect-ratio:1.2978275222435314;width:561px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215150197.png 645w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215150197-300x231.png 300w" sizes="(max-width: 645px) 100vw, 645px" /></figure>
</div>


<p>3.2 也可以备份ESP引导分区，里面主要是C盘的引导文件</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="599" height="491" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215207500.png" alt="" class="wp-image-1567" style="aspect-ratio:1.219966266747287;width:560px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215207500.png 599w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215207500-300x246.png 300w" sizes="(max-width: 599px) 100vw, 599px" /></figure>
</div>


<h2 class="wp-block-heading"><strong>DiskGenius恢复系统c盘</strong></h2>



<ol class="wp-block-list">
<li>重启电脑到pe界面</li>



<li>选中需要恢复的系统C盘，这里是系统(2)盘，右键/从镜像文件还原分区</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="529" height="314" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215231350.png" alt="" class="wp-image-1568" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215231350.png 529w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215231350-300x178.png 300w" sizes="(max-width: 529px) 100vw, 529px" /></figure>
</div>


<p>选中备份文件</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="715" height="468" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215249876.png" alt="" class="wp-image-1569" style="aspect-ratio:1.5277953991519482;width:636px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215249876.png 715w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215249876-300x196.png 300w" sizes="(max-width: 715px) 100vw, 715px" /></figure>
</div>


<p>选中还原时间点，开始即可</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="527" height="317" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215405379.png" alt="" class="wp-image-1570" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215405379.png 527w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260418215405379-300x180.png 300w" sizes="(max-width: 527px) 100vw, 527px" /></figure>
</div>


<p>一般情况下ESP盘不需要恢复，如果启动有问题，也可以恢复下ESP盘</p>
]]></content:encoded>
					
					<wfw:commentRss>https://xrange.haoyong8.top/diskgenius2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress文章自动分类零成本</title>
		<link>https://xrange.haoyong8.top/wordpress-latestpostsblock1/</link>
					<comments>https://xrange.haoyong8.top/wordpress-latestpostsblock1/#respond</comments>
		
		<dc:creator><![CDATA[轩然 拙见]]></dc:creator>
		<pubDate>Sun, 12 Apr 2026 09:25:58 +0000</pubDate>
				<category><![CDATA[Wordpress教程]]></category>
		<guid isPermaLink="false">https://xrange.haoyong8.top/?p=1223</guid>

					<description><![CDATA[实现 WordPress 文章自动归类，全程零成本操作！无需购买付费插件，搭配页面 + 分类 + 菜单设置，就能让对应分类的文章自动展示在指定页面，后续新文章还会自动更新排序，步骤简单易上手，小白也能轻松实现文章自动分类展示。
]]></description>
										<content:encoded><![CDATA[
<p>想要实现 WordPress 文章自动归类展示，全程零成本操作就能搞定！无需购买付费插件，仅通过免费的 Latest Posts Block 插件，搭配页面 + 分类 + 菜单设置，就能让对应分类的文章自动展示在指定页面，后续发布新文章还会自动更新排序，步骤简单易上手，小白也能轻松实现文章自动分类展示。</p>



<p></p>



<ul class="wp-block-list">
<li>插件安装
<ol class="wp-block-list">
<li>wordpress后台/插件/安装插件/搜索 Latest Posts Block, 安装并启用</li>
</ol>
</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="726" height="546" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412164341333.png" alt="" class="wp-image-1224" style="aspect-ratio:1.329704464959647;width:592px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412164341333.png 726w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412164341333-300x226.png 300w" sizes="(max-width: 726px) 100vw, 726px" /></figure>
</div>


<ol start="2" class="wp-block-list">
<li>wp后台/页面/添加页面，新增页面，标题:wordpress网站教程, 别名:wordpress-2。</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="572" height="337" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412164558350.png" alt="" class="wp-image-1225" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412164558350.png 572w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412164558350-300x177.png 300w" sizes="(max-width: 572px) 100vw, 572px" /></figure>
</div>


<ol start="3" class="wp-block-list">
<li>后台/添加文章/分类目录/ 添加分类wordpress教程, 别名:wordpress2</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="640" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412170207070-1024x640.png" alt="" class="wp-image-1226" style="aspect-ratio:1.600048906588416;width:641px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412170207070-1024x640.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412170207070-300x187.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412170207070-768x480.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412170207070.png 1173w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<ol start="4" class="wp-block-list">
<li>后台页面/所有页面/选择页面wordpress网站教程并点击编辑进入以下页面。左上角点+号，输入Latest，中间选中文章时右下角出现设置选项，设置<ul><li>Laout options: ListCategory: WordPress教程排序:从最新至最旧排序项目数量:10</li></ul></li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="500" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412170446981-1024x500.png" alt="" class="wp-image-1227" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412170446981-1024x500.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412170446981-300x146.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412170446981-768x375.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412170446981.png 1369w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<ol start="5" class="wp-block-list">
<li>右下角设置其它选项: 可添加摘要: Display Excerpt, 按自己的想法选择</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="644" height="836" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412171122744.png" alt="" class="wp-image-1228" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412171122744.png 644w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412171122744-231x300.png 231w" sizes="(max-width: 644px) 100vw, 644px" /></figure>
</div>


<ol start="6" class="wp-block-list">
<li>页面/所有页面/选中wordpress教程并点击查看，访问网页，复制顶部链接地址<a href="https://xrange.haoyong8.top/wordpress-2/">WordPress网站教程 – 轩然阁</a></li>



<li>最后到外观菜单里将相应的导航菜单地址更新掉即可。</li>



<li>分类效果如下。</li>
</ol>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="594" height="646" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-17.png" alt="" class="wp-image-1239" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-17.png 594w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-17-276x300.png 276w" sizes="(max-width: 594px) 100vw, 594px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://xrange.haoyong8.top/wordpress-latestpostsblock1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>VMware-workstation16.1 软件安装CentOS7</title>
		<link>https://xrange.haoyong8.top/vmware-workstation-centos/</link>
					<comments>https://xrange.haoyong8.top/vmware-workstation-centos/#respond</comments>
		
		<dc:creator><![CDATA[轩然 拙见]]></dc:creator>
		<pubDate>Sun, 12 Apr 2026 04:16:59 +0000</pubDate>
				<category><![CDATA[Windows虚拟机]]></category>
		<guid isPermaLink="false">https://xrange.haoyong8.top/?p=1142</guid>

					<description><![CDATA[本文详细介绍**VMware 16.1 安装、CentOS 7 虚拟机搭建、磁盘分区及 XShell 远程连接**完整流程，提供激活码、镜像下载、分区方案与默认账号密码，按步骤即可快速搭建 Linux 实验环境  ddddd]]></description>
										<content:encoded><![CDATA[
<details class="wp-block-details is-layout-flow wp-block-details-is-layout-flow"><summary>本文详细介绍<strong>VMware 16.1 安装、CentOS 7 虚拟机搭建、磁盘分区及 XShell 远程连接</strong>完整流程，提供激活码、镜像下载、分区方案与默认账号密码，按步骤即可快速搭建 Linux 实验环境。</summary>
<p></p>
</details>



<p>前置下载安装包省略，最好去官网下载</p>



<ol class="wp-block-list">
<li>接受许可，下一步</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="798" height="622" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114450140-1.png" alt="" class="wp-image-1214" style="aspect-ratio:1.283007589146481;width:528px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114450140-1.png 798w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114450140-1-300x234.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114450140-1-768x599.png 768w" sizes="(max-width: 798px) 100vw, 798px" /></figure>
</div>


<p>2. 接受许可，下一步</p>



<ol class="wp-block-list">
<li></li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="772" height="608" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114503762-1.png" alt="" class="wp-image-1213" style="aspect-ratio:1.269743774254067;width:566px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114503762-1.png 772w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114503762-1-300x236.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114503762-1-768x605.png 768w" sizes="(max-width: 772px) 100vw, 772px" /></figure>
</div>


<ol start="3" class="wp-block-list">
<li>目录设定一个大硬盘，建立猿来 0224 班虚拟机目录，更改至该目录</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="778" height="606" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114517988.png" alt="" class="wp-image-1212" style="aspect-ratio:1.2838357012092927;width:564px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114517988.png 778w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114517988-300x234.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114517988-768x598.png 768w" sizes="(max-width: 778px) 100vw, 778px" /></figure>
</div>


<ol start="4" class="wp-block-list">
<li>取消两者，下一步</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="954" height="748" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114530648.png" alt="" class="wp-image-1211" style="aspect-ratio:1.275406822502141;width:573px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114530648.png 954w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114530648-300x235.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114530648-768x602.png 768w" sizes="(max-width: 954px) 100vw, 954px" /></figure>
</div>


<p>5.桌面快捷方式，直接下一步</p>



<p>开始安装</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="962" height="756" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114549110.png" alt="" class="wp-image-1210" style="aspect-ratio:1.2724924043569021;width:561px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114549110.png 962w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114549110-300x236.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114549110-768x604.png 768w" sizes="(max-width: 962px) 100vw, 962px" /></figure>
</div>


<p>6.安装好后输入激活码，完成</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="724" height="314" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114624549.png" alt="" class="wp-image-1209" style="aspect-ratio:2.3057974620552377;width:378px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114624549.png 724w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114624549-300x130.png 300w" sizes="(max-width: 724px) 100vw, 724px" /></figure>
</div>


<p>7.默认打开界面默认打开界面</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="658" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114657698-1024x658.png" alt="" class="wp-image-1208" style="aspect-ratio:1.556254700426172;width:670px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114657698-1024x658.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114657698-300x193.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114657698-768x494.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114657698.png 1120w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>8.创建新的虚拟机</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="592" height="218" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114741780.png" alt="" class="wp-image-1207" style="aspect-ratio:2.7157193032757507;width:582px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114741780.png 592w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114741780-300x110.png 300w" sizes="(max-width: 592px) 100vw, 592px" /></figure>
</div>


<p>9.自定义安装</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="920" height="844" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114806729.png" alt="" class="wp-image-1206" style="aspect-ratio:1.0900490604461723;width:580px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114806729.png 920w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114806729-300x275.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114806729-768x705.png 768w" sizes="(max-width: 920px) 100vw, 920px" /></figure>
</div>


<p>10.默认，下一步</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="908" height="846" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114818984.png" alt="" class="wp-image-1205" style="aspect-ratio:1.0732874055741277;width:584px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114818984.png 908w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114818984-300x280.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114818984-768x716.png 768w" sizes="(max-width: 908px) 100vw, 908px" /></figure>
</div>


<p>11.稍后安装 OS.稍后安装 OS</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="926" height="848" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114833228.png" alt="" class="wp-image-1204" style="aspect-ratio:1.09198282692414;width:582px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114833228.png 926w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114833228-300x275.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114833228-768x703.png 768w" sizes="(max-width: 926px) 100vw, 926px" /></figure>
</div>


<p>12.选择 OS7</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="906" height="852" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114848212.png" alt="" class="wp-image-1203" style="aspect-ratio:1.0633814440552387;width:583px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114848212.png 906w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114848212-300x282.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114848212-768x722.png 768w" sizes="(max-width: 906px) 100vw, 906px" /></figure>
</div>


<p>13.新虚拟机名字，目录</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="924" height="856" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114859579.png" alt="" class="wp-image-1202" style="aspect-ratio:1.0794407024076813;width:586px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114859579.png 924w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114859579-300x278.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114859579-768x711.png 768w" sizes="(max-width: 924px) 100vw, 924px" /></figure>
</div>


<p>14.选择 CPU，内核选择 CPU，内核</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="896" height="838" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114909671.png" alt="" class="wp-image-1201" style="aspect-ratio:1.06921370103112;width:565px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114909671.png 896w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114909671-300x281.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114909671-768x718.png 768w" sizes="(max-width: 896px) 100vw, 896px" /></figure>
</div>


<p>15.内存选择</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="884" height="838" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114922914.png" alt="" class="wp-image-1200" style="aspect-ratio:1.054893624955716;width:570px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114922914.png 884w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114922914-300x284.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114922914-768x728.png 768w" sizes="(max-width: 884px) 100vw, 884px" /></figure>
</div>


<p>16.选择网络连接方式</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="439" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114933297-1024x439.png" alt="" class="wp-image-1199" style="aspect-ratio:2.3326569721564647;width:732px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114933297-1024x439.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114933297-300x129.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114933297-768x329.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114933297.png 1492w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>17.默认选择</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="902" height="848" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114947442.png" alt="" class="wp-image-1198" style="aspect-ratio:1.0636804186397892;width:597px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114947442.png 902w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114947442-300x282.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412114947442-768x722.png 768w" sizes="(max-width: 902px) 100vw, 902px" /></figure>
</div>


<p>18.磁盘选择</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="894" height="842" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115001312.png" alt="" class="wp-image-1197" style="aspect-ratio:1.0617588657746766;width:613px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115001312.png 894w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115001312-300x283.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115001312-768x723.png 768w" sizes="(max-width: 894px) 100vw, 894px" /></figure>
</div>


<p>19.磁盘大小 20G</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="900" height="842" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115011412.png" alt="" class="wp-image-1196" style="aspect-ratio:1.0688848887486777;width:609px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115011412.png 900w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115011412-300x281.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115011412-768x719.png 768w" sizes="(max-width: 900px) 100vw, 900px" /></figure>
</div>


<p>20.默认界面认界面</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="896" height="850" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115022264.png" alt="" class="wp-image-1195" style="aspect-ratio:1.0541186418867994;width:605px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115022264.png 896w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115022264-300x285.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115022264-768x729.png 768w" sizes="(max-width: 896px) 100vw, 896px" /></figure>
</div>


<p>21.默认</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="896" height="842" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115031959.png" alt="" class="wp-image-1194" style="aspect-ratio:1.0641342067660104;width:598px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115031959.png 896w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115031959-300x282.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115031959-768x722.png 768w" sizes="(max-width: 896px) 100vw, 896px" /></figure>
</div>


<p>22.加载 centOS 镜像</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="643" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115043029-1024x643.png" alt="" class="wp-image-1193" style="aspect-ratio:1.5925859415084658;width:699px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115043029-1024x643.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115043029-300x188.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115043029-768x482.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115043029.png 1514w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>23.下一步点击完成</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="761" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115053021-1024x761.png" alt="" class="wp-image-1192" style="aspect-ratio:1.345623618155807;width:682px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115053021-1024x761.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115053021-300x223.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115053021-768x571.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115053021.png 1510w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>24.开机后选择第一个，回车</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="547" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115104230-1024x547.png" alt="" class="wp-image-1191" style="aspect-ratio:1.872048490696903;width:686px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115104230-1024x547.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115104230-300x160.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115104230-768x410.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115104230.png 1516w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>25.语言英语语言英语</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="798" height="594" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115113842.png" alt="" class="wp-image-1190" style="aspect-ratio:1.3434433776140997;width:690px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115113842.png 798w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115113842-300x223.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115113842-768x572.png 768w" sizes="(max-width: 798px) 100vw, 798px" /></figure>
</div>


<p>26.基本包设置</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="613" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115123273-1024x613.png" alt="" class="wp-image-1189" style="aspect-ratio:1.6705416969403406;width:679px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115123273-1024x613.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115123273-300x180.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115123273-768x460.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115123273.png 1142w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>27.软件包，选择后左上角 Done</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="830" height="656" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115133654.png" alt="" class="wp-image-1188" style="aspect-ratio:1.2652502203272753;width:576px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115133654.png 830w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115133654-300x237.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115133654-768x607.png 768w" sizes="(max-width: 830px) 100vw, 830px" /></figure>
</div>


<p>28.系统设置，默认选择，Done</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="786" height="594" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115143433.png" alt="" class="wp-image-1187" style="aspect-ratio:1.3232408259897408;width:566px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115143433.png 786w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115143433-300x227.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115143433-768x580.png 768w" sizes="(max-width: 786px) 100vw, 786px" /></figure>
</div>


<p>29.网络连接设置</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="862" height="628" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115152839.png" alt="" class="wp-image-1186" style="aspect-ratio:1.3726207359856684;width:567px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115152839.png 862w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115152839-300x219.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115152839-768x560.png 768w" sizes="(max-width: 862px) 100vw, 862px" /></figure>
</div>


<p>30.Begin0.Begin</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="778" height="578" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115203003.png" alt="" class="wp-image-1185" style="aspect-ratio:1.3460489720237772;width:613px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115203003.png 778w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115203003-300x223.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115203003-768x571.png 768w" sizes="(max-width: 778px) 100vw, 778px" /></figure>
</div>


<p>31.Root 用户名密码</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="544" height="1024" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115218812-544x1024.png" alt="" class="wp-image-1184" style="aspect-ratio:0.5312509537034211;width:534px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115218812-544x1024.png 544w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115218812-160x300.png 160w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115218812-768x1444.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115218812-817x1536.png 817w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115218812.png 940w" sizes="(max-width: 544px) 100vw, 544px" /></figure>
</div>


<p>32.等待安装完毕，重启开机，开机后同意授权</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="607" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115239167-1024x607.png" alt="" class="wp-image-1181" style="aspect-ratio:1.6870210337518343;width:579px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115239167-1024x607.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115239167-300x178.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115239167-768x456.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115239167.png 1062w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="525" height="381" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115301484.png" alt="" class="wp-image-1182" style="aspect-ratio:1.377968256572202;width:592px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115301484.png 525w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115301484-300x218.png 300w" sizes="(max-width: 525px) 100vw, 525px" /></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="673" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115342034-1024x673.png" alt="" class="wp-image-1183" style="aspect-ratio:1.521591714699627;width:588px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115342034-1024x673.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115342034-300x197.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115342034-768x505.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115342034.png 1390w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>33.隐私可以关掉</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="940" height="700" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115411755.png" alt="" class="wp-image-1180" style="aspect-ratio:1.3428633606267513;width:565px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115411755.png 940w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115411755-300x223.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115411755-768x572.png 768w" sizes="(max-width: 940px) 100vw, 940px" /></figure>
</div>


<p>34.创建普通用户名及密码</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="936" height="1024" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115425246-936x1024.png" alt="" class="wp-image-1179" style="aspect-ratio:0.9140820294417183;width:621px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115425246-936x1024.png 936w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115425246-274x300.png 274w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115425246-768x840.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115425246.png 1300w" sizes="(max-width: 936px) 100vw, 936px" /></figure>
</div>


<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><strong>二、CentOS 下载</strong></h2>



<ol class="wp-block-list">
<li>百度阿里云开发者社区，进入 OS 镜像下载</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="627" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115444106-1024x627.png" alt="" class="wp-image-1178" style="aspect-ratio:1.6331965857209025;width:646px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115444106-1024x627.png 1024w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115444106-300x184.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115444106-768x470.png 768w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-20260412115444106.png 1202w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<p>2. 选择 CenOS 版本，推荐 DVD-2009</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="613" height="343" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-5.png" alt="" class="wp-image-1166" style="aspect-ratio:1.7872078720787208;width:584px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-5.png 613w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-5-300x168.png 300w" sizes="(max-width: 613px) 100vw, 613px" /></figure>
</div>


<h2 class="wp-block-heading"><strong>三、磁盘分区演示</strong></h2>



<ol class="wp-block-list">
<li>新建虚拟机向导→选择磁盘
<ul class="wp-block-list">
<li>创建新虚拟磁盘 (V)</li>
</ul>
</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="502" height="480" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-6.png" alt="" class="wp-image-1167" style="aspect-ratio:1.0458348253523877;width:453px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-6.png 502w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-6-300x287.png 300w" sizes="(max-width: 502px) 100vw, 502px" /></figure>
</div>


<p>2. 指定磁盘容量</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="482" height="466" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-16.png" alt="" class="wp-image-1177" style="aspect-ratio:1.0343359152332092;width:448px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-16.png 482w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-16-300x290.png 300w" sizes="(max-width: 482px) 100vw, 482px" /></figure>
</div>


<p>3. 指定磁盘文件</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="468" height="469" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-15.png" alt="" class="wp-image-1176" style="aspect-ratio:0.9979010494752624;width:447px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-15.png 468w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-15-300x300.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-15-150x150.png 150w" sizes="(max-width: 468px) 100vw, 468px" /></figure>
</div>


<p>4.已准备好创建虚拟机</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="478" height="480" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-14.png" alt="" class="wp-image-1175" style="aspect-ratio:0.9958331976952375;width:457px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-14.png 478w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-14-300x300.png 300w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-14-150x150.png 150w" sizes="(max-width: 478px) 100vw, 478px" /></figure>
</div>


<p>5.选择 OS，同时注意打印机可以移除，要不然开机会检测</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="604" height="327" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-13.png" alt="" class="wp-image-1174" style="aspect-ratio:1.8471352797820997;width:567px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-13.png 604w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-13-300x162.png 300w" sizes="(max-width: 604px) 100vw, 604px" /></figure>
</div>


<p>6.开机后如果没有鼠标，按 Ctrl+alt 键激活鼠标</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="604" height="417" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-12.png" alt="" class="wp-image-1173" style="aspect-ratio:1.4484580507363136;width:582px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-12.png 604w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-12-300x207.png 300w" sizes="(max-width: 604px) 100vw, 604px" /></figure>
</div>


<p>7.分区设置</p>



<p>/boot：启动分区，系统的引导启动程序，必须放在这里，1G</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="596" height="446" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-11.png" alt="" class="wp-image-1172" style="aspect-ratio:1.3363346529797149;width:556px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-11.png 596w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-11-300x224.png 300w" sizes="(max-width: 596px) 100vw, 596px" /></figure>
</div>


<p>8.分区方案：分 2 个分区（启动分区、根分区）</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="608" height="903" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-10.png" alt="" class="wp-image-1171" style="aspect-ratio:0.673305532003253;width:546px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-10.png 608w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-10-202x300.png 202w" sizes="(max-width: 608px) 100vw, 608px" /></figure>
</div>


<p>9.点两下 done，接受即可</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="599" height="421" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-9.png" alt="" class="wp-image-1170" style="aspect-ratio:1.4228185428497198;width:565px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-9.png 599w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-9-300x211.png 300w" sizes="(max-width: 599px) 100vw, 599px" /></figure>
</div>


<p>10.分几个区以及给这个分区指定名字</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="634" height="345" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-8.png" alt="" class="wp-image-1169" style="aspect-ratio:1.837719099596902;width:570px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-8.png 634w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-8-300x163.png 300w" sizes="(max-width: 634px) 100vw, 634px" /></figure>
</div>


<p>11、点两下done,接受即可, 后面与上方安装相同</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="637" height="458" src="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-7.png" alt="" class="wp-image-1168" style="aspect-ratio:1.3908430282146635;width:581px;height:auto" srcset="https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-7.png 637w, https://xrange.haoyong8.top/wp-content/uploads/2026/04/image-7-300x216.png 300w" sizes="(max-width: 637px) 100vw, 637px" /></figure>
</div>


<p>Done, Enjoy!</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://xrange.haoyong8.top/vmware-workstation-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PVE环境给飞牛NAS添加数据硬盘</title>
		<link>https://xrange.haoyong8.top/pve-fnos1/</link>
					<comments>https://xrange.haoyong8.top/pve-fnos1/#comments</comments>
		
		<dc:creator><![CDATA[轩然 拙见]]></dc:creator>
		<pubDate>Sat, 11 Apr 2026 09:18:25 +0000</pubDate>
				<category><![CDATA[NAS 教程]]></category>
		<category><![CDATA[PVE 软路由]]></category>
		<guid isPermaLink="false">https://xrange.haoyong8.top/?p=1082</guid>

					<description><![CDATA[>从硬盘插线到软路由sata接口开始安装说明 第一步：物理连接硬盘到你的设备 第二步：在PVE系 … 阅读更多]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%">
<details class="wp-block-details no-arrow-details is-layout-flow wp-block-details-is-layout-flow"><summary>讲解了PVE 环境下将 SATA 物理硬盘直通给飞牛 OS 虚拟机的全流程，从硬盘物理断电插线、PVE 终端识别硬盘并获取唯一硬件 ID，到 PVE 网页端配置硬盘直通参数，再到飞牛 OS 内初始化硬盘、创建 Btrfs 单盘存储池，一步步实现硬盘无损直通挂载</summary>
<p></p>
</details>
</div>
</div>



<h3 class="wp-block-heading">&gt;&gt;从硬盘插线到软路由sata接口开始安装说明</h3>



<h3 class="wp-block-heading">第一步：物理连接硬盘到你的设备</h3>



<ol class="wp-block-list">
<li><strong>安全断电</strong>：在操作前，请务必<strong>关闭你的软路由/主机设备电源</strong>。</li>



<li><strong>连接硬盘</strong>：
<ul class="wp-block-list">
<li>将SATA数据线一端连接到硬盘的SATA接口，另一端连接到主板上空闲的SATA接口。</li>



<li>将SATA电源线（来自电源）连接到硬盘的电源接口。确保连接牢固。</li>
</ul>
</li>



<li><strong>开机进入PVE系统</strong>：连接好后，为设备上电，并确保正常启动进入PVE系统。</li>
</ol>



<h3 class="wp-block-heading">第二步：在PVE系统中识别新硬盘</h3>



<p>现在，我们需要在PVE的命令行终端（Shell）里确认系统已经识别到了这块新硬盘。</p>



<ol class="wp-block-list">
<li>登录PVE的Web管理界面，点击右上角的 <strong>“Shell”</strong> 按钮，打开命令行终端。</li>



<li>输入以下命令并回车，列出所有块存储设备：lsblk</li>



<li>查看输出结果。你会看到类似 <code>sda</code>、<code>sdb</code>、<code>nvme0n1</code> 这样的设备名。其中：
<ul class="wp-block-list">
<li>原有的系统盘通常较小。</li>



<li><strong>新连接的、容量符合你硬盘大小的那个设备（例如 <code>sdb</code>），就是你的新数据盘。</strong> 请记下它的设备名（如 <code>/dev/sdb</code>）。</li>
</ul>
</li>



<li><strong>（重要）获取硬盘的唯一ID</strong>：为了避免后续硬盘顺序变化导致的问题，我们使用硬盘的唯一ID来操作。输入命令：ls -l /dev/disk/by-id/在列表中，找到对应你新硬盘的那一行。它会包含硬盘的型号和序列号信息，通常以 <code>ata-</code> 或 <code>scsi-</code> 开头，并且<strong>不包含 <code>-part</code></strong> 字样。例如：<code>ata-Samsung_SSD_870_EVO_1TB_S6PTNM0TB12345</code>。<strong>复制这个完整的ID</strong>。</li>
</ol>



<h3 class="wp-block-heading">第三步：在PVE Web界面将硬盘直通给飞牛OS</h3>



<p>这里我们将物理硬盘直接“映射”给虚拟机，性能最好。</p>



<ol class="wp-block-list">
<li><strong>关闭虚拟机</strong>：在PVE Web界面中找到你的飞牛OS虚拟机，先将其<strong>关机</strong>。</li>



<li><strong>添加硬盘</strong>：
<ul class="wp-block-list">
<li>进入虚拟机的 <strong>“硬件”</strong> 选项卡。</li>



<li>点击 <strong>“添加”</strong> -&gt; <strong>“硬盘”</strong>。</li>
</ul>
</li>



<li><strong>关键配置</strong>：
<ul class="wp-block-list">
<li><strong>总线/设备</strong>：选择 <strong>SATA</strong> 或 <strong>SCSI</strong>。对于NAS系统，<code>SATA</code> 兼容性最佳。</li>



<li><strong>高级</strong>：勾选以显示更多选项。</li>



<li><strong>存储</strong>：在下拉菜单中选择 <strong>“未使用的磁盘”</strong> 或直接填写路径。</li>



<li><strong>最关键一步</strong>：在 <strong>“磁盘映像”</strong> 或 <strong>“路径”</strong> 输入框中，<strong>粘贴或手动输入你刚才复制的硬盘ID路径</strong>。格式应为：/dev/disk/by-id/ata-Samsung_SSD_870_EVO_1TB_S6PTNM0TB12345（请替换为你自己复制的ID）</li>



<li>其他选项保持默认，点击 <strong>“添加”</strong>。</li>
</ul>
</li>



<li><strong>启动虚拟机</strong>：添加完成后，启动飞牛OS虚拟机。</li>
</ol>



<h3 class="wp-block-heading">第四步：在飞牛OS内部初始化新硬盘</h3>



<ol class="wp-block-list">
<li><strong>登录飞牛OS</strong>：通过浏览器访问飞牛OS的IP地址和管理界面。</li>



<li><strong>进入存储管理</strong>：在桌面上打开 <strong>“存储管理”</strong> 应用。</li>



<li><strong>识别硬盘</strong>：在磁盘列表中，你应该能看到两块硬盘：
<ul class="wp-block-list">
<li>一块较小的，是系统盘（可能已显示为“已使用”或挂载为系统分区）。</li>



<li>另一块容量很大的、状态为 <strong>“未初始化”</strong> 或 <strong>“未使用”</strong> 的新硬盘，这就是你刚直通的物理硬盘。</li>
</ul>
</li>



<li><strong>初始化并创建存储池</strong>：
<ul class="wp-block-list">
<li>选中这块新硬盘。</li>



<li>点击 <strong>“初始化”</strong> 或 <strong>“创建存储池”</strong>。</li>



<li><strong>存储池类型</strong>：因为是单盘，选择 <strong>“Basic (单盘)”</strong>。</li>



<li><strong>文件系统</strong>：<strong>强烈建议选择 <code>Btrfs</code></strong>，它是为NAS设计的功能强大的文件系统。</li>



<li>确认格式化（因为是全新空盘，无数据风险）。</li>
</ul>
</li>



<li><strong>创建共享文件夹</strong>：初始化完成后，进入 <strong>“文件管理”</strong> 或 <strong>“共享文件夹”</strong>，在新的存储池上创建你需要的共享文件夹（如“下载”、“媒体库”、“备份”等）。</li>
</ol>



<h3 class="wp-block-heading">⚠️ 重要提醒</h3>



<ul class="wp-block-list">
<li><strong>确保是目标硬盘</strong>：在执行 <code>lsblk</code> 和选择硬盘ID时，务必根据硬盘容量和型号确认是你新加的那块<strong>空盘</strong>，避免误操作覆盖其他数据盘。</li>



<li><strong>直通的好处</strong>：通过 <code>by-id</code> 路径直通物理硬盘，性能无损，且飞牛OS可以直接管理硬盘的SMART健康状态等功能。</li>



<li><strong>无法识别怎么办</strong>：如果在飞牛OS里看不到新硬盘，请返回PVE，检查虚拟机硬件列表中该硬盘是否添加成功，并确认其总线类型是 <code>SATA</code> 或 <code>SCSI</code>。</li>
</ul>



<p>至此，从物理插线到飞牛OS内可用的完整流程就结束了。如果过程中有任何一步出现意外情况，请随时告诉我具体现象，我会帮你一起排查。</p>



<h2 class="wp-block-heading"><strong>飞牛NAS优化设置</strong></h2>



<p>你已经成功为飞牛OS添加了数据硬盘，这为搭建功能完整的NAS系统打下了坚实的基础。</p>



<p>为了让你能更好地使用和管理这块新的存储空间，这里有几个后续步骤和建议，或许能派上用场：</p>



<ul class="wp-block-list">
<li><strong>优化与数据保护</strong>
<ul class="wp-block-list">
<li><strong>设置共享文件夹权限</strong>：在飞牛OS的“用户”或“共享文件夹”设置中，可以为不同用户分配文件夹的访问权限（只读、读写等）。</li>



<li><strong>配置自动备份</strong>：可以利用飞牛OS内置的“备份”应用，将系统盘上的重要数据（如Docker配置、应用设置）定时备份到这块新的大容量数据盘上。</li>



<li><strong>启用硬盘休眠</strong>（可选）：如果希望节能，可以在飞牛OS的“存储管理”或“电源管理”中查看并设置硬盘休眠，但需注意频繁唤醒可能影响硬盘寿命。</li>
</ul>
</li>



<li><strong>PVE层面的建议</strong>
<ul class="wp-block-list">
<li><strong>创建虚拟机备份</strong>：现在你的飞牛OS虚拟机包含了重要数据，建议在PVE中为它设置定期的备份任务（“备份”选项卡），将整个虚拟机状态备份到另一块硬盘或网络存储中。</li>



<li><strong>利用快照功能</strong>：在进行重大系统更新或配置更改前，可以在PVE中为飞牛OS虚拟机创建一个“快照”，如果操作出现问题，可以瞬间回滚到之前的状态。</li>
</ul>
</li>



<li><strong>探索飞牛OS的存储功能</strong>
<ul class="wp-block-list">
<li><strong>使用Btrfs高级功能</strong>：如果你在初始化时选择了Btrfs文件系统，之后可以在存储池上尝试启用<strong>快照</strong>功能，用于快速备份和恢复共享文件夹。</li>



<li><strong>为Docker/虚拟机配置存储</strong>：在飞牛OS中安装Docker或创建虚拟机时，可以将它们的存储路径设置在这块新数据盘上，避免占用系统盘空间。</li>
</ul>
</li>
</ul>



<h2 class="wp-block-heading"><strong>实际输出</strong></h2>



<p>根据 <code>ls -l /dev/disk/by-id/</code> 输出，可以看出系统里有一块SATA硬盘（<code>sda</code>）和一块NVMe固态硬盘（<code>nvme0n1</code>）。</p>



<p>对于 <strong><code>/dev/sda</code></strong> 这块硬盘，它对应两个ID，这两个ID都可以用来安全地直通给虚拟机：</p>



<ol class="wp-block-list">
<li><strong><code>ata-WDC_WD60EFPX-68JH4N1_WD-WC3K20AE5PWO</code></strong>
<ul class="wp-block-list">
<li><strong>说明</strong>：这是最标准的ATA（SATA）硬盘ID，由“<code>ata-</code>” + <strong>硬盘型号</strong>（<code>WDC_WD60EFPX-68JH4N1</code>） + <strong>硬盘序列号</strong>（<code>WD-WC3K20AE5PWO</code>）组成。</li>



<li><strong>含义</strong>：这是一块 <strong>西部数据（WDC）的6TB硬盘</strong>（从型号 <code>WD60EFPX</code> 判断），即你新添加的机械硬盘。<strong>这就是你要用的那个ID。</strong></li>
</ul>
</li>



<li><strong><code>wwn-0x50014ee2b6d01775</code></strong>
<ul class="wp-block-list">
<li><strong>说明</strong>：这是硬盘的全球唯一名称（World Wide Name），也是一个完全唯一的标识符。</li>



<li><strong>含义</strong>：它与上面的<code>ata-</code> ID指向同一块物理硬盘（<code>sda</code>）。</li>
</ul>
</li>
</ol>



<h3 class="wp-block-heading">💡 结论与操作建议</h3>



<p><strong>为了将这块全新的6TB硬盘直通给飞牛OS，你应该使用第一个ID：</strong></p>



<pre class="wp-block-preformatted">/dev/disk/by-id/ata-WDC_WD60EFPX-68JH4N1_WD-WC3K20AE5PWO</pre>



<p><strong>为什么选这个？</strong></p>



<ul class="wp-block-list">
<li><code>ata-</code> 开头的ID最直观，明确显示了制造商和型号，便于人工核对，不易出错。</li>



<li>这是PVE社区在直通SATA硬盘时最常用、最推荐的方式。</li>
</ul>



<p><strong>下一步操作：</strong></p>



<ol class="wp-block-list">
<li>在PVE Web界面，为飞牛OS虚拟机<strong>添加硬盘</strong>。</li>



<li>在硬盘配置页面，<strong>总线选择 <code>SATA</code></strong>。</li>



<li>在<strong>“磁盘映像”或“路径”</strong>输入框中，<strong>完整粘贴上面的ID路径</strong>。</li>



<li>完成添加并启动虚拟机，然后进入飞牛OS的“存储管理”进行初始化。</li>
</ol>



<h3 class="wp-block-heading">⚠️ 重要确认</h3>



<p>请再次通过 <code>lsblk</code> 命令确认这块硬盘（<code>sda</code>）的容量是否是 <strong>6TB</strong> 左右，确保它是你新插入的那块<strong>空硬盘</strong>，而不是系统原本就在使用的硬盘（从你的列表看，系统很可能安装在NVMe固态 <code>nvme0n1</code> 上，所以 <code>sda</code> 应该就是新盘）。</p>



<p>确认无误后，就可以放心地使用这个ID进行直通了。如果在飞牛OS里初始化时找不到硬盘，可以随时再来询问。</p>



<h2 class="wp-block-heading"><strong>在添加/硬盘下面，存储下面找不到未使用的磁盘</strong></h2>



<p>当PVE Web界面的“存储”下拉菜单中<strong>没有“未使用的磁盘”选项</strong>时，这通常是正常的，意味着PVE没有将这块硬盘识别为可用于创建虚拟磁盘的存储空间。不过这<strong>不影响你将硬盘直通给虚拟机</strong>，此时最直接可靠的方法是<strong>通过命令行（Shell）手动添加</strong>。</p>



<h3 class="wp-block-heading">🔧 解决方案：使用命令行直通硬盘</h3>



<ol class="wp-block-list">
<li><strong>获取关键信息</strong>：
<ul class="wp-block-list">
<li><strong>虚拟机ID</strong>：在PVE网页左侧的节点树中，找到你的飞牛OS虚拟机，ID通常是<code>101</code>、<code>102</code>这样的数字。</li>



<li><strong>硬盘ID</strong>：根据你之前的查询，我们要用的是这块硬盘的ID：<code>ata-WDC_WD60EFPX-68JH4N1_WD-WC3K20AE5PWO</code>。</li>
</ul>
</li>



<li><strong>执行直通命令</strong>： 打开PVE的Shell（网页右上角），输入以下命令（请替换 <code>VMID</code> 为你的虚拟机实际ID）：qm set &lt;VMID&gt; &#8211;sata1 /dev/disk/by-id/ata-WDC_WD60EFPX-68JH4N1_WD-WC3K20AE5PWO例如，如果你的虚拟机ID是<code>101</code>，命令就是：qm set 101 &#8211;sata1 /dev/disk/by-id/ata-WDC_WD60EFPX-68JH4N1_WD-WC3K20AE5PWO<strong>命令解释</strong>：<code>qm set</code>是修改虚拟机配置的命令，<code>--sata1</code>表示将硬盘添加到虚拟机的第2个SATA接口（SATA0通常被系统盘占用）。</li>



<li><strong>验证结果</strong>： 执行成功后，会有“update VMID&#8230;”的提示。你可以在网页上刷新虚拟机<strong>“硬件”</strong>选项卡，查看列表中是否多了一块类型为“硬盘”、总线为“SATA”的设备。</li>
</ol>



<h3 class="wp-block-heading">💡 Web界面与命令行方法对比</h3>



<p>为了让你更清晰地了解两者的区别，可以参考下表：</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th class="has-text-align-left" data-align="left">特性</th><th class="has-text-align-left" data-align="left">Web界面添加虚拟磁盘</th><th class="has-text-align-left" data-align="left">命令行直通物理硬盘</th></tr></thead><tbody><tr><td class="has-text-align-left" data-align="left"><strong>本质</strong></td><td class="has-text-align-left" data-align="left">在PVE存储（如local-lvm）上创建一个<strong>虚拟磁盘文件</strong>给虚拟机。</td><td class="has-text-align-left" data-align="left">将<strong>整块物理硬盘</strong>直接传递给虚拟机，性能无损。</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>前提</strong></td><td class="has-text-align-left" data-align="left">PVE存储有足够空间，且“存储”选项中包含该存储。</td><td class="has-text-align-left" data-align="left">只需物理硬盘被PVE系统识别（<code>lsblk</code>可见）。</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>适合场景</strong></td><td class="has-text-align-left" data-align="left">分配虚拟机存储空间，管理灵活。</td><td class="has-text-align-left" data-align="left"><strong>NAS虚拟机独占物理硬盘</strong>，可管理SMART信息，适合你的需求。</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>性能</strong></td><td class="has-text-align-left" data-align="left">依赖底层存储性能，有少量开销。</td><td class="has-text-align-left" data-align="left">近乎原生性能。</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">📝 后续操作与确认</h3>



<p>命令执行后，启动飞牛OS虚拟机，登录其“存储管理”，新硬盘应该会显示为一块<strong>未初始化</strong>的磁盘。你可以按照之前说明的步骤，在飞牛OS内部将其初始化为存储空间。</p>



<p><strong>安全提示</strong>：</p>



<ul class="wp-block-list">
<li>再次确认你使用的硬盘ID对应的是那<strong>6TB的空硬盘</strong>（<code>sda</code>），而非系统所在的NVMe固态硬盘（<code>nvme0n1</code>）。</li>



<li><code>qm set</code>命令是即时生效的。如果直通后发现选错了硬盘，可以使用命令 <code>qm set &lt;VMID&gt; --delete sata1</code> 来移除该设备。</li>
</ul>



<h2 class="wp-block-heading">飞牛硬盘安装好后，发现网络设置IPV4显示的是半双工，怎么改为全双工</h2>



<p>“半双工”是个非常明确的信号，就像两个人用对讲机，同一时间只能一方说话，数据传输效率自然减半。我们的核心诉求是解决这个网络瓶颈，让飞牛OS发挥出应有的性能。需要从诊断原因到提供解决方案，给出一个清晰的路径。</p>



<p>首先考虑的是最可能的原因。根据经验，网卡协商模式异常、网线质量问题、路由器/交换机端口限制或PVE虚拟化配置问题都可能导致半双工。用户环境是PVE虚拟机，所以虚拟网络适配器的设置需要优先检查。</p>



<p>搜索结果的质量参差不齐。像CSDN这类技术社区，信息虽然相关但权威性一般，而且有些内容比较零散，没有形成系统性的排查步骤。我们需要整合这些信息点，结合自己的知识，构建一个从易到难、从软到硬的完整排查流程。</p>



<p>从最简单的步骤开始。首先检查飞牛OS内部的网络设置，看看有没有强制模式的选项。然后快速排查物理层的网线和交换机端口，这是常见隐患点。接着深入到PVE的虚拟网络配置，这是用户环境特有的环节。最后再考虑更新驱动或调整更底层的PVE主机设置。这样一步步推进，操作起来会更有条理，也容易定位问题所在。</p>



<p>同时，我们需要记录当前的网络速度，以便和修复后的效果对比。毕竟“提高网速”是个相对目标，有数据对比才能明确改进效果。</p>



<p>在飞牛OS中看到IPv4显示为“半双工”，这确实是导致网络速度慢的<strong>关键原因</strong>。半双工意味着数据不能同时收发，网络效率会<strong>直接减半</strong>。</p>



<p>别担心，这通常不是硬件损坏，而是网络“协商”出了问题。我们可以按照从易到难的顺序，系统地排查和解决。</p>



<h3 class="wp-block-heading">🔍 问题诊断与解决步骤</h3>



<p>你可以按照以下流程图所示的路径，一步步排查，高效定位问题：</p>



<p>下面是对图中关键步骤的详细说明：</p>



<p><strong>第一步：检查物理连接（最优先）</strong> 这是最常见的原因，请务必先检查：</p>



<ol class="wp-block-list">
<li><strong>网线</strong>：更换一根<strong>质量可靠的超五类（Cat 5e）或更高规格的网线</strong>。劣质网线或线序错误极易导致协商降级。</li>



<li><strong>网口与交换机</strong>：将连接飞牛OS的网线，<strong>更换到路由器或交换机的另一个端口</strong>试试。有些交换机的特定端口可能存在问题。</li>
</ol>



<p><strong>第二步：检查PVE虚拟网络配置</strong> 由于飞牛OS运行在PVE虚拟机中，虚拟网卡的设置至关重要。</p>



<ol class="wp-block-list">
<li><strong>关机并检查网卡模型</strong>：在PVE Web界面，<strong>关闭</strong>飞牛OS虚拟机，进入其 <strong>“硬件”</strong> 选项卡，查看网络设备（<code>net0</code>）的 <strong>“模型”</strong>。
<ul class="wp-block-list">
<li><strong>最优选择</strong>：<code>VirtIO (半虚拟化)</code>。性能最好，但需要客户机系统（飞牛OS）有驱动。</li>



<li><strong>兼容选择</strong>：<code>Intel E1000</code> 或 <code>VMware vmxnet3</code>。兼容性极佳，通常能稳定协商为千兆全双工。</li>



<li><strong>操作</strong>：如果不是以上模型，建议<strong>删除现有网卡，重新添加一个，并将模型改为 <code>Intel E1000</code></strong> 进行测试。</li>
</ul>
</li>



<li><strong>调整MTU值</strong>：在同一个编辑界面，尝试将MTU值设置为标准的 <code>1500</code>。如果你确认整个网络环境（所有网卡、交换机）支持巨帧，也可以尝试 <code>9000</code>，但设置错误会导致网络中断，需谨慎。</li>
</ol>



<p><strong>第三步：在飞牛OS内部尝试固定模式</strong> 如果上述步骤无效，可以尝试在飞牛OS内部强制指定模式（这并非最优解，但可用于测试）。</p>



<ol class="wp-block-list">
<li>你需要通过 <strong>SSH</strong> 登录飞牛OS（通常需要在飞牛OS的“系统设置”中启用SSH服务）。</li>



<li>使用 <code>ethtool</code> 命令查看当前网卡状态（飞牛OS基于Linux，通常自带此命令）：ethtool eth0查看输出中的 “Speed”、“Duplex” 和 “Auto-negotiation” 字段。</li>



<li><strong>理论上</strong>，你可以用以下命令强制设置为千兆全双工（<strong>不推荐长期使用</strong>，仅用于诊断）：ethtool -s eth0 speed 1000 duplex full autoneg off<strong>注意</strong>：飞牛OS作为NAS系统，其网络配置界面可能较简化，强制设置可能在重启后失效，或与PVE层配置冲突，导致失联。请谨慎操作。</li>
</ol>



<p><strong>第四步：更新PVE主机与驱动</strong> 如果所有软硬件设置都正确但问题依旧，可能需要更新底层驱动。</p>



<ol class="wp-block-list">
<li><strong>更新PVE系统</strong>：在PVE Shell中执行 <code>apt update &amp;&amp; apt dist-upgrade</code> 更新系统，重启PVE主机。</li>



<li><strong>检查PVE主机网卡驱动</strong>：在PVE Shell执行 <code>lspci -v | grep -iA 10 ethernet</code>，查看物理网卡型号和驱动。搜索该型号是否有已知问题或需要更新驱动。</li>
</ol>



<h3 class="wp-block-heading">📊 如何验证结果？</h3>



<p>在飞牛OS的“网络设置”或通过SSH执行 <code>ethtool eth0</code> 命令，成功解决后，你应该能看到：</p>



<ul class="wp-block-list">
<li><strong>Speed: 1000Mb/s</strong></li>



<li><strong>Duplex: Full</strong></li>



<li><strong>Auto-negotiation: on</strong> （理想状态）</li>
</ul>



<h3 class="wp-block-heading">⚠️ 重要提醒</h3>



<p>在整个排查过程中，<strong>每次只进行一项修改</strong>，并测试网络状态，这样能准确定位是哪个步骤解决了问题。</p>



<p><strong>请先尝试第一步和第二步（更换网线、端口和调整PVE虚拟网卡模型），这能解决90%的类似问题。</strong></p>



<h2 class="wp-block-heading"><strong>精简步骤：</strong></h2>



<p>第一步：PVE里输入命令识别</p>



<pre class="wp-block-preformatted">lsblk<br>ls -l /dev/disk/by-id/<br>​<br>#找到如下ID<br>ata-WDC_WD6005FFBX-68CASN0_WD-AN3GEH1N<br>​<br>#使用以下命令挂载<br>root@pve:~# qm set 101 --sata1 /dev/disk/by-id/ata-WDC_WD6005FFBX-68CASN0_WD-AN3GEH1N<br>update VM 101: -sata1 /dev/disk/by-id/ata-WDC_WD6005FFBX-68CASN0_WD-AN3GEH1N</pre>



<h3 class="wp-block-heading">第二步：在PVE Web界面将硬盘直通给飞牛OS</h3>



<p>这里我们将物理硬盘直接“映射”给虚拟机，性能最好。</p>



<ol class="wp-block-list">
<li><strong>关闭虚拟机</strong>：在PVE Web界面中找到你的飞牛OS虚拟机，先将其<strong>关机</strong>。</li>



<li><strong>添加硬盘</strong>：
<ul class="wp-block-list">
<li>进入虚拟机的 <strong>“硬件”</strong> 选项卡。</li>



<li>点击 <strong>“添加”</strong> -&gt; <strong>“硬盘”</strong>。</li>
</ul>
</li>



<li><strong>关键配置</strong>：
<ul class="wp-block-list">
<li><strong>总线/设备</strong>：选择 <strong>SATA</strong> 或 <strong>SCSI</strong>。对于NAS系统，<code>SATA</code> 兼容性最佳。</li>



<li><strong>高级</strong>：勾选以显示更多选项。</li>



<li><strong>存储</strong>：在下拉菜单中选择 <strong>“未使用的磁盘”</strong> 或直接填写路径。</li>



<li><strong>最关键一步</strong>：在 <strong>“磁盘映像”</strong> 或 <strong>“路径”</strong> 输入框中，<strong>粘贴或手动输入你刚才复制的硬盘ID路径</strong>。格式应为：text/dev/disk/by-id/ata-WDC_WD6005FFBX-68CASN0_WD-AN3GEH1N（请替换为你自己复制的ID）</li>



<li>其他选项保持默认，点击 <strong>“添加”</strong>。</li>
</ul>
</li>



<li><strong>启动虚拟机</strong>：添加完成后，启动飞牛OS虚拟机。</li>
</ol>



<h3 class="wp-block-heading">第三步：在飞牛OS内部初始化新硬盘</h3>



<ol class="wp-block-list">
<li><strong>登录飞牛OS</strong>：通过浏览器访问飞牛OS的IP地址和管理界面。</li>



<li><strong>进入存储管理</strong>：在桌面上打开 <strong>“存储管理”</strong> 应用。</li>



<li><strong>识别硬盘</strong>：在磁盘列表中，你应该能看到两块硬盘：
<ul class="wp-block-list">
<li>一块较小的，是系统盘（可能已显示为“已使用”或挂载为系统分区）。</li>



<li>另一块容量很大的、状态为 <strong>“未初始化”</strong> 或 <strong>“未使用”</strong> 的新硬盘，这就是你刚直通的物理硬盘。</li>
</ul>
</li>



<li><strong>初始化并创建存储池</strong>：
<ul class="wp-block-list">
<li>选中这块新硬盘。</li>



<li>点击 <strong>“初始化”</strong> 或 <strong>“创建存储池”</strong>。</li>



<li><strong>存储池类型</strong>：因为是单盘，选择 <strong>“Basic (单盘)”</strong>。</li>



<li><strong>文件系统</strong>：<strong>强烈建议选择 <code>Btrfs</code></strong>，它是为NAS设计的功能强大的文件系统。</li>



<li>确认格式化（因为是全新空盘，无数据风险）。</li>
</ul>
</li>



<li><strong>创建共享文件夹</strong>：初始化完成后，进入 <strong>“文件管理”</strong> 或 <strong>“共享文件夹”</strong>，在新的存储池上创建你需要的共享文件夹（如“下载”、“媒体库”、“备份”等）。</li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://xrange.haoyong8.top/pve-fnos1/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
