<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>魅力博客</title><link>http://www.58zn.cn/</link><description>魅力Linux|魅力空间|魅力博客|学习Linux|ubuntu日记|电脑教程|手机软件</description><item><title>比特米盒Armbian_21.08.1_Ubuntu_CumeBox2_5.10.602安装宝塔面板</title><link>http://www.58zn.cn/html/blogview-1391.html</link><description>&lt;p&gt;安装好系统，进行更新一下：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;apt-get&amp;nbsp;update&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;apt-get&amp;nbsp;upgrade&lt;/pre&gt;&lt;p&gt;更新完成之后，重启一下：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;reboot&lt;/pre&gt;&lt;p&gt;重新进入ssh，然后检查一下源：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;vim&amp;nbsp;/etc/apt/sources.list&lt;/pre&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;deb&amp;nbsp;http://ports.ubuntu.com/&amp;nbsp;focal&amp;nbsp;main&amp;nbsp;restricted&amp;nbsp;universe&amp;nbsp;multiverse
deb&amp;nbsp;http://ports.ubuntu.com/&amp;nbsp;focal-security&amp;nbsp;main&amp;nbsp;restricted&amp;nbsp;universe&amp;nbsp;multiverse
deb&amp;nbsp;http://ports.ubuntu.com/&amp;nbsp;focal-updates&amp;nbsp;main&amp;nbsp;restricted&amp;nbsp;universe&amp;nbsp;multiverse
deb&amp;nbsp;http://ports.ubuntu.com/&amp;nbsp;focal-backports&amp;nbsp;main&amp;nbsp;restricted&amp;nbsp;universe&amp;nbsp;multiverse&lt;/pre&gt;&lt;p&gt;如果像上面这样的，请改为：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;deb&amp;nbsp;http://mirrors.aliyun.com/ubuntu-ports&amp;nbsp;focal&amp;nbsp;main&amp;nbsp;restricted&amp;nbsp;universe&amp;nbsp;multiverse
deb&amp;nbsp;http://mirrors.aliyun.com/ubuntu-ports&amp;nbsp;focal-updates&amp;nbsp;main&amp;nbsp;restricted&amp;nbsp;universe&amp;nbsp;multiverse
deb&amp;nbsp;http://mirrors.aliyun.com/ubuntu-ports&amp;nbsp;focal-backports&amp;nbsp;main&amp;nbsp;restricted&amp;nbsp;universe&amp;nbsp;multiverse
deb&amp;nbsp;http://mirrors.aliyun.com/ubuntu-ports&amp;nbsp;focal-security&amp;nbsp;main&amp;nbsp;restricted&amp;nbsp;universe&amp;nbsp;multiverse&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;原因：&lt;/span&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;CumeBox2 使用 ‌aarch64‌ 架构，需专用 ARM 源路径。确保使用的是适合ARM架构的镜像源（即ubuntu-ports），并且版本代号正确（focal）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;替换好之后，按ESC，再输入 :wq推出vim&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;清理APT缓存并强制刷新缓存&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;rm&amp;nbsp;-rf&amp;nbsp;/var/lib/apt/lists/*&amp;nbsp;&amp;nbsp;#&amp;nbsp;清除污染缓存
sudo&amp;nbsp;apt&amp;nbsp;clean
sudo&amp;nbsp;apt&amp;nbsp;update&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;/span&gt;验证网络访问是否正常：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;#&amp;nbsp;测试镜像站连通性
curl&amp;nbsp;-I&amp;nbsp;http://mirrors.aliyun.com/ubuntu-ports/dists/focal/Release&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;正常响应应返回 HTTP/1.1 200 OK&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;验证网络正常后，再次执行更新：&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;apt-get&amp;nbsp;update&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;apt-get&amp;nbsp;upgrade&lt;/pre&gt;&lt;p&gt;然后安装一些支持库：&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;apt&amp;nbsp;install&amp;nbsp;libssl-dev&amp;nbsp;build-essential&amp;nbsp;libffi-dev&amp;nbsp;libncurses5-dev&amp;nbsp;libsqlite3-dev&amp;nbsp;-y
sudo&amp;nbsp;apt-get&amp;nbsp;install&amp;nbsp;python-setuptools
#&amp;nbsp;安装pkg-config
sudo&amp;nbsp;apt&amp;nbsp;install&amp;nbsp;pkg-config&amp;nbsp;-y&lt;/pre&gt;&lt;p&gt;最后再开始安装宝塔面板：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;wget&amp;nbsp;-O&amp;nbsp;install.sh&amp;nbsp;http://download.bt.cn/install/install-ubuntu_6.0.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;bash&amp;nbsp;install.sh&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;如果这个命令安装失败，使用另一个命令：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;wget&amp;nbsp;-O&amp;nbsp;install.sh&amp;nbsp;http://download.bt.cn/install/install-ubuntu.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;sudo&amp;nbsp;bash&amp;nbsp;install.sh&lt;/pre&gt;&lt;p&gt;经过近1个小时的安装，终于宝塔面板安装成功，xshell提示如下：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;Installing&amp;nbsp;collected&amp;nbsp;packages:&amp;nbsp;pycparser,&amp;nbsp;cffi,&amp;nbsp;cryptography,&amp;nbsp;pyOpenSSl
Stopping&amp;nbsp;Bt-Tasks...	done
Stopping&amp;nbsp;Bt-Panel...	done
Starting&amp;nbsp;Bt-Panel....	done
Starting&amp;nbsp;Bt-Tasks...&amp;nbsp;Bt-Tasks&amp;nbsp;(pid&amp;nbsp;54583)&amp;nbsp;already&amp;nbsp;running
受信ip证书申请失败，exit&amp;nbsp;code=000
转为使用默认自签证书，后续可手动在面板设置中重新使用Let&amp;#39;s&amp;nbsp;encrypt申请ip证书
安装基础网站流量统计程序...
安装基础网站流量统计程序完成
==================================================================
Congratulations!&amp;nbsp;Installed&amp;nbsp;successfully!

========================面板账户登录信息==========================

&amp;nbsp;【云服务器】请在安全组放行&amp;nbsp;14054&amp;nbsp;端口
&amp;nbsp;外网ipv4面板地址:&amp;nbsp;https://xx.xxx.xxx.xx:xxxx/1849xxxb
&amp;nbsp;内网面板地址:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;https://192.168.99.177:xxxx/184xxxb
&amp;nbsp;username:&amp;nbsp;xxxvxxx
&amp;nbsp;password:&amp;nbsp;xxxxxxxx

&amp;nbsp;浏览器访问以下链接，添加宝塔客服
&amp;nbsp;https://www.bt.cn/new/wechat_customer
==================================================================
Time&amp;nbsp;consumed:&amp;nbsp;50&amp;nbsp;Minute!
CumeBox2:~:#&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;/span&gt;如果提示：sudo: pip:command not found问题解决&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;#不建议使用
sudo&amp;nbsp;apt-get&amp;nbsp;install&amp;nbsp;python3-pip&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;如果无法访问web面板，请开放端口： &lt;a href=&quot;http://www.58zn.cn/html/blogview-1341.html&quot; target=&quot;_blank&quot;&gt;CentOS防火墙操作：开启端口、开启、关闭、配置&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;至此基本没有错误问题了，再有错误提示请AI问答解决。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;现在应该能顺利安装宝塔面板了，现在是6.0版本。不建议安装最新版本。更建议安装5.9版本。&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;==========附带一个nano文本操作软件的使用方法：============&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;nano 是一个简单易用的命令行文本编辑器，特别适合初学者快速上手。以下是其主要用法和操作指南：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;📝 启动与基本操作&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;启动 nano‌：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;打开空缓冲区：nano&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;打开或创建文件：nano filename&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;保存文件‌：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;快捷键：Ctrl + O（Write Out）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;按回车确认文件名（默认与原文件一致）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;若需修改文件名，输入新文件名后按回车&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;退出 nano‌：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;快捷键：Ctrl + X（Exit）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;若文件有未保存更改，会提示是否保存&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;选择：Y（保存并退出）、N（不保存退出）、Ctrl + C（取消退出）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;⌨️ 常用快捷键&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;光标移动‌：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Ctrl + B（左移）、Ctrl + F（右移）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Ctrl + P（上移）、Ctrl + N（下移）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Ctrl + A（行首）、Ctrl + E（行尾）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;编辑操作‌：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Ctrl + K（剪切当前行）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Ctrl + U（粘贴剪切内容）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Ctrl + C（显示光标位置）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Ctrl + _（跳转到指定行）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;搜索与替换‌：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Ctrl + W（向前搜索）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Ctrl + \（替换文本）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Alt + Q（向后搜索）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Alt + W（向前搜索下一个匹配项）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;🎨 高级功能&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;语法高亮‌：通过配置文件启用&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;行号显示‌：使用 nano -l filename 或 Alt + C 切换&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;自动缩进‌：使用 Alt + I 启用&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;只读模式‌：使用 nano -v filename 以只读方式打开&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;🔧 常用选项&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;nano --help：显示帮助信息&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;nano --version：显示版本号&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;nano -l filename：打开文件并显示行号&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;nano -v filename：以只读模式打开文件&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;📁 文件操作&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;插入文件‌：Ctrl + R（Read File）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;查找与替换‌：Ctrl + W（Where Is）和 Ctrl + \（Replace）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;撤销操作‌：Ctrl + _（Undo）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;💡 使用技巧&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;快速保存‌：保存后直接按回车继续编辑&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;批量操作‌：使用 Alt + A 标记文本，再用 Ctrl + K 剪切&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;多文件编辑‌：使用 Alt + F 新建标签页&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;权限处理‌：若权限不足，可用 sudo nano filename 以管理员权限编辑&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;==========附带一个vim文本编辑的使用方法：============&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;一、核心模式与切换‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;命令模式（Normal Mode）‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;启动 Vim 的默认模式，用于导航和执行命令。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;切换方式‌：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Esc 键：从其他模式返回命令模式。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;启动 Vim 后自动进入。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;插入模式（Insert Mode）‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;用于输入/编辑文本。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;进入方式‌（命令模式下）：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;i：光标前插入&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;a：光标后插入&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;o：当前行下方新建行&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;O：当前行上方新建行&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;末行模式（Command-Line Mode）‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;执行保存、退出等高级命令。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;进入方式‌：命令模式下按 :&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;table&gt;&lt;thead style=&quot;margin: 0px; padding: 0px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; position: relative;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; color: rgb(132, 134, 145); overflow: hidden;&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;margin: 0px; padding: 10.5px 16px 7.5px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 212px; background: rgb(255, 255, 255); border-top-color: rgb(237, 238, 240); border-bottom-color: rgb(237, 238, 240); border-right-color: rgb(237, 238, 240); border-left: none; font-weight: 500; -webkit-text-stroke-color: rgb(51, 51, 51); border-radius: 0px; color: rgb(51, 51, 51); vertical-align: top;&quot;&gt;命令&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 10.5px 16px 7.5px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 212px; background: rgb(255, 255, 255); border-top-color: rgb(237, 238, 240); border-bottom-color: rgb(237, 238, 240); border-right: none; font-weight: 500; -webkit-text-stroke-color: rgb(51, 51, 51); border-left-color: rgb(237, 238, 240); border-radius: 0px; color: rgb(51, 51, 51); vertical-align: top;&quot;&gt;功能&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;margin: 0px; padding: 0px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 10.5px 16px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 66vw; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-bottom-color: rgb(237, 238, 240); border-right-color: rgb(237, 238, 240); position: relative; border-left: none; border-top-color: rgb(237, 238, 240); overflow: hidden;&quot;&gt;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;:w&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 10.5px 16px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 66vw; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-bottom-color: rgb(237, 238, 240); border-right: none; position: relative; border-top-color: rgb(237, 238, 240); border-left-color: rgb(237, 238, 240); overflow: hidden;&quot; width=&quot;NaN&quot;&gt;保存文件&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 10.5px 16px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 66vw; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-bottom-color: rgb(237, 238, 240); border-right-color: rgb(237, 238, 240); position: relative; border-left: none; border-top-color: rgb(237, 238, 240); overflow: hidden;&quot;&gt;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;:q&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 10.5px 16px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 66vw; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-bottom-color: rgb(237, 238, 240); border-right: none; position: relative; border-top-color: rgb(237, 238, 240); border-left-color: rgb(237, 238, 240); overflow: hidden;&quot; width=&quot;NaN&quot;&gt;退出 Vim&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 10.5px 16px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 66vw; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-bottom-color: rgb(237, 238, 240); border-right-color: rgb(237, 238, 240); position: relative; border-left: none; border-top-color: rgb(237, 238, 240); overflow: hidden;&quot;&gt;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;:q!&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 10.5px 16px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 66vw; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-bottom-color: rgb(237, 238, 240); border-right: none; position: relative; border-top-color: rgb(237, 238, 240); border-left-color: rgb(237, 238, 240); overflow: hidden;&quot; width=&quot;NaN&quot;&gt;强制退出（不保存）&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 10.5px 16px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 66vw; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-bottom-color: rgb(237, 238, 240); border-right-color: rgb(237, 238, 240); position: relative; border-left: none; border-top-color: rgb(237, 238, 240); overflow: hidden;&quot;&gt;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;:wq&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 10.5px 16px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 66vw; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-bottom-color: rgb(237, 238, 240); border-right: none; position: relative; border-top-color: rgb(237, 238, 240); border-left-color: rgb(237, 238, 240); overflow: hidden;&quot; width=&quot;NaN&quot;&gt;保存并退出&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 10.5px 16px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 66vw; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-bottom-color: rgb(237, 238, 240); border-right-color: rgb(237, 238, 240); position: relative; border-left: none; border-top-color: rgb(237, 238, 240); overflow: hidden; border-bottom-left-radius: 9px;&quot;&gt;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;:e 文件名&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 10.5px 16px; scrollbar-width: thin; scrollbar-color: rgba(183, 185, 193, 0.6) transparent; -webkit-font-smoothing: antialiased; box-sizing: border-box; max-width: 66vw; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-bottom-color: rgb(237, 238, 240); border-right: none; position: relative; border-top-color: rgb(237, 238, 240); border-left-color: rgb(237, 238, 240); overflow: hidden; border-bottom-right-radius: 9px;&quot; width=&quot;NaN&quot;&gt;打开其他文件&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;===================================&lt;br/&gt;&lt;/p&gt;&lt;p&gt;以下为玩客云更新源的文章：&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;/html/blogview-1353.html&quot; target=&quot;_blank&quot; title=&quot;玩客云Armbian_23.08.0-trunk_Onecloud_bookworm_edge_6.4.14.burn配置&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;/html/blogview-1353.html&quot; target=&quot;_blank&quot; title=&quot;玩客云Armbian_23.08.0-trunk_Onecloud_bookworm_edge_6.4.14.burn配置&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.58zn.cn/html/blogview-1353.html&quot; target=&quot;_blank&quot; title=&quot;玩客云Armbian_23.08.0-trunk_Onecloud_bookworm_edge_6.4.14.burn配置&quot;&gt;玩客云Armbian_23.08.0-trunk_Onecloud_bookworm_edge_6.4.14.burn配置&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 class=&quot;post-title&quot; style=&quot;font-weight: normal; margin: 0px; padding: 0px 0px 1em; font-size: 1.4em; line-height: 1.5em; width: 635.031px; color: rgb(51, 51, 51); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;PingFang SC&amp;quot;, MingLiu, STHeiti, MicrosoftJhengHei, &amp;quot;Microsoft YaHei&amp;quot;, SimHei; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;http://www.58zn.cn/html/blogview-1339.html&quot; target=&quot;_blank&quot; title=&quot;玩客云刷armbian5.9安装宝塔7.7&quot;&gt;玩客云刷armbian5.9安装宝塔7.7&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 09 Mar 2026 22:05:21 +0800</pubDate></item><item><title>50 个 Linux 命令</title><link>http://www.58zn.cn/html/blogview-1390.html</link><description>&lt;h1 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 10px; outline: 0px; font-size: 28px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(228, 86, 73); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 2px solid rgba(228, 86, 73, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;一、系统状态类&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;1. top（看实时进程和系统状态）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;永不过时的命令，CPU 占用、内存爆炸、僵尸进程，全靠它。&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;code-block&quot;&gt;top&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480589747833.png&quot; title=&quot;1.png&quot; alt=&quot;1.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;进阶推荐：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;top&amp;nbsp;-p&amp;nbsp;&amp;lt;pid&amp;gt;&lt;/pre&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;盯一个关键进程特别好用。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;2. htop（top 的更高级版本）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;如果你的系统装了它，请优先用它，可视化强太多。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480609883875.png&quot; title=&quot;2.png&quot; alt=&quot;2.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;3. uptime（看系统运行时长与负载）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;排查“是不是机器挂过”第一步。&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;uptime&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480630513016.png&quot; title=&quot;3.png&quot; alt=&quot;3.png&quot;/&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;4. free（看内存）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;运维现场听到最多的句式是：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;“咦？这台机器怎么没内存了？”&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;第一步永远是：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;free&amp;nbsp;-m&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480654390131.png&quot; title=&quot;4.png&quot; alt=&quot;4.png&quot;/&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;5. vmstat（性能分析入门）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;观察 CPU、IO、swap 的黄金命令：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;vmstat&amp;nbsp;1&amp;nbsp;5&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480686507469.png&quot; title=&quot;5.png&quot; alt=&quot;5.png&quot;/&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;6. iostat（观察磁盘 IO）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;IO 是否打满，看它足够。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480702539487.png&quot; title=&quot;6.png&quot; alt=&quot;6.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;7. df（磁盘空间）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;99% 的线上事故不是 bug，是磁盘满了：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;df&amp;nbsp;-h&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480722642491.png&quot; title=&quot;7.png&quot; alt=&quot;7.png&quot;/&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;8. du（查看目录大小）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;查谁撑满磁盘的首选：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;du&amp;nbsp;-sh&amp;nbsp;*&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;9. ps（查看进程）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;查服务死没死、挂没挂、启动了几个：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;ps&amp;nbsp;aux&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;nginx&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;10. kill / killall（杀进程）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;温柔 kill 不掉？&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;kill&amp;nbsp;-9&lt;/pre&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;万能大锤，但别乱砸。&lt;/span&gt;&lt;/p&gt;&lt;h1 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 10px; outline: 0px; font-size: 28px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(228, 86, 73); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 2px solid rgba(228, 86, 73, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;二、网络类&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;11. ip（IP、路由、链路管理）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;现代 Linux 必选：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;ip&amp;nbsp;aip&amp;nbsp;routeip&amp;nbsp;neigh&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;12. ss（查看端口与连接）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;比 netstat 快、准、美。&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;ss&amp;nbsp;-tunlp&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480744136616.png&quot; title=&quot;8.png&quot; alt=&quot;8.png&quot;/&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;13. ping（网络连通性）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;测试“不是网络的问题”的起点。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;14. traceroute（路径探测）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;判断流量走了哪条路。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;15. mtr（综合 ping + 路由）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;网工定位问题神器。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;16. curl（测试 HTTP、API 接口）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;万能的协议瑞士军刀：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;curl&amp;nbsp;-I&amp;nbsp;https://www.baidu.com&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480783249283.png&quot; title=&quot;9.png&quot; alt=&quot;9.png&quot;/&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;17. wget（下载工具）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;拉镜像、拉配置、拉脚本都靠它。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;18. dig（DNS 分析）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;网工的灵魂技能：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;dig&amp;nbsp;+trace&amp;nbsp;baidu.com19.&amp;nbsp;tcpdump（抓包）&lt;/pre&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480804693522.png&quot; title=&quot;10.png&quot; alt=&quot;10.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;Wireshark 的 CLI 兄弟，处理线上最强：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;tcpdump&amp;nbsp;-i&amp;nbsp;eth0&amp;nbsp;port&amp;nbsp;80&amp;nbsp;-nn&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;20. ethtool（查看网卡状态）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;排查“网卡是不是抽风”的关键命令。&lt;/span&gt;&lt;/p&gt;&lt;hr style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: initial; text-wrap-mode: wrap; height: 1px; overflow: visible; border: none; background-color: rgb(229, 229, 230); color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 16px; overflow-wrap: break-word !important;&quot;/&gt;&lt;h1 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 10px; outline: 0px; font-size: 28px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(228, 86, 73); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 2px solid rgba(228, 86, 73, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;三、文件与目录类&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;21. ls（列目录）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;ls&amp;nbsp;-l&lt;/pre&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;永不过时。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;22. cd（切目录）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;人人会，却永远重要。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;23. cp（复制文件）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;加&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 0px 2px; padding: 2px 5px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word; font-size: 14.4px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; border-radius: 3px; color: rgb(228, 86, 73); background-color: rgb(242, 242, 242); word-break: break-all; border: 1px solid rgb(229, 229, 230);&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;-r&lt;/span&gt;&lt;/code&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;&amp;nbsp;复制目录，加&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 0px 2px; padding: 2px 5px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word; font-size: 14.4px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; border-radius: 3px; color: rgb(228, 86, 73); background-color: rgb(242, 242, 242); word-break: break-all; border: 1px solid rgb(229, 229, 230);&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;-a&lt;/span&gt;&lt;/code&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;&amp;nbsp;完整复制元信息。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;24. mv（移动/改名）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;上线时最常用的“平滑切换”技巧：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;mv&amp;nbsp;app_v2&amp;nbsp;app&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;25. rm（删除）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;慎用：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;rm&amp;nbsp;-rf&amp;nbsp;/&lt;/pre&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;退役之前千万不要试。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;26. mkdir（新建目录）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;mkdir&amp;nbsp;-p&amp;nbsp;/opt/nginx/conf&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;27. touch（新建文件）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;零字节文件生成最快方法。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;28. cat（阅读文件）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;轻量方便。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;29. more / less（翻页看文件）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;less 真的比 more 好用太多：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;less&amp;nbsp;/var/log/messages&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;30. head / tail（查看前/后 N 行）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;线上排错最常用的是：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;tail&amp;nbsp;-f&amp;nbsp;app.log&lt;/pre&gt;&lt;hr style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: initial; text-wrap-mode: wrap; height: 1px; overflow: visible; border: none; background-color: rgb(229, 229, 230); color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 16px; overflow-wrap: break-word !important;&quot;/&gt;&lt;h1 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 10px; outline: 0px; font-size: 28px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(228, 86, 73); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 2px solid rgba(228, 86, 73, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;四、文本处理类&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;有两类网工：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;一类拿 Excel 分析日志；&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;另一类会用这些命令。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;31. grep（文本搜索）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;最实用的命令之一：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;grep&amp;nbsp;-R&amp;nbsp;&amp;quot;error&amp;quot;&amp;nbsp;/var/log/&lt;/pre&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480841219448.png&quot; title=&quot;11.png&quot; alt=&quot;11.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;text-wrap-mode: wrap; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;32. awk&lt;span style=&quot;text-wrap-mode: wrap;&quot;&gt;（文本切割、分析）&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;可以替代 Excel 的强大工具：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;awk&amp;nbsp;&amp;#39;{print&amp;nbsp;$1,$3}&amp;#39;&amp;nbsp;access.log&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;33. sed（文本替换）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;无需编辑器的行级改动：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;sed&amp;nbsp;-i&amp;nbsp;&amp;#39;s/http/https/g&amp;#39;&amp;nbsp;config.txt&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;34. sort（排序）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;sort&amp;nbsp;-n&amp;nbsp;data.txt&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;35. uniq（去重）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;经常与 sort 联用：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;sort&amp;nbsp;access.log&amp;nbsp;|&amp;nbsp;uniq&amp;nbsp;-c&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;36. cut（按列提取）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;cut&amp;nbsp;-d&amp;#39;:&amp;#39;&amp;nbsp;-f1&amp;nbsp;/etc/passwd&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;37. tr（字符替换）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;大小写转换神器：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;tr&amp;nbsp;&amp;#39;a-z&amp;#39;&amp;nbsp;&amp;#39;A-Z&amp;#39;&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;38. wc（统计字数、行数）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;wc&amp;nbsp;-l&amp;nbsp;logs.txt&lt;/pre&gt;&lt;hr style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: initial; text-wrap-mode: wrap; height: 1px; overflow: visible; border: none; background-color: rgb(229, 229, 230); color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 16px; overflow-wrap: break-word !important;&quot;/&gt;&lt;h1 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 10px; outline: 0px; font-size: 28px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(228, 86, 73); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 2px solid rgba(228, 86, 73, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;五、用户与权限类&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;39. useradd / userdel（管理用户）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;40. passwd（改密码）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;41. su / sudo（权限提升）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;安全体系中最常见的操作。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;42. chmod（修改权限）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;必会命令：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;chmod&amp;nbsp;755&amp;nbsp;run.sh&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;43. chown（修改文件归属）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;chown&amp;nbsp;root:root&amp;nbsp;/etc/sysctl.conf&lt;/pre&gt;&lt;hr style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: initial; text-wrap-mode: wrap; height: 1px; overflow: visible; border: none; background-color: rgb(229, 229, 230); color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 16px; overflow-wrap: break-word !important;&quot;/&gt;&lt;h1 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 10px; outline: 0px; font-size: 28px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(228, 86, 73); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 2px solid rgba(228, 86, 73, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;六、系统服务类&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;44. systemctl（服务管理）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;自从 systemd 统治世界之后：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;systemctl&amp;nbsp;status&amp;nbsp;nginxsystemctl&amp;nbsp;restart&amp;nbsp;nginx&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;45. journalctl（日志管理）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;真正强大的系统日志命令：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;journalctl&amp;nbsp;-u&amp;nbsp;nginx&amp;nbsp;--since&amp;nbsp;&amp;quot;10&amp;nbsp;min&amp;nbsp;ago&amp;quot;&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;46. service（旧版服务管理）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;老系统依然活跃。&lt;/span&gt;&lt;/p&gt;&lt;hr style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: initial; text-wrap-mode: wrap; height: 1px; overflow: visible; border: none; background-color: rgb(229, 229, 230); color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 16px; overflow-wrap: break-word !important;&quot;/&gt;&lt;h1 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 10px; outline: 0px; font-size: 28px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(228, 86, 73); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 2px solid rgba(228, 86, 73, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;七、压缩与打包类&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;47. tar（打包压缩）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;最常用：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;tar&amp;nbsp;-zcvf&amp;nbsp;backup.tar.gz&amp;nbsp;/data&lt;/pre&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;48. unzip / zip（文件压缩）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;hr style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 20px 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: initial; text-wrap-mode: wrap; height: 1px; overflow: visible; border: none; background-color: rgb(229, 229, 230); color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 16px; overflow-wrap: break-word !important;&quot;/&gt;&lt;h1 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 10px; outline: 0px; font-size: 28px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(228, 86, 73); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 2px solid rgba(228, 86, 73, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;八、系统管理与环境类&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;49. crontab（定时任务）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 10px; margin-bottom: 10px; padding: 8px 0px; outline: 0px; max-width: 100%; box-sizing: border-box; clear: both; min-height: 1em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 16px; line-height: 1.7; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;定期备份、定期同步都靠它：&lt;/span&gt;&lt;/p&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;crontab&amp;nbsp;-e&lt;/pre&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601151768480924825902.png&quot; title=&quot;12.png&quot; alt=&quot;12.png&quot;/&gt;&lt;/p&gt;&lt;figure style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 10px 8px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); display: flex; flex-direction: column; justify-content: center; align-items: center; color: rgb(56, 58, 66); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 16px; overflow-wrap: break-word !important;&quot;&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 25px 0px 15px; padding: 0px 0px 8px; outline: 0px; font-size: 24px; max-width: 100%; box-sizing: border-box; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(64, 120, 242); font-family: Menlo, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; line-height: 1.5; border-bottom: 1px solid rgba(64, 120, 242, 0.2); overflow-wrap: break-word !important;&quot;&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;50. env / export（环境变量）&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;pre style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 18px; margin-bottom: 18px; padding: 15px; outline: 0px; max-width: 100%; box-sizing: border-box; font-size: 16px; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; overflow: auto; background-color: rgb(242, 242, 242); border-radius: 5px; border: 1px solid rgb(229, 229, 230); box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px; color: rgb(56, 58, 66); overflow-wrap: break-word !important;&quot;&gt;export&amp;nbsp;PATH=/usr/local/bin:$PATH&lt;/pre&gt;&lt;p style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin-top: 0px; margin-bottom: 0px; padding: 0px; outline: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgba(0, 0, 0, 0.9); font-family: &amp;quot;PingFang SC&amp;quot;, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei UI&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Arial, sans-serif; font-size: 17px; letter-spacing: 0.544px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;&lt;span leaf=&quot;&quot; style=&quot;-webkit-tap-highlight-color: ; margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;&gt;&lt;br style=&quot;-webkit-tap-highlight-color: rgba(0, 0, 0, 0); margin: 0px; padding: 0px; outline: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 15 Jan 2026 20:24:40 +0800</pubDate></item><item><title>360T7 刷机步骤及固件</title><link>http://www.58zn.cn/html/blogview-1389.html</link><description>&lt;p style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);margin-top: 1.5em;margin-bottom: 1.5em;font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, &amp;#39;Droid Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Hiragino Sans GB&amp;#39;, &amp;#39;Droid Sans Fallback&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, sans-serif;font-size: 17px;text-wrap-mode: wrap;background-color: rgb(255, 255, 255)&quot;&gt;360T7的固件支持由immortalwrt-mt798x项目提供支持，请参考：&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, &amp;#39;Droid Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Hiragino Sans GB&amp;#39;, &amp;#39;Droid Sans Fallback&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, sans-serif;font-size: 17px;text-wrap-mode: wrap;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://cmi.hanwckf.top/p/immortalwrt-mt798x&quot; target=&quot;_blank&quot;&gt;https://cmi.hanwckf.top/p/immortalwrt-mt798x&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/hanwckf/immortalwrt-mt798x&quot; target=&quot;_blank&quot;&gt;https://github.com/hanwckf/immortalwrt-mt798x&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr style=&quot;box-sizing: content-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);height: 2px;overflow: visible;width: 100px;margin: 40px auto;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(186, 186, 186);border: 0px;opacity: 0.55;font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, &amp;#39;Droid Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Hiragino Sans GB&amp;#39;, &amp;#39;Droid Sans Fallback&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, sans-serif;font-size: 17px;text-wrap-mode: wrap&quot;/&gt;&lt;h2 id=&quot;刷机步骤&quot; style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);padding-inline-start: 26px;border-inline-start: 4px solid rgb(52, 73, 94);font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, &amp;#39;Droid Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Hiragino Sans GB&amp;#39;, &amp;#39;Droid Sans Fallback&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, sans-serif;text-wrap-mode: wrap;background-color: rgb(255, 255, 255)&quot;&gt;刷机步骤&lt;/h2&gt;&lt;ol style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, &amp;#39;Droid Sans&amp;#39;, &amp;#39;Helvetica Neue&amp;#39;, &amp;#39;PingFang SC&amp;#39;, &amp;#39;Hiragino Sans GB&amp;#39;, &amp;#39;Droid Sans Fallback&amp;#39;, &amp;#39;Microsoft YaHei&amp;#39;, sans-serif;font-size: 17px;text-wrap-mode: wrap;background-color: rgb(255, 255, 255)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot;&gt;参考&lt;a href=&quot;/html/blogview-1388.html&quot; target=&quot;_blank&quot;&gt;此处&lt;/a&gt;的办法开启原厂固件的UART和telnet功能&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot;&gt;在以下链接下载360T7测试固件（纯净版，无任何插件）&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://wwd.lanzout.com/b0bt9idwd&quot; target=&quot;_blank&quot;&gt;https://wwd.lanzout.com/b0bt9idwd&lt;/a&gt;&amp;nbsp;密码:ezex （此固件已过时，请选择其它更新的固件）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;新版108M版本固件&lt;span style=&quot;color: #444444; font-family: Tahoma, Helvetica, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;下载地址：&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://sssddddff.lanzouo.com/b0knegtng&quot; target=&quot;_blank&quot; title=&quot;https://sssddddff.lanzouo.com/b0knegtng&quot;&gt;https://sssddddff.lanzouo.com/b0knegtng&lt;/a&gt;&lt;span style=&quot;color: #444444; font-family: Tahoma, Helvetica, &amp;quot;Microsoft Yahei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;密码:8vkg(原帖地址：&lt;a href=&quot;https://www.right.com.cn/forum/thread-8263340-1-1.html&quot; target=&quot;_blank&quot; title=&quot;https://www.right.com.cn/forum/thread-8263340-1-1.html&quot; textvalue=&quot;贝尔/ASR3000/小米AX3000T/360 t7/RAX3000M/JCG q30 7981高功率闭源驱动插件openwrt-OPENWRT专版-恩山无线论坛&quot;&gt;贝尔/ASR3000/小米AX3000T/360 t7/RAX3000M/JCG q30 7981高功率闭源驱动插件openwrt-OPENWRT专版-恩山无线论坛&lt;/a&gt;)&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot;&gt;接下来将刷入修改版uboot。修改版uboot的优点有：&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: lower-alpha;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;固件分区可达108MB，原厂uboot只能使用36M&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;自带一个简单的webui恢复页面&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot;&gt;到以下仓库的Release页面下载uboot，目前暂时仅支持360T7，后续将支持更多mt798x路由器。&lt;span style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: #D9D9D9 ;font-weight: bolder&quot;&gt;推荐使用&lt;code style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size: 1em;color: rgb(128, 128, 128);background-color: rgba(0, 0, 0, 0.12);padding: 2px 4px;border-radius: 4px&quot;&gt;mt7981_360t7-fip-fixed-parts.bin&lt;/code&gt;，&lt;code style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size: 1em;color: rgb(128, 128, 128);background-color: rgba(0, 0, 0, 0.12);padding: 2px 4px;border-radius: 4px&quot;&gt;fixed-parts&lt;/code&gt;代表uboot分区表在编译期间固定，不会随着uboot环境变量变化。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot;&gt;&lt;a href=&quot;https://github.com/hanwckf/bl-mt798x/releases/latest&quot; target=&quot;_blank&quot;&gt;https://github.com/hanwckf/bl-mt798x/releases/latest&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot;&gt;将&lt;code style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size: 1em;color: rgb(128, 128, 128);background-color: rgba(0, 0, 0, 0.12);padding: 2px 4px;border-radius: 4px&quot;&gt;mt7981_360t7-fip-fixed-parts.bin&lt;/code&gt;通过HFS等方式上传到路由器，使用以下命令刷入uboot&lt;/p&gt;&lt;table width=&quot;822&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);display: block;width: 822px&quot;&gt;&lt;tr style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);display: flex;width: 822px&quot; class=&quot;firstRow&quot;&gt;&lt;td style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);padding: 0px;border-width: 0px;border-style: initial;border-color: initial;vertical-align: top&quot;&gt;&lt;pre tabindex=&quot;0&quot; style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size: 1em;overflow-x: auto;background-color: rgb(250, 250, 250);line-height: 1.42857;padding: 0px;margin-top: 0px;margin-bottom: 0px;width: auto&quot;&gt;1&lt;/pre&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);padding: 0px;border-width: 0px;border-style: initial;border-color: initial;vertical-align: top;overflow-x: auto&quot;&gt;&lt;pre tabindex=&quot;0&quot; style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size: 1em;overflow-x: auto;background-color: rgb(250, 250, 250);line-height: 1.42857;padding: 0px;margin-top: 0px;margin-bottom: 0px;width: auto&quot;&gt;mtd&amp;nbsp;write&amp;nbsp;mt7981_360t7-fip-fixed-parts.bin&amp;nbsp;fip&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;button style=&quot;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: inherit;font-size: 14px;line-height: 1.15;overflow: visible;appearance: button;position: absolute;top: 30px;right: 30px;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255);border-width: initial;border-style: none;border-color: initial;box-shadow: rgba(0, 0, 0, 0.04) 0px 10px 20px 0px, rgba(0, 0, 0, 0.04) 0px 2px 6px 0px, rgba(0, 0, 0, 0.04) 0px 0px 1px 0px;border-radius: 4px;padding: 8px 16px;color: rgb(0, 0, 0);cursor: pointer;opacity: 0;transition: opacity 0.3s&quot;&gt;Copy&lt;/button&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot;&gt;确认刷入完毕后，拔掉路由器电源。然后将电脑的IP地址设置为固定的&lt;code style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size: 1em;color: rgb(128, 128, 128);background-color: rgba(0, 0, 0, 0.12);padding: 2px 4px;border-radius: 4px&quot;&gt;192.168.1.2&lt;/code&gt;，接着按住路由器的RESET按钮后通电开机，等待8s后用浏览器进入&lt;code style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size: 1em;color: rgb(128, 128, 128);background-color: rgba(0, 0, 0, 0.12);padding: 2px 4px;border-radius: 4px&quot;&gt;192.168.1.1&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot;&gt;在uboot恢复页面选择要刷入的固件。immortalwrt-mt798x目前编译两个版本的360T7固件。&lt;span style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: #D9D9D9 ;font-weight: bolder&quot;&gt;建议修改版uboot直接使用&lt;code style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size: 1em;color: rgb(128, 128, 128);background-color: rgba(0, 0, 0, 0.12);padding: 2px 4px;border-radius: 4px&quot;&gt;immortalwrt-mediatek-mt7981-mt7981-360-t7-108M-squashfs-factory.bin&lt;/code&gt;&lt;/span&gt;，两种固件区别如下：&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;code style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size: 1em;color: rgb(128, 128, 128);background-color: rgba(0, 0, 0, 0.12);padding: 2px 4px;border-radius: 4px&quot;&gt;mt7981-360-t7-108M&lt;/code&gt;为108M固件分区，原厂uboot不可启动，需要修改版uboot才能启动&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;code style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0);font-family: Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size: 1em;color: rgb(128, 128, 128);background-color: rgba(0, 0, 0, 0.12);padding: 2px 4px;border-radius: 4px&quot;&gt;mt7981-360-t7&lt;/code&gt;为原厂36M固件分区，原厂uboot可以启动&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box;scrollbar-width: auto;scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0)&quot;&gt;等待机器重启即可&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601091767968693365187.jpg&quot; title=&quot;3.jpg&quot; alt=&quot;3.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;本文转载自：&lt;a href=&quot;https://cmi.hanwckf.top/p/360t7-firmware/&quot; target=&quot;_blank&quot;&gt;360T7 刷机步骤及固件&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 09 Jan 2026 22:24:02 +0800</pubDate></item><item><title>360 T7 路由器 开启telnet及uboot控制台的方法和刷机固件刷机工具下载</title><link>http://www.58zn.cn/html/blogview-1388.html</link><description>&lt;p _msttexthash=&quot;1884183860&quot; _msthash=&quot;17&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p _msttexthash=&quot;1884183860&quot; _msthash=&quot;17&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;本文将360t7的刷机的工具和固件包和说明，一次性下载不用到处找，下载链接放在最后，请一定要看完本文，有一些注意事项。&lt;/span&gt;&lt;/p&gt;&lt;p _msttexthash=&quot;1884183860&quot; _msthash=&quot;17&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;360T7是目前市面上的第一款MT7981（filogic 820）运营商定制机，具有价格便宜、信号强（远强于同价位其垃圾高通和bcm方案路由器）、可玩性高（刷机方法请看&lt;a href=&quot;/html/blogview-1389.html&quot; target=&quot;_blank&quot;&gt;此处&lt;/a&gt;）的特点，其配置如下：&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;CPU：MT7981B 双核A53 1.3GHz&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;内存：256M DDR3&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;闪光：128M SPI NAND&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;无线phy：MT7976CN AX3000&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;交换机：MT7531A 2xHSGMII&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p _msttexthash=&quot;13642759&quot; _msthash=&quot;23&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;拆机：&lt;a href=&quot;https://www.acwifi.net/22217.html&quot; target=&quot;_blank&quot;&gt;https://www.acwifi.net/22217.html&lt;/a&gt;&lt;/p&gt;&lt;p _msttexthash=&quot;122836896&quot; _msthash=&quot;24&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;在200元价位对比其它方案路由器，例如：&lt;/p&gt;&lt;ol style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;对比前代mt7622+mt7915 ax3200方案的路由器，mt7981可完美支持160mhz以及2.4G的wifi6，无线phy已集成中功率fem，与ax6s这类机器信号接近，综合来看无线性能强于先前ax3200方案。在加速特性上，mt798x支持warp（wed） tx rx双方向加速，mt7622仅支持单方向加速，加速特性完胜。cpu方面与mt7622持平，同为双核A53。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;对比高通运营商定制机，众所周知，哪怕给运营商的高通路由器串上两个外置FEM，实际速率表现估计还不如内置FEM的mtk无线phy。在加速特性方面，mt798x支持完整的warp加速，无论是有线、无线，WAN还是LAN均可实现0%cpu占用，此方面不输于高通nss。cpu方面，mt7981与ipq5k持平，同为双核A53，虽不如ipq6k的四核A53，但ipq6k多为上代ax1800方案，ax3000的高通多为ipq5k系列。可玩性上，由于高通nss以及无线驱动需要占用大量内存，运营商定制机往往需要更换大内存才可刷机，而mt7981在256M内存下，加载所有原厂驱动后剩余内存90-100M，已足够运行某些特殊应用。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;对比垃圾bcm路由器，这个就不用说了，bcm没有资格在这里对比。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;hr style=&quot;box-sizing: content-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); height: 2px; overflow: visible; width: 100px; margin: 40px auto; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(186, 186, 186); border: 0px; opacity: 0.55; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap;&quot;/&gt;&lt;h2 id=&quot;原厂固件分区表&quot; _msttexthash=&quot;21632221&quot; _msthash=&quot;28&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-inline-start: -30px; padding-inline-start: 26px; border-inline-start: 4px solid rgb(52, 73, 94); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;原厂固件分区表&lt;/h2&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;0x000000000000-0x000000100000&amp;nbsp;:&amp;nbsp;&amp;quot;bl2&amp;quot;
0x000000100000-0x000000180000&amp;nbsp;:&amp;nbsp;&amp;quot;u-boot-env&amp;quot;
0x000000180000-0x000000380000&amp;nbsp;:&amp;nbsp;&amp;quot;Factory&amp;quot;
0x000000380000-0x000000580000&amp;nbsp;:&amp;nbsp;&amp;quot;fip&amp;quot;
0x000000580000-0x000002980000&amp;nbsp;:&amp;nbsp;&amp;quot;ubi&amp;quot;
0x000002980000-0x000004d80000&amp;nbsp;:&amp;nbsp;&amp;quot;firmware-1&amp;quot;
0x000004d80000-0x000007180000&amp;nbsp;:&amp;nbsp;&amp;quot;plugin&amp;quot;
0x000007180000-0x000007280000&amp;nbsp;:&amp;nbsp;&amp;quot;config&amp;quot;
0x000007280000-0x000007300000&amp;nbsp;:&amp;nbsp;&amp;quot;factory&amp;quot;
0x000007300000-0x000007a00000&amp;nbsp;:&amp;nbsp;&amp;quot;log&amp;quot;&lt;/pre&gt;&lt;p _msttexthash=&quot;2397287269&quot; _msthash=&quot;30&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;其中，Factory为无线EEPROM分区;fip为uboot分区;ubi和firmware-1为固件分区，分别36M，均为ubi格式;plugin为原厂插件分区，有36M，也是ubi格式;最后一个小写字母开头的factory分区为原厂固件信息分区，保存有机器编号，MAC地址等信息。&lt;/p&gt;&lt;p _msttexthash=&quot;842962783&quot; _msthash=&quot;31&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;原厂uboot在开机时会分别检查ubi和firmware-1分区内是否存在固件，如果某个分区未检查通过，则uboot会自动将另一个分区的内容复制过去。&lt;/p&gt;&lt;p _msttexthash=&quot;1195377625&quot; _msthash=&quot;32&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;因此，当使用原厂uboot启动时，只能使用一个ubi分区存放固件，固件总体积（含kernel+rootfs+rootfs_data）将限制在36M内，但你仍然可以使用plugin分区（36M）存放其数据。&lt;/p&gt;&lt;hr style=&quot;box-sizing: content-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); height: 2px; overflow: visible; width: 100px; margin: 40px auto; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(186, 186, 186); border: 0px; opacity: 0.55; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap;&quot;/&gt;&lt;h2 id=&quot;原厂固件备份&quot; _msttexthash=&quot;15817880&quot; _msthash=&quot;33&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-inline-start: -30px; padding-inline-start: 26px; border-inline-start: 4px solid rgb(52, 73, 94); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;原厂固件备份&lt;/h2&gt;&lt;p _msttexthash=&quot;27164540&quot; _msthash=&quot;34&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;蓝奏云下载：&lt;a href=&quot;https://wwd.lanzout.com/iCnq30e90ypi&quot; target=&quot;_blank&quot;&gt;https://wwd.lanzout.com/iCnq30e90ypi&lt;/a&gt;(请看完本文章后在最后链接中一次性下载360T7所有需要的工具和固件)&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;360T7.bin：不含ecc数据的编程器固件，mt798x固件默认使用ondie-ecc
360t7.dts：原厂固件里提取的设备树
squashfs-root.tar.gz：原厂固件的rootfs内容&lt;/pre&gt;&lt;h2 id=&quot;开启telnet和uboot控制台&quot; _msttexthash=&quot;28310607&quot; _msthash=&quot;38&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-inline-start: -30px; padding-inline-start: 26px; border-inline-start: 4px solid rgb(52, 73, 94); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;开启telnet和uboot控制台&lt;/h2&gt;&lt;p _msttexthash=&quot;1482238888&quot; _msthash=&quot;39&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;此款路由器内置的原厂固件为基于mtk-sdk Linux 5.4内核的OpenWrt，uboot和OpenWrt的控制台终端均不可作，但可以使用TTL进入OpenWrt的failsafe模式，从而开启telnet和uboot控制台。 具体操作方法如下：&lt;/p&gt;&lt;ol style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;拆机，此机器卡扣较紧，拆机后找到下图红框内的UART串口。&lt;span style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: #D9D9D9 ; font-weight: bolder;&quot;&gt;线序由上到下为RXD，TXD，GND，波特率115200&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601091767968229112522.png&quot; title=&quot;1.png&quot; alt=&quot;1.png&quot;/&gt;&lt;/p&gt;&lt;ol start=&quot;2&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;打开串口助手，上电，等待机器启动后，不断按下&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: #D9D9D9 ; font-weight: bolder;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 1em; color: rgb(128, 128, 128); background-color: rgba(0, 0, 0, 0.12); padding: 2px 4px; border-radius: 4px;&quot;&gt;f&lt;/code&gt;和回车键&lt;/span&gt;&amp;nbsp;，直到出现下面的提示后，即可进入failsafe模式&lt;/p&gt;&lt;p&gt;&amp;lt;特别提示：&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;###如果在这里尝试了很多次也无法进入failsafe模式，可尝试将当前固件进行降级，刷入如下链接固件，https://pan.baidu.com/s/1HjeLCjbbHLekx6GsH6TWTQ?pwd=z8tk 提取码: z8tk&amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;　　&lt;span style=&quot;margin: 0px; padding: 0px; color: #FF0000;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 15px;&quot;&gt;【新版GD芯片的千万不要降级！！只要刷入降级固件必成砖！！】，具体参考&lt;a href=&quot;https://www.right.com.cn/forum/thread-8341667-1-1.html&quot; target=&quot;_blank&quot; title=&quot;https://www.right.com.cn/forum/thread-8341667-1-1.html&quot;&gt;https://www.right.com.cn/forum/thread-8341667-1-1.html&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp;10.205973]&amp;nbsp;wed_get_slot_map():&amp;nbsp;assign&amp;nbsp;slot_id:0&amp;nbsp;for&amp;nbsp;entry:&amp;nbsp;0!
[&amp;nbsp;&amp;nbsp;&amp;nbsp;10.211812]&amp;nbsp;wed_get_slot_map():&amp;nbsp;assign&amp;nbsp;slot_id:1&amp;nbsp;for&amp;nbsp;entry:&amp;nbsp;1!
[&amp;nbsp;&amp;nbsp;&amp;nbsp;10.218061]&amp;nbsp;kmodloader:&amp;nbsp;done&amp;nbsp;loading&amp;nbsp;kernel&amp;nbsp;modules&amp;nbsp;from&amp;nbsp;/etc/modules-boot.d/*
[&amp;nbsp;&amp;nbsp;&amp;nbsp;10.235722]&amp;nbsp;init:&amp;nbsp;-&amp;nbsp;preinit&amp;nbsp;-
[&amp;nbsp;&amp;nbsp;&amp;nbsp;10.539480]&amp;nbsp;mtk_soc_eth&amp;nbsp;15100000.ethernet&amp;nbsp;eth0:&amp;nbsp;configuring&amp;nbsp;for&amp;nbsp;fixed/2500base-x&amp;nbsp;link&amp;nbsp;mode
[&amp;nbsp;&amp;nbsp;&amp;nbsp;10.547859]&amp;nbsp;mtk_soc_eth&amp;nbsp;15100000.ethernet&amp;nbsp;eth0:&amp;nbsp;Link&amp;nbsp;is&amp;nbsp;Up&amp;nbsp;-&amp;nbsp;2.5Gbps/Full&amp;nbsp;-&amp;nbsp;flow&amp;nbsp;control&amp;nbsp;rx/tx
Press&amp;nbsp;the&amp;nbsp;[f]&amp;nbsp;key&amp;nbsp;and&amp;nbsp;hit&amp;nbsp;[enter]&amp;nbsp;to&amp;nbsp;enter&amp;nbsp;failsafe&amp;nbsp;mode
Press&amp;nbsp;the&amp;nbsp;[1],&amp;nbsp;[2],&amp;nbsp;[3]&amp;nbsp;or&amp;nbsp;[4]&amp;nbsp;key&amp;nbsp;and&amp;nbsp;hit&amp;nbsp;[enter]&amp;nbsp;to&amp;nbsp;select&amp;nbsp;the&amp;nbsp;debug&amp;nbsp;level&lt;/pre&gt;&lt;ol start=&quot;3&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;在failsafe模式依次执行以下作&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;#&amp;nbsp;开启uboot控制台菜单
fw_setenv&amp;nbsp;bootmenu_delay&amp;nbsp;3

#&amp;nbsp;挂载rootfs并开启telnet
mount_root
sed&amp;nbsp;-i&amp;nbsp;&amp;#39;s/.*local&amp;nbsp;debug=.*/\tlocal&amp;nbsp;debug=1/&amp;#39;&amp;nbsp;/etc/init.d/telnet

#&amp;nbsp;修改root密码
passwd&amp;nbsp;root&lt;/pre&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601181768724395205180.png&quot; title=&quot;3.png&quot; alt=&quot;3.png&quot;/&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601181768724428518844.png&quot; title=&quot;4.png&quot; alt=&quot;4.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;4.通过网络备份原厂固件（可选）&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;#&amp;nbsp;将电脑的IP地址设置为192.168.1.8，插入路由器LAN口
#&amp;nbsp;使用nc监听3333端口并写入all.bin
#&amp;nbsp;Windows系统可以使用netcat
#&amp;nbsp;nc&amp;nbsp;-l&amp;nbsp;-p&amp;nbsp;3333&amp;nbsp;&amp;gt;&amp;nbsp;all.bin

#&amp;nbsp;在路由器failsafe模式下开启网络
ifconfig&amp;nbsp;eth0&amp;nbsp;0.0.0.0
brctl&amp;nbsp;addbr&amp;nbsp;br-lan
ifconfig&amp;nbsp;br-lan&amp;nbsp;192.168.1.1&amp;nbsp;netmask&amp;nbsp;255.255.255.0&amp;nbsp;up
brctl&amp;nbsp;addif&amp;nbsp;br-lan&amp;nbsp;eth0

#&amp;nbsp;读取/dev/mtd0，使用nc发送到192.168.1.8:3333
cat&amp;nbsp;/dev/mtd0&amp;nbsp;|&amp;nbsp;nc&amp;nbsp;192.168.1.8&amp;nbsp;3333&lt;/pre&gt;&lt;ol start=&quot;5&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;重启路由器&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;reboot&lt;/pre&gt;&lt;h2 id=&quot;原厂uboot内刷写固件&quot; _msttexthash=&quot;26148668&quot; _msthash=&quot;51&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-inline-start: -30px; padding-inline-start: 26px; border-inline-start: 4px solid rgb(52, 73, 94); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;原厂uboot内刷写固件&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: #D9D9D9 ;&quot;&gt;建议在原厂uboot控制台内使用工具刷写固件，使用方法如下图所示&lt;/span&gt;mtkupgrade&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601091767968465453229.png&quot; title=&quot;2.png&quot; alt=&quot;2.png&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;原厂openwrt系统内刷写固件&quot; _msttexthash=&quot;45490562&quot; _msthash=&quot;55&quot; style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-inline-start: -30px; padding-inline-start: 26px; border-inline-start: 4px solid rgb(52, 73, 94); font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;原厂OpenWrt系统内刷写固件&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: #D9D9D9 ;&quot;&gt;直接使用工具即可，例如&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 1em; color: rgb(128, 128, 128); background-color: rgba(0, 0, 0, 0.12); padding: 2px 4px; border-radius: 4px;&quot;&gt;mtd&lt;/code&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-actionscript&quot;&gt;mtd&amp;nbsp;-r&amp;nbsp;write&amp;nbsp;openwrt-squashfs-factory.bin&amp;nbsp;ubi&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;本文转载自：&lt;a href=&quot;https://cmi.hanwckf.top/p/360t7-telnet-uboot-console/&quot; target=&quot;_blank&quot;&gt;360 T7 路由器 开启telnet及uboot控制台的方法&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;strong&gt;另类方法：使用修改版UBOOT进行刷机：接上面第5个步骤后开始&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;路由器启动后，通过Telnet远程刷入修改版uboot，路由器默认IP：192.168.2.1，端口：23，用户名：root，密码：刚才设置的密码&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;　　###uboot固件下载链接：&lt;a href=&quot;https://github.com/hanwckf/bl-mt798x&quot; target=&quot;_blank&quot; title=&quot;https://github.com/hanwckf/bl-mt798x&quot;&gt;https://github.com/hanwckf/bl-mt798x&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;###&lt;/span&gt;这个是H大的u-boot大分区版本：&lt;a href=&quot;https://github.com/hanwckf/bl-mt798x/releases/latest&quot; target=&quot;_blank&quot;&gt;https://github.com/hanwckf/bl-mt798x/releases/latest&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;　　###ubbot固件文件下载后解压出来，将mt7981_360t7-fip-fixed-parts.bin固件上传到路由器 /tmp下&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;###注意：注意：注意：&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-size: 18px;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;编程器ch341a的ttl链接在边上有黄色链接帽取下来就是串口模式，否则默认是USB端口模式&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601221769090782782671.jpg&quot; title=&quot;CH341A土豪金编程器这个链接帽取消就是串口模式.jpg&quot; alt=&quot;CH341A土豪金编程器这个链接帽取消就是串口模式.jpg&quot;/&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;###本地开启HFS.exe，选择好uboot固件，然后在登录终端后运行命令：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;cd&amp;nbsp;/tmp
wget&amp;nbsp;http://192.168.2.70/mt7981_360t7-fip-fixed-parts.bin&amp;nbsp;&amp;nbsp;#注意：192.168.2.70要根据你自己的IP对应修改，如下面3张终端截图各不相同：我的是192.168.2.152&amp;nbsp;
#检查上传后的文件是否存在
ls
#开始刷写新的u-boot固件
mtd&amp;nbsp;write&amp;nbsp;mt7981_360t7-fip-fixed-parts.bin&amp;nbsp;fip
#如下图写入成功后手动重启路由器，开始在u-boot的web界面刷固件。&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601221769088800754667.jpg&quot; title=&quot;hfs界面.jpg&quot; alt=&quot;hfs界面.jpg&quot;/&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601181768724657122010.png&quot; title=&quot;5.png&quot; alt=&quot;5.png&quot;/&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;刷入uboot固件，刷入完成后路由器就已经带有修改版uboot系统，自带了一个简单的webui恢复页面，后期刷固件直接进入uboot后台操作即可&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601181768725199108790.png&quot; title=&quot;6.png&quot; alt=&quot;6.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;通过uboot刷入op固件，断开路由器电源，网线插入路由器LAN口，用牙签捅住路由器背部RESET键不放，插上电源，等待10秒后松手，即可进入uboot后台&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;　　###因为uboot没有DHCP功能，需要电脑上手动将网卡IP设为：192.168.1.5，子网掩码：255.255.255.0，浏览器访问http://192.168.1.1进入uboot后台管理&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601181768725296286791.png&quot; title=&quot;7.png&quot; alt=&quot;7.png&quot;/&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;刷入op固件，第一次刷机先刷底包factory固件，后期可以直接在op系统上刷sysupgrade固件，默认IP：192.168.6.1，用户名/密码：root/root&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #FF0000;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif, tahoma; font-size: 15px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;第一次刷 包确实起不来,需要再刷一次后才可以。留意这个问题。&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;　　###我这里刷的237大佬固件&lt;a href=&quot;https://www.right.com.cn/forum/thread-8263340-1-1.html&quot; target=&quot;_blank&quot; title=&quot;https://www.right.com.cn/forum/thread-8263340-1-1.html&quot;&gt;https://www.right.com.cn/forum/thread-8263340-1-1.html&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601181768725321717059.png&quot; title=&quot;8.png&quot; alt=&quot;8.png&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 20px; color: #FF0000;&quot;&gt;&lt;strong&gt;写在最后的：本文附带所有360t7的刷机的工具和固件包和说明，一次性下载，不用再到处找。请仔细看刷机包说明。&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;http://www.58zn.cn/zb_users/upload/2026/01/202601221769091219407340.jpg&quot; title=&quot;360T7刷机包固件和工具说明.jpg&quot; alt=&quot;360T7刷机包固件和工具说明.jpg&quot; width=&quot;962&quot; height=&quot;786&quot; border=&quot;0&quot; vspace=&quot;0&quot; style=&quot;width: 962px; height: 786px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;text-wrap-mode: nowrap; font-size: 24px;&quot;&gt;360T7刷机包固件和工具下载地址：&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;链接: &lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;https://pan.baidu.com/s/16Lwz9d8k68evRRWetzetfg?pwd=58zn&quot; target=&quot;_blank&quot; title=&quot;通过网盘分享的文件：360T7刷机包含工具&quot; style=&quot;font-size: 24px; text-decoration: underline;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;https://pan.baidu.com/s/16Lwz9d8k68evRRWetzetfg?pwd=58zn&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt; 提取码: 58zn&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;==========================360T7刷机包下载-说明-分割线==============================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;旧版本内核，信号刷后不够强，尤其是5G频段，已经不推荐了，对信号要求不高的可以刷，对比2024年以后的固件相对运行流畅很多。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;360-full-openWRT.bin 功能比较全但是吃内存&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;==========================360T7刷机包下载-说明-分割线==============================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;360-mini-openWRT.bin 家用已经足够带vpn&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;==========================360T7刷机包下载-说明-分割线==============================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;JIKEAP_AP250MD_MT7981_K5_NAND_UBI_AUTO_FREE_7.4_2023072401&amp;nbsp; 无线AP(集客AP) 当一个能有无线功能的交换机使用，一般配合软路由使用&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;==========================360T7刷机包下载-说明-分割线==============================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;360T7-v4.2.4.7959_upgrade.bin&amp;nbsp; &amp;nbsp;是降级固件，新版存储颗粒刷后会变砖，&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;请注意你的路由器硬件是旧版还是新版【新版GD芯片的千万不要降级！！只要刷入降级固件必成砖！！】，&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;具体参考https【新版GD芯片的千万不要降级！！只要刷入降级固件必成砖！！】，具体参考&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;https://www.right.com.cn/forum/thread-8341667-1-1.html&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;也可以在线获取：原生固件：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;http://ucread.kuaiyunds.com/ucread/uselessoft/360t7/360t7-v4.2.4.7959_upgrade.rar&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;==========================360T7刷机包下载-说明-分割线==============================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2023-9-26_Openwrt_360T7.zip(已经不推荐，部分新版本颗粒刷后不开机)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;集成istore的&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;原始下载地址：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;https://wwvm.lanzouj.com/ilFCe19xxqzi&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;原帖说明地址：https://tieba.baidu.com/p/8566284551&amp;nbsp; 第23楼回复内容&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;==========================360T7刷机包下载-说明-分割线==============================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2024年后的固件：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;360-t7-108m.zip&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 主要集成ipv6，upnp，多拨，猫咪，pass(wall）。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 固件下载地址(2024-1-15日更新大分区版本)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;https://sssddddff.lanzoup.com/b019stevi&amp;nbsp; 密码:eylf&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;默认ip 192.168.6.1，用户名root 密码password&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;原帖地址：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;https://www.right.com.cn/forum/thread-8263340-1-1.html&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;==========================360T7刷机包下载-说明-分割线==============================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2025-8-20版本(这个版本信号稳定，开启硬件加速。比较推荐)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在线获取immortalwrt固件：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;http://ucread.kuaiyunds.com/ucread/uselessoft/360t7/immortalwrt-360t7.zip&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;原帖说明地址：https://blog.csdn.net/qqk808/article/details/150558087&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;==========================360T7刷机包下载-说明-分割线==============================&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2026.01.19-1121目前最新的版本。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;固件下载地址：https://github.com/sagehou/360T7-ImmortalWrt/releases&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; scrollbar-width: auto; scrollbar-color: rgb(217, 217, 217) rgba(0, 0, 0, 0); margin-top: 1.5em; margin-bottom: 1.5em; font-family: Lato, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Droid Sans Fallback&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; font-size: 17px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Fri, 09 Jan 2026 22:14:03 +0800</pubDate></item><item><title>armbian下移动一个文件到另一个目录下的命令</title><link>http://www.58zn.cn/html/blogview-1387.html</link><description>&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 28px; color: rgb(51, 51, 51); -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;在Linux中，移动文件从一个目录到另一个目录通常使用&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;mv&lt;/code&gt;命令。在Armbian系统（基于Debian的ARM设备操作系统）上，这个命令同样适用。以下是一些基本的用法示例：&lt;/p&gt;&lt;h3 style=&quot;margin: 6px 0px; padding: 0px; list-style: none; line-height: 30px; font-size: 18px; -webkit-font-smoothing: antialiased; font-weight: 500; -webkit-text-stroke-color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;移动文件&lt;/h3&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; line-height: 28px; -webkit-text-stroke-color: initial;&quot;&gt;‌&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-text-stroke-color: #333333; background: linear-gradient(to right, rgba(111, 75, 250, 0.12), rgba(111, 75, 250, 0.12)) 50% 100% / 100% 9px no-repeat scroll padding-box border-box ; padding-bottom: 1px;&quot;&gt;基本语法&lt;/span&gt;‌:&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px;&quot; class=&quot;prism-highlight prism-language-bash&quot;&gt;mv&amp;nbsp;[选项]&amp;nbsp;源文件&amp;nbsp;目标目录&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; line-height: 28px; -webkit-text-stroke-color: initial;&quot;&gt;‌&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-text-stroke-color: #333333; background: linear-gradient(to right, rgba(111, 75, 250, 0.12), rgba(111, 75, 250, 0.12)) 50% 100% / 100% 9px no-repeat scroll padding-box border-box ; padding-bottom: 1px;&quot;&gt;示例&lt;/span&gt;‌:&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;将文件&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;example.txt&lt;/code&gt;从当前目录移动到&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;/home/user/documents&lt;/code&gt;目录下：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px;&quot; class=&quot;prism-highlight prism-language-bash&quot;&gt;mv&amp;nbsp;example.txt&amp;nbsp;/home/user/documents/&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果目标目录不存在，你可以先创建它，然后再移动文件：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px;&quot; class=&quot;prism-highlight prism-language-bash&quot;&gt;mkdir&amp;nbsp;-p&amp;nbsp;/home/user/documents
mv&amp;nbsp;example.txt&amp;nbsp;/home/user/documents/&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;h3 style=&quot;margin: 6px 0px; padding: 0px; list-style: none; line-height: 30px; font-size: 18px; -webkit-font-smoothing: antialiased; font-weight: 500; -webkit-text-stroke-color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;移动目录&lt;/h3&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 28px; color: rgb(51, 51, 51); -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果你想要移动整个目录（包括其内部的所有文件和子目录），你可以使用同样的&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;mv&lt;/code&gt;命令。但是，请注意，如果目标目录已经存在同名文件或目录，并且你想要替换它，你可能需要使用&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;-f&lt;/code&gt;选项来强制覆盖。&lt;/p&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;‌&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-text-stroke-color: #333333; background: linear-gradient(to right, rgba(111, 75, 250, 0.12), rgba(111, 75, 250, 0.12)) 50% 100% / 100% 9px no-repeat scroll padding-box border-box ; padding-bottom: 1px;&quot;&gt;示例&lt;/span&gt;‌:&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;将名为&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;example_dir&lt;/code&gt;的目录及其内容移动到&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;/home/user/documents&lt;/code&gt;目录下：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px;&quot; class=&quot;prism-highlight prism-language-bash&quot;&gt;mv&amp;nbsp;example_dir&amp;nbsp;/home/user/documents/&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果目标目录存在同名文件或目录，并且你想要替换它（谨慎使用，因为这会覆盖目标位置的内容），可以使用：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px;&quot; class=&quot;prism-highlight prism-language-bash&quot;&gt;mv&amp;nbsp;-f&amp;nbsp;example_dir&amp;nbsp;/home/user/documents/&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;h3 style=&quot;margin: 6px 0px; padding: 0px; list-style: none; line-height: 30px; font-size: 18px; -webkit-font-smoothing: antialiased; font-weight: 500; -webkit-text-stroke-color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;注意事项&lt;/h3&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;确保你有足够的权限来移动文件或目录。如果没有，你可能需要使用&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;sudo&lt;/code&gt;来获取超级用户权限：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px;&quot; class=&quot;prism-highlight prism-language-bash&quot;&gt;sudo&amp;nbsp;mv&amp;nbsp;example.txt&amp;nbsp;/home/user/documents/&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;使用&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;mv&lt;/code&gt;命令时，如果目标路径不存在，系统会自动创建必要的目录结构。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果你想查看移动操作的详细信息，可以添加&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;-v&lt;/code&gt;（verbose）选项：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px;&quot; class=&quot;prism-highlight prism-language-bash&quot;&gt;mv&amp;nbsp;-v&amp;nbsp;example.txt&amp;nbsp;/home/user/documents/&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 28px; color: rgb(51, 51, 51); -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;这些基本命令和选项应该能满足你在Armbian上移动文件和目录的需求&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 30 Sep 2025 19:47:07 +0800</pubDate></item><item><title>超详细的DeepSeek-R1 1.5B模型安装训练指南，包含每个步骤的完整解释和注意事项，完全面向小白的教程</title><link>http://www.58zn.cn/html/blogview-1386.html</link><description>&lt;p&gt;&lt;span style=&quot;font-family: 宋体; font-size: 12pt;&quot;&gt;超详细的&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: 宋体; font-size: 12pt;&quot;&gt;DeepSeek-R1 1.5B&lt;/span&gt;&lt;span style=&quot;font-family: 宋体; font-size: 12pt;&quot;&gt;模型安装训练指南，包含每个步骤的完整解释和注意事项。以下是完全面向小白的教程：&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:&amp;quot;MS Gothic&amp;quot;;mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;
mso-font-kerning:0pt&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;第一章：环境准备（手把手版）&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:&amp;quot;MS Gothic&amp;quot;;mso-bidi-font-family:
&amp;quot;MS Gothic&amp;quot;;mso-font-kerning:0pt&quot;&gt;‌&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:
12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;1.1 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;创建专用文件夹&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;在&lt;span lang=&quot;EN-US&quot;&gt;E&lt;/span&gt;盘新建两个文件夹：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;E:\deepseek_project &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;
font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;（存放所有代码）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;E:\deepseek_data &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;
font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;（存放训练数据）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;右键文件夹&lt;span lang=&quot;EN-US&quot;&gt; → &lt;/span&gt;属性&lt;span lang=&quot;EN-US&quot;&gt; → &lt;/span&gt;取消&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot;&lt;/span&gt;只读&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot;&lt;/span&gt;选项&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;1.2 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;安装&lt;span lang=&quot;EN-US&quot;&gt;Python&lt;/span&gt;环境&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;访问&lt;span lang=&quot;EN-US&quot;&gt; python&lt;/span&gt;官网&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;下载 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:&amp;quot;MS Gothic&amp;quot;;
mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;mso-font-kerning:0pt&quot;&gt;‌&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;Python 3.8.10&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;
font-family:&amp;quot;MS Gothic&amp;quot;;mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;mso-font-kerning:0pt&quot;&gt;‌&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;（版本必须&lt;span lang=&quot;EN-US&quot;&gt;≤3.9&lt;/span&gt;，兼容性最佳）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;安装时勾选：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:&amp;quot;MS Gothic&amp;quot;;mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;
mso-font-kerning:0pt&quot;&gt;☑&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;
font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt; Add Python to
PATH&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:&amp;quot;MS Gothic&amp;quot;;mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;
mso-font-kerning:0pt&quot;&gt;☑&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;
font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt; Install launcher
for all users&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;验证安装：按&lt;span lang=&quot;EN-US&quot;&gt;Win+R&lt;/span&gt;输入&lt;span lang=&quot;EN-US&quot;&gt;cmd&lt;/span&gt;打开命令提示符，执行：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;python --version&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;应该显示&lt;span lang=&quot;EN-US&quot;&gt;Python 3.8.10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;1.3 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;设置虚拟环境（重要！）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;打开命令提示符，依次执行：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;# &lt;/span&gt;&lt;span style=&quot;font-size:
12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;安装虚拟环境工具&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;pip install virtualenv&lt;br/&gt;&lt;br/&gt;# &lt;/span&gt;创建专门的环境（避免污染系统&lt;span lang=&quot;EN-US&quot;&gt;Python&lt;/span&gt;）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;virtualenv E:\deepseek_env&lt;br/&gt;&lt;br/&gt;# &lt;/span&gt;激活环境&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;E:\deepseek_env\Scripts\activate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;激活后命令提示符前会出现&lt;span lang=&quot;EN-US&quot;&gt;(deepseek_env)&lt;/span&gt;标记&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;第二章：依赖安装（带解释版）&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:
&amp;quot;MS Gothic&amp;quot;;mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;mso-font-kerning:0pt&quot;&gt;‌&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;2.1 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;核心依赖安装&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;逐条执行以下命令（每行都是一个独立命令）：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;# CPU&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;专用版&lt;span lang=&quot;EN-US&quot;&gt;PyTorch&lt;/span&gt;（深度学习框架）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;pip install torch==2.0.1+cpu torchvision==0.15.2+cpu torchaudio==0.15.2 -f
https://download.pytorch.org/whl/cpu/torch_stable.html&lt;br/&gt;&lt;br/&gt;# Huggingface&lt;/span&gt;库（模型加载工具）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;pip install transformers==4.34.1&lt;br/&gt;&lt;br/&gt;# &lt;/span&gt;数据集处理工具&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;pip install datasets==2.14.6&lt;br/&gt;&lt;br/&gt;# &lt;/span&gt;内存优化加速库&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;pip install accelerate==0.23.0&lt;br/&gt;&lt;br/&gt;# &lt;/span&gt;中文分词器&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;pip install sentencepiece==0.1.99&lt;br/&gt;&lt;br/&gt;# 8&lt;/span&gt;位量化支持（减少内存占用）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;pip install bitsandbytes==0.41.1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;2.2 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;验证安装&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;新建&lt;span lang=&quot;EN-US&quot;&gt;test_install.py&lt;/span&gt;文件，内容如下：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;import torch&lt;br/&gt;from transformers import AutoTokenizer&lt;br/&gt;&lt;br/&gt;print(&amp;quot;PyTorch&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;版本&lt;span lang=&quot;EN-US&quot;&gt;:&amp;quot;,
torch.__version__)&lt;br/&gt;print(&amp;quot;CUDA&lt;/span&gt;是否可用&lt;span lang=&quot;EN-US&quot;&gt;:&amp;quot;,
torch.cuda.is_available())&amp;nbsp; # &lt;/span&gt;应该显示&lt;span lang=&quot;EN-US&quot;&gt;False&lt;/span&gt;（我们没有&lt;span lang=&quot;EN-US&quot;&gt;GPU&lt;/span&gt;）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;tokenizer = AutoTokenizer.from_pretrained(&amp;quot;bert-base-chinese&amp;quot;)&lt;br/&gt;print(&amp;quot;&lt;/span&gt;分词器测试&lt;span lang=&quot;EN-US&quot;&gt;:&amp;quot;, tokenizer.tokenize(&amp;quot;&lt;/span&gt;你好&lt;span lang=&quot;EN-US&quot;&gt;DeepSeek&amp;quot;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;运行后应该看到：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;PyTorch&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;版本&lt;span lang=&quot;EN-US&quot;&gt;: 2.0.1+cpu&lt;br/&gt;CUDA&lt;/span&gt;是否可用&lt;span lang=&quot;EN-US&quot;&gt;: False&lt;br/&gt;&lt;/span&gt;分词器测试&lt;span lang=&quot;EN-US&quot;&gt;: [&amp;#39;&lt;/span&gt;你&lt;span lang=&quot;EN-US&quot;&gt;&amp;#39;, &amp;#39;&lt;/span&gt;好&lt;span lang=&quot;EN-US&quot;&gt;&amp;#39;, &amp;#39;de&amp;#39;, &amp;#39;##ep&amp;#39;, &amp;#39;##se&amp;#39;, &amp;#39;##ek&amp;#39;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;第三章：模型下载与加载&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:
&amp;quot;MS Gothic&amp;quot;;mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;mso-font-kerning:0pt&quot;&gt;‌&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;3.1 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;手动下载（推荐）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;访问&lt;span lang=&quot;EN-US&quot;&gt; HuggingFace&lt;/span&gt;模型页&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;点击&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot;Files and versions&amp;quot; → &lt;/span&gt;下载：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;config.json&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;pytorch_model.bin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;special_tokens_map.json&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;tokenizer.json&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;tokenizer_config.json&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;在&lt;span lang=&quot;EN-US&quot;&gt;E:\deepseek_project&lt;/span&gt;下新建&lt;span lang=&quot;EN-US&quot;&gt;model&lt;/span&gt;文件夹，把所有文件放进去&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;3.2 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;代码加载（带详细注释）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;创建&lt;span lang=&quot;EN-US&quot;&gt;load_model.py&lt;/span&gt;：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;import torch&lt;br/&gt;from transformers import AutoModelForCausalLM, AutoTokenizer&lt;br/&gt;import os&lt;br/&gt;&lt;br/&gt;# &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:
宋体;mso-font-kerning:0pt&quot;&gt;模型路径（必须使用双反斜杠或原始字符串）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;model_path = r&amp;quot;E:\deepseek_project\model&amp;quot;&lt;br/&gt;&lt;br/&gt;# 1. &lt;/span&gt;加载分词器&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;tokenizer = AutoTokenizer.from_pretrained(&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model_path,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trust_remote_code=True&amp;nbsp; # &lt;/span&gt;允许执行模型自定义代码&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;)&lt;br/&gt;&lt;br/&gt;# 2. &lt;/span&gt;加载模型（&lt;span lang=&quot;EN-US&quot;&gt;CPU&lt;/span&gt;优化配置）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;model = AutoModelForCausalLM.from_pretrained(&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model_path,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device_map=&amp;quot;cpu&amp;quot;,&amp;nbsp; # &lt;/span&gt;强制使用&lt;span lang=&quot;EN-US&quot;&gt;CPU&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; torch_dtype=torch.float32,&amp;nbsp; # 32&lt;/span&gt;位浮点数&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; low_cpu_mem_usage=True,&amp;nbsp; # &lt;/span&gt;内存优化&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load_in_8bit=True,&amp;nbsp; # 8&lt;/span&gt;位量化（关键！）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;)&lt;br/&gt;&lt;br/&gt;# &lt;/span&gt;测试推理&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;input_text = &amp;quot;&lt;/span&gt;人工智能是指&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot;&lt;br/&gt;inputs = tokenizer(input_text, return_tensors=&amp;quot;pt&amp;quot;)&lt;br/&gt;outputs = model.generate(**inputs, max_length=50)&lt;br/&gt;print(tokenizer.decode(outputs[0]))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;第四章：数据准备与训练&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:
&amp;quot;MS Gothic&amp;quot;;mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;mso-font-kerning:0pt&quot;&gt;‌&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;4.1 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;训练数据格式&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;在&lt;span lang=&quot;EN-US&quot;&gt;E:\deepseek_data&lt;/span&gt;下创建&lt;span lang=&quot;EN-US&quot;&gt;train.txt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;数据格式要求：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;每行一个完整样本&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;或连续文本用两个换行符分隔&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:
宋体;mso-font-kerning:0pt&quot;&gt;第一条文本内容&lt;span lang=&quot;EN-US&quot;&gt;...&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;第二条文本内容&lt;span lang=&quot;EN-US&quot;&gt;...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;4.2 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;训练脚本详解&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;创建&lt;span lang=&quot;EN-US&quot;&gt;train.py&lt;/span&gt;：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;from transformers import Trainer,
TrainingArguments&lt;br/&gt;from datasets import load_dataset&lt;br/&gt;import torch&lt;br/&gt;&lt;br/&gt;# 1. &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:
宋体;mso-font-kerning:0pt&quot;&gt;加载之前准备好的模型和分词器&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;tokenizer =
AutoTokenizer.from_pretrained(r&amp;quot;E:\deepseek_project\model&amp;quot;)&lt;br/&gt;model = AutoModelForCausalLM.from_pretrained(&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
r&amp;quot;E:\deepseek_project\model&amp;quot;,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device_map=&amp;quot;cpu&amp;quot;,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load_in_8bit=True&lt;br/&gt;)&lt;br/&gt;&lt;br/&gt;# 2. &lt;/span&gt;加载数据集&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;dataset = load_dataset(&amp;quot;text&amp;quot;, data_files={&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;train&amp;quot;:
r&amp;quot;E:\deepseek_data\train.txt&amp;quot;&lt;br/&gt;})&lt;br/&gt;&lt;br/&gt;# 3. &lt;/span&gt;数据预处理函数&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;def tokenize_function(examples):&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return tokenizer(&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; examples[&amp;quot;text&amp;quot;],&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; truncation=True,&amp;nbsp; # &lt;/span&gt;截断超长文本&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max_length=128,&amp;nbsp; &amp;nbsp;# &lt;/span&gt;最大长度（根据内存调整）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
padding=&amp;quot;max_length&amp;quot;&amp;nbsp; # &lt;/span&gt;填充到统一长度&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br/&gt;&lt;br/&gt;# 4. &lt;/span&gt;应用预处理&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;tokenized_datasets = dataset.map(&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tokenize_function,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; batched=True,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; batch_size=100&amp;nbsp; # &lt;/span&gt;批处理大小&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;)&lt;br/&gt;&lt;br/&gt;# 5. &lt;/span&gt;训练参数配置（关键！）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;training_args = TrainingArguments(&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output_dir=&amp;quot;E:/deepseek_output&amp;quot;,&amp;nbsp; # &lt;/span&gt;输出目录&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; per_device_train_batch_size=1,&amp;nbsp;&amp;nbsp;&amp;nbsp; # &lt;/span&gt;批大小&lt;span lang=&quot;EN-US&quot;&gt;=1&lt;/span&gt;（内存不足时减小）&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gradient_accumulation_steps=4,&amp;nbsp;&amp;nbsp;&amp;nbsp; # &lt;/span&gt;梯度累积步数&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num_train_epochs=1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &lt;/span&gt;训练轮次&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; learning_rate=2e-5,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &lt;/span&gt;学习率&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; optim=&amp;quot;adafactor&amp;quot;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &lt;/span&gt;内存友好优化器&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; save_strategy=&amp;quot;no&amp;quot;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &lt;/span&gt;不自动保存&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; logging_steps=10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &lt;/span&gt;每&lt;span lang=&quot;EN-US&quot;&gt;10&lt;/span&gt;步打印日志&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;)&lt;br/&gt;&lt;br/&gt;# 6. &lt;/span&gt;创建训练器&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;trainer = Trainer(&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model=model,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; args=training_args,&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
train_dataset=tokenized_datasets[&amp;quot;train&amp;quot;],&lt;br/&gt;)&lt;br/&gt;&lt;br/&gt;# 7. &lt;/span&gt;开始训练&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;print(&amp;quot;&lt;/span&gt;开始训练&lt;span lang=&quot;EN-US&quot;&gt;...&lt;/span&gt;（这可能需要几个小时）&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot;)&lt;br/&gt;trainer.train()&lt;br/&gt;print(&amp;quot;&lt;/span&gt;训练完成！&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;第五章：内存优化技巧&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:
&amp;quot;MS Gothic&amp;quot;;mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;mso-font-kerning:0pt&quot;&gt;‌&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;5.1 Windows&lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;
font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;虚拟内存设置&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;右键&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot;&lt;/span&gt;此电脑&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot; → &lt;/span&gt;属性&lt;span lang=&quot;EN-US&quot;&gt; → &lt;/span&gt;高级系统设置&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;性能设置&lt;span lang=&quot;EN-US&quot;&gt; → &lt;/span&gt;高级&lt;span lang=&quot;EN-US&quot;&gt; → &lt;/span&gt;虚拟内存&lt;span lang=&quot;EN-US&quot;&gt; → &lt;/span&gt;更改&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;取消&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot;&lt;/span&gt;自动管理&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot;&lt;/span&gt;，选择&lt;span lang=&quot;EN-US&quot;&gt;E&lt;/span&gt;盘&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;设置：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;初始大小：&lt;span lang=&quot;EN-US&quot;&gt;8192 MB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;最大值：&lt;span lang=&quot;EN-US&quot;&gt;32768 MB&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;点击&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot;&lt;/span&gt;设置&lt;span lang=&quot;EN-US&quot;&gt;&amp;quot; → &lt;/span&gt;确定&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;5.2 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;训练时监控&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;打开任务管理器（&lt;span lang=&quot;EN-US&quot;&gt;Ctrl+Shift+Esc&lt;/span&gt;）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;查看：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;内存使用率（应&lt;span lang=&quot;EN-US&quot;&gt;&amp;lt;90%&lt;/span&gt;）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;磁盘活动（虚拟内存使用情况）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;5.3 &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:
宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;遇到内存不足的解决办法&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;减小&lt;span lang=&quot;EN-US&quot;&gt;max_length&lt;/span&gt;（改为&lt;span lang=&quot;EN-US&quot;&gt;64&lt;/span&gt;或&lt;span lang=&quot;EN-US&quot;&gt;32&lt;/span&gt;）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;降低&lt;span lang=&quot;EN-US&quot;&gt;gradient_accumulation_steps&lt;/span&gt;（改为&lt;span lang=&quot;EN-US&quot;&gt;2&lt;/span&gt;或&lt;span lang=&quot;EN-US&quot;&gt;1&lt;/span&gt;）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;添加清理代码：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;import gc&lt;br/&gt;torch.cuda.empty_cache()&amp;nbsp; # &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;清理缓存&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;gc.collect()&amp;nbsp; # &lt;/span&gt;垃圾回收&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;第六章：完整执行流程&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:
&amp;quot;MS Gothic&amp;quot;;mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;mso-font-kerning:0pt&quot;&gt;‌&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;打开命令提示符&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;激活环境：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;E:\deepseek_env\Scripts\activate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;进入项目目录：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;cd E:\deepseek_project&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;按顺序执行：&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 6pt 0cm; background: rgb(248, 248, 248);&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;
mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;python load_model.py&amp;nbsp; # &lt;/span&gt;&lt;span style=&quot;font-size:12.0pt;
font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:0pt&quot;&gt;测试模型加载&lt;span lang=&quot;EN-US&quot;&gt;&lt;br/&gt;python train.py&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # &lt;/span&gt;开始训练&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;注意事项&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:&amp;quot;MS Gothic&amp;quot;;
mso-bidi-font-family:&amp;quot;MS Gothic&amp;quot;;mso-font-kerning:0pt&quot;&gt;‌&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;首次运行会较慢（需要初始化）&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;训练时不要运行其他大型程序&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; align=&quot;left&quot; style=&quot;margin: 3.75pt 0cm;&quot;&gt;&lt;span style=&quot;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;mso-font-kerning:
0pt&quot;&gt;如果中断训练，删除&lt;span lang=&quot;EN-US&quot;&gt;E:/deepseek_output&lt;/span&gt;文件夹重新开始&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;超详细的DeepSeek-R1 1.5B模型安装训练指南，包含每个步骤的完整解释和注意事项。以下是完全面向小白的教程：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:&amp;#39;MS Gothic&amp;#39;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;第一章：环境准备（手把手版）&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:&amp;#39;MS Gothic&amp;#39;&quot;&gt;‌&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;1.1 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;创建专用文件夹&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;在E盘新建两个文件夹：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;E:\deepseek_project &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;（存放所有代码）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;E:\deepseek_data &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;（存放训练数据）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;右键文件夹 → 属性 → 取消&amp;quot;只读&amp;quot;选项&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;1.2 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;安装Python环境&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;访问 python官网&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;下载 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:&amp;#39;MS Gothic&amp;#39;&quot;&gt;‌&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;Python 3.8.10&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:&amp;#39;MS Gothic&amp;#39;&quot;&gt;‌&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;（版本必须≤3.9，兼容性最佳）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;安装时勾选：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:&amp;#39;MS Gothic&amp;#39;&quot;&gt;☑&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt; Add Python to PATH&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:&amp;#39;MS Gothic&amp;#39;&quot;&gt;☑&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt; Install launcher for all users&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;验证安装：按Win+R输入cmd打开命令提示符，执行：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;python --version&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;应该显示Python 3.8.10&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;1.3 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;设置虚拟环境（重要！）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;打开命令提示符，依次执行：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;# &lt;/span&gt;&lt;span style=&quot;font-size: 16px;font-family:宋体&quot;&gt;安装虚拟环境工具&lt;br/&gt; pip install virtualenv&lt;br/&gt; &lt;br/&gt; # 创建专门的环境（避免污染系统Python）&lt;br/&gt; virtualenv E:\deepseek_env&lt;br/&gt; &lt;br/&gt; # 激活环境&lt;br/&gt; E:\deepseek_env\Scripts\activate&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;激活后命令提示符前会出现(deepseek_env)标记&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;第二章：依赖安装（带解释版）&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: &amp;#39;MS Gothic&amp;#39;&quot;&gt;‌&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;2.1 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;核心依赖安装&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;逐条执行以下命令（每行都是一个独立命令）：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;# CPU&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;专用版PyTorch（深度学习框架）&lt;br/&gt; pip install torch==2.0.1+cpu torchvision==0.15.2+cpu torchaudio==0.15.2 -f https://download.pytorch.org/whl/cpu/torch_stable.html&lt;br/&gt; &lt;br/&gt; # Huggingface库（模型加载工具）&lt;br/&gt; pip install transformers==4.34.1&lt;br/&gt; &lt;br/&gt; # 数据集处理工具&lt;br/&gt; pip install datasets==2.14.6&lt;br/&gt; &lt;br/&gt; # 内存优化加速库&lt;br/&gt; pip install accelerate==0.23.0&lt;br/&gt; &lt;br/&gt; # 中文分词器&lt;br/&gt; pip install sentencepiece==0.1.99&lt;br/&gt; &lt;br/&gt; # 8位量化支持（减少内存占用）&lt;br/&gt; pip install bitsandbytes==0.41.1&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;2.2 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;验证安装&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;新建test_install.py文件，内容如下：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;import torch&lt;br/&gt; from transformers import AutoTokenizer&lt;br/&gt; &lt;br/&gt; print(&amp;quot;PyTorch&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;版本:&amp;quot;, torch.__version__)&lt;br/&gt; print(&amp;quot;CUDA是否可用:&amp;quot;, torch.cuda.is_available())&amp;nbsp; # 应该显示False（我们没有GPU）&lt;br/&gt; tokenizer = AutoTokenizer.from_pretrained(&amp;quot;bert-base-chinese&amp;quot;)&lt;br/&gt; print(&amp;quot;分词器测试:&amp;quot;, tokenizer.tokenize(&amp;quot;你好DeepSeek&amp;quot;))&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;运行后应该看到：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;PyTorch&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;版本: 2.0.1+cpu&lt;br/&gt; CUDA是否可用: False&lt;br/&gt; 分词器测试: [&amp;#39;你&amp;#39;, &amp;#39;好&amp;#39;, &amp;#39;de&amp;#39;, &amp;#39;##ep&amp;#39;, &amp;#39;##se&amp;#39;, &amp;#39;##ek&amp;#39;]&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;第三章：模型下载与加载&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: &amp;#39;MS Gothic&amp;#39;&quot;&gt;‌&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;3.1 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;手动下载（推荐）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;访问 HuggingFace模型页&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;点击&amp;quot;Files and versions&amp;quot; → 下载：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;config.json&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;pytorch_model.bin&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;special_tokens_map.json&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;tokenizer.json&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;tokenizer_config.json&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;在E:\deepseek_project下新建model文件夹，把所有文件放进去&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;3.2 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;代码加载（带详细注释）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;创建load_model.py：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;import torch&lt;br/&gt; from transformers import AutoModelForCausalLM, AutoTokenizer&lt;br/&gt; import os&lt;br/&gt; &lt;br/&gt; # &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;模型路径（必须使用双反斜杠或原始字符串）&lt;br/&gt; model_path = r&amp;quot;E:\deepseek_project\model&amp;quot;&lt;br/&gt; &lt;br/&gt; # 1. 加载分词器&lt;br/&gt; tokenizer = AutoTokenizer.from_pretrained(&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; model_path,&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; trust_remote_code=True&amp;nbsp; # 允许执行模型自定义代码&lt;br/&gt; )&lt;br/&gt; &lt;br/&gt; # 2. 加载模型（CPU优化配置）&lt;br/&gt; model = AutoModelForCausalLM.from_pretrained(&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; model_path,&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; device_map=&amp;quot;cpu&amp;quot;,&amp;nbsp; # 强制使用CPU&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; torch_dtype=torch.float32,&amp;nbsp; # 32位浮点数&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; low_cpu_mem_usage=True,&amp;nbsp; # 内存优化&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; load_in_8bit=True,&amp;nbsp; # 8位量化（关键！）&lt;br/&gt; )&lt;br/&gt; &lt;br/&gt; # 测试推理&lt;br/&gt; input_text = &amp;quot;人工智能是指&amp;quot;&lt;br/&gt; inputs = tokenizer(input_text, return_tensors=&amp;quot;pt&amp;quot;)&lt;br/&gt; outputs = model.generate(**inputs, max_length=50)&lt;br/&gt; print(tokenizer.decode(outputs[0]))&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;第四章：数据准备与训练&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: &amp;#39;MS Gothic&amp;#39;&quot;&gt;‌&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;4.1 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;训练数据格式&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;在E:\deepseek_data下创建train.txt&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;数据格式要求：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;每行一个完整样本&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;或连续文本用两个换行符分隔&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;第一条文本内容...&lt;br/&gt; &lt;br/&gt; 第二条文本内容...&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;4.2 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;训练脚本详解&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;创建train.py：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;from transformers import Trainer, TrainingArguments&lt;br/&gt; from datasets import load_dataset&lt;br/&gt; import torch&lt;br/&gt; &lt;br/&gt; # 1. &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;加载之前准备好的模型和分词器&lt;br/&gt; tokenizer = AutoTokenizer.from_pretrained(r&amp;quot;E:\deepseek_project\model&amp;quot;)&lt;br/&gt; model = AutoModelForCausalLM.from_pretrained(&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; r&amp;quot;E:\deepseek_project\model&amp;quot;,&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; device_map=&amp;quot;cpu&amp;quot;,&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; load_in_8bit=True&lt;br/&gt; )&lt;br/&gt; &lt;br/&gt; # 2. 加载数据集&lt;br/&gt; dataset = load_dataset(&amp;quot;text&amp;quot;, data_files={&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;train&amp;quot;: r&amp;quot;E:\deepseek_data\train.txt&amp;quot;&lt;br/&gt; })&lt;br/&gt; &lt;br/&gt; # 3. 数据预处理函数&lt;br/&gt; def tokenize_function(examples):&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; return tokenizer(&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; examples[&amp;quot;text&amp;quot;],&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; truncation=True,&amp;nbsp; # 截断超长文本&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max_length=128,&amp;nbsp; &amp;nbsp;# 最大长度（根据内存调整）&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; padding=&amp;quot;max_length&amp;quot;&amp;nbsp; # 填充到统一长度&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br/&gt; &lt;br/&gt; # 4. 应用预处理&lt;br/&gt; tokenized_datasets = dataset.map(&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; tokenize_function,&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; batched=True,&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; batch_size=100&amp;nbsp; # 批处理大小&lt;br/&gt; )&lt;br/&gt; &lt;br/&gt; # 5. 训练参数配置（关键！）&lt;br/&gt; training_args = TrainingArguments(&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; output_dir=&amp;quot;E:/deepseek_output&amp;quot;,&amp;nbsp; # 输出目录&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; per_device_train_batch_size=1,&amp;nbsp;&amp;nbsp;&amp;nbsp; # 批大小=1（内存不足时减小）&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; gradient_accumulation_steps=4,&amp;nbsp;&amp;nbsp;&amp;nbsp; # 梯度累积步数&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; num_train_epochs=1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 训练轮次&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; learning_rate=2e-5,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 学习率&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; optim=&amp;quot;adafactor&amp;quot;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 内存友好优化器&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; save_strategy=&amp;quot;no&amp;quot;,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 不自动保存&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; logging_steps=10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 每10步打印日志&lt;br/&gt; )&lt;br/&gt; &lt;br/&gt; # 6. 创建训练器&lt;br/&gt; trainer = Trainer(&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; model=model,&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; args=training_args,&lt;br/&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; train_dataset=tokenized_datasets[&amp;quot;train&amp;quot;],&lt;br/&gt; )&lt;br/&gt; &lt;br/&gt; # 7. 开始训练&lt;br/&gt; print(&amp;quot;开始训练...（这可能需要几个小时）&amp;quot;)&lt;br/&gt; trainer.train()&lt;br/&gt; print(&amp;quot;训练完成！&amp;quot;)&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;第五章：内存优化技巧&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: &amp;#39;MS Gothic&amp;#39;&quot;&gt;‌&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;5.1 Windows&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;虚拟内存设置&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;右键&amp;quot;此电脑&amp;quot; → 属性 → 高级系统设置&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;性能设置 → 高级 → 虚拟内存 → 更改&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;取消&amp;quot;自动管理&amp;quot;，选择E盘&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;设置：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;初始大小：8192 MB&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;最大值：32768 MB&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;点击&amp;quot;设置&amp;quot; → 确定&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;5.2 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;训练时监控&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;打开任务管理器（Ctrl+Shift+Esc）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;查看：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;内存使用率（应&amp;lt;90%）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;磁盘活动（虚拟内存使用情况）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;5.3 &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: 宋体&quot;&gt;遇到内存不足的解决办法&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;减小max_length（改为64或32）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;降低gradient_accumulation_steps（改为2或1）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;添加清理代码：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;import gc&lt;br/&gt; torch.cuda.empty_cache()&amp;nbsp; # &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;清理缓存&lt;br/&gt; gc.collect()&amp;nbsp; # 垃圾回收&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;第六章：完整执行流程&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family: &amp;#39;MS Gothic&amp;#39;&quot;&gt;‌&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;打开命令提示符&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;激活环境：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;E:\deepseek_env\Scripts\activate&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;进入项目目录：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;cd E:\deepseek_project&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;按顺序执行：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:8px;margin-right:0;margin-bottom:8px;margin-left:0;text-align:left;background:#F8F8F8&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;python load_model.py&amp;nbsp; # &lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;测试模型加载&lt;br/&gt; python train.py&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # 开始训练&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;注意事项&lt;/span&gt;&lt;span style=&quot;font-size:16px;font-family:&amp;#39;MS Gothic&amp;#39;&quot;&gt;‌&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;首次运行会较慢（需要初始化）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;训练时不要运行其他大型程序&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;如果中断训练，删除E:/deepseek_output文件夹重新开始&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-top:5px;margin-right:0;margin-bottom:5px;margin-left:0;text-align:left&quot;&gt;&lt;span style=&quot;font-size:16px;font-family:宋体&quot;&gt;建议训练数据不超过100MB（16GB内存限制）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 10 Sep 2025 02:24:07 +0800</pubDate></item><item><title>centos下如何创建计划任务删除前一天的日志文件如：/tmp/nexus-2025-08-03.log /tmp/nexus-2025-08-04.log /tmp/nexus-2025-08-05</title><link>http://www.58zn.cn/html/blogview-1385.html</link><description>&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;centos下如何创建计划任务删除前一天的日志文件如：/tmp/nexus-2025-08-03.log /tmp/nexus-2025-08-04.log /tmp/nexus-2025-08-05.log&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在CentOS系统中创建计划任务删除前一天的日志文件，可以通过以下步骤实现：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;创建删除脚本‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;编写一个shell脚本用于删除指定目录下前一天的日志文件，例如：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#!/bin/bash
find&amp;nbsp;/tmp/&amp;nbsp;-name&amp;nbsp;&amp;quot;nexus-*.log&amp;quot;&amp;nbsp;-mtime&amp;nbsp;+1&amp;nbsp;-exec&amp;nbsp;rm&amp;nbsp;-f&amp;nbsp;{}&amp;nbsp;\;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;该脚本会删除/tmp/目录下所有文件名匹配nexus-*.log且修改时间超过1天的文件。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;设置脚本权限‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;为脚本添加可执行权限：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;chmod&amp;nbsp;+x&amp;nbsp;/path/to/your_script.sh&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;配置cron定时任务‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;使用crontab -e命令编辑当前用户的定时任务，添加以下内容：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;0&amp;nbsp;2&amp;nbsp;*&amp;nbsp;*&amp;nbsp;*&amp;nbsp;/path/to/your_script.sh&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/log_clean.log&amp;nbsp;2&amp;gt;&amp;amp;1&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;这表示每天凌晨2点执行脚本，并将输出记录到/var/log/log_clean.log中。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;重启cron服务‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;确保cron服务正常运行：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;systemctl&amp;nbsp;restart&amp;nbsp;crond&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;验证任务‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;可以通过以下命令查看已配置的定时任务：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;crontab&amp;nbsp;-l&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;如果需要更精确地匹配文件名格式（如nexus-YYYY-MM-DD.log），可以修改脚本中的find命令，例如：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;find&amp;nbsp;/tmp/&amp;nbsp;-name&amp;nbsp;&amp;quot;nexus-$(date&amp;nbsp;-d&amp;nbsp;&amp;quot;yesterday&amp;quot;&amp;nbsp;+\%Y-\%m-\%d).log&amp;quot;&amp;nbsp;-exec&amp;nbsp;rm&amp;nbsp;-f&amp;nbsp;{}&amp;nbsp;\;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;注意：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;-mtime +1表示删除修改时间超过24小时的文件&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;建议先在测试环境验证脚本功能，避免误删重要文件&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;对于生产环境，建议将删除操作改为移动至临时目录或添加确认步骤&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;================================================&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;; font-size: 16px; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;centos如何创建计划任务删除前一天的日志文件如： /tmp/nexus-cli-root-2025-08-10.log &amp;nbsp;/tmp/nexus-cli-root-2025-08-09.log &amp;nbsp;/tmp/nexus-cli-root-2025-08-08.log&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在CentOS系统中，可以通过crontab设置计划任务来删除前一天的日志文件（如/tmp/nexus-cli-root-YYYY-MM-DD.log）。以下是具体步骤：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1. 创建删除脚本‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;编写一个Shell脚本，使用date命令动态匹配前一天的日志文件名并删除：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#!/bin/bash
#&amp;nbsp;删除前一天的日志文件（格式：nexus-cli-root-YYYY-MM-DD.log）
LOG_PREFIX=&amp;quot;/tmp/nexus-cli-root&amp;quot;
YESTERDAY=$(date&amp;nbsp;-d&amp;nbsp;&amp;quot;yesterday&amp;quot;&amp;nbsp;+%Y-%m-%d)
TARGET_FILE=&amp;quot;${LOG_PREFIX}-${YESTERDAY}.log&amp;quot;
if&amp;nbsp;[&amp;nbsp;-f&amp;nbsp;&amp;quot;$TARGET_FILE&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rm&amp;nbsp;-f&amp;nbsp;&amp;quot;$TARGET_FILE&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;[$(date)]&amp;nbsp;Deleted:&amp;nbsp;$TARGET_FILE&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/log_cleaner.log
else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;[$(date)]&amp;nbsp;File&amp;nbsp;not&amp;nbsp;found:&amp;nbsp;$TARGET_FILE&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/log_cleaner.log
fi&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;保存脚本‌（例如/usr/local/bin/clean_nexus_logs.sh）并赋予执行权限：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;sudo&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;/usr/local/bin/clean_nexus_logs.sh&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2. 配置Cron计划任务‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;编辑当前用户的crontab：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;crontab&amp;nbsp;-e&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;添加以下行，每天凌晨1点执行脚本：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;0&amp;nbsp;1&amp;nbsp;*&amp;nbsp;*&amp;nbsp;*&amp;nbsp;/usr/local/bin/clean_nexus_logs.sh&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/log_cleaner.log&amp;nbsp;2&amp;gt;&amp;amp;1&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;3. 重启Cron服务‌&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;sudo&amp;nbsp;systemctl&amp;nbsp;restart&amp;nbsp;crond&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;4. 验证任务‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;查看任务列表：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;crontab&amp;nbsp;-l&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;手动测试脚本：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;/usr/local/bin/clean_nexus_logs.sh&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;检查日志：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;cat&amp;nbsp;/var/log/log_cleaner.log&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;关键点说明‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;精准匹配文件名‌：通过date -d &amp;quot;yesterday&amp;quot;动态生成前一天的日期，避免误删其他文件。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;日志记录‌：脚本会记录删除操作，便于排查问题。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;安全防护‌：先检查文件是否存在再删除，避免报错。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;如果需要删除更早的文件（如保留最近3天），可以修改脚本中的find命令：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;find&amp;nbsp;/tmp&amp;nbsp;-name&amp;nbsp;&amp;quot;nexus-cli-root-*.log&amp;quot;&amp;nbsp;-mtime&amp;nbsp;+3&amp;nbsp;-exec&amp;nbsp;rm&amp;nbsp;-f&amp;nbsp;{}&amp;nbsp;\;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;; font-size: 16px; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;================================================================&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;; font-size: 16px; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;; font-size: 16px; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;centos如何创建计划任务删除前一天的日志文件如： /tmp/nexus-cli-www-2025-08-10.log &amp;nbsp;/tmp/nexus-cli-www-2025-08-09.log &amp;nbsp;/tmp/nexus-cli-www-2025-08-08.log&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;; font-size: 16px; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;; font-size: 16px; white-space: pre-wrap; background-color: #FFFFFF;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在CentOS系统中创建计划任务删除前一天的日志文件（如/tmp/nexus-cli-www-YYYY-MM-DD.log），可通过以下步骤实现：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1. 创建删除脚本‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;编写Shell脚本，使用find命令匹配并删除前一天的日志文件：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#!/bin/bash
#&amp;nbsp;删除前一天的日志文件（格式：nexus-cli-www-YYYY-MM-DD.log）
LOG_PREFIX=&amp;quot;/tmp/nexus-cli-www&amp;quot;
YESTERDAY=$(date&amp;nbsp;-d&amp;nbsp;&amp;quot;yesterday&amp;quot;&amp;nbsp;+%Y-%m-%d)
TARGET_FILE=&amp;quot;${LOG_PREFIX}-${YESTERDAY}.log&amp;quot;
if&amp;nbsp;[&amp;nbsp;-f&amp;nbsp;&amp;quot;$TARGET_FILE&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rm&amp;nbsp;-f&amp;nbsp;&amp;quot;$TARGET_FILE&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;[$(date)]&amp;nbsp;Deleted:&amp;nbsp;$TARGET_FILE&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/nexus_log_cleaner.log
else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;[$(date)]&amp;nbsp;File&amp;nbsp;not&amp;nbsp;found:&amp;nbsp;$TARGET_FILE&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/nexus_log_cleaner.log
fi&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;保存脚本‌（如/usr/local/bin/clean_nexus_logs.sh）并赋予执行权限：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;sudo&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;/usr/local/bin/clean_nexus_logs.sh&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2. 配置Cron计划任务‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;编辑当前用户的crontab：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;crontab&amp;nbsp;-e&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;添加以下行，每天凌晨1点执行脚本：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;0&amp;nbsp;1&amp;nbsp;*&amp;nbsp;*&amp;nbsp;*&amp;nbsp;/usr/local/bin/clean_nexus_logs.sh&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/nexus_log_cleaner.log&amp;nbsp;2&amp;gt;&amp;amp;1&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;3. 重启Cron服务‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;sudo systemctl restart crond&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;4. 验证任务‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;查看任务列表：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;crontab&amp;nbsp;-l&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;手动测试脚本：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;/usr/local/bin/clean_nexus_logs.sh&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;检查日志：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;cat&amp;nbsp;/var/log/nexus_log_cleaner.log&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;关键说明‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;精准匹配文件名‌：通过date -d &amp;quot;yesterday&amp;quot;动态生成前一天的日期，避免误删其他文件。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;日志记录‌：脚本会记录删除操作，便于排查问题。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;安全防护‌：先检查文件是否存在再删除，避免报错。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;若需删除更早的文件（如保留最近3天），可修改脚本中的find命令：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;find&amp;nbsp;/tmp&amp;nbsp;-name&amp;nbsp;&amp;quot;nexus-cli-www-*.log&amp;quot;&amp;nbsp;-mtime&amp;nbsp;+3&amp;nbsp;-exec&amp;nbsp;rm&amp;nbsp;-f&amp;nbsp;{}&amp;nbsp;\;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;--------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;从以上3个实例可以看出，用宝塔面板的朋友，只需要在宝塔面板里的计划任务里直接添加脚本内容即可。&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#!/bin/bash
#&amp;nbsp;删除前一天的日志文件（格式：nexus-cli-www-YYYY-MM-DD.log）
LOG_PREFIX=&amp;quot;/tmp/nexus-cli-www&amp;quot;
YESTERDAY=$(date&amp;nbsp;-d&amp;nbsp;&amp;quot;yesterday&amp;quot;&amp;nbsp;+%Y-%m-%d)
TARGET_FILE=&amp;quot;${LOG_PREFIX}-${YESTERDAY}.log&amp;quot;
if&amp;nbsp;[&amp;nbsp;-f&amp;nbsp;&amp;quot;$TARGET_FILE&amp;quot;&amp;nbsp;];&amp;nbsp;then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rm&amp;nbsp;-f&amp;nbsp;&amp;quot;$TARGET_FILE&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;[$(date)]&amp;nbsp;Deleted:&amp;nbsp;$TARGET_FILE&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/nexus_log_cleaner.log
else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&amp;quot;[$(date)]&amp;nbsp;File&amp;nbsp;not&amp;nbsp;found:&amp;nbsp;$TARGET_FILE&amp;quot;&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;/var/log/nexus_log_cleaner.log
fi&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;如图所示：&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;/zb_users/upload/2025/08/202508101754815390128821.png&quot;/&gt;&lt;/p&gt;</description><pubDate>Sun, 10 Aug 2025 16:32:07 +0800</pubDate></item><item><title>armbian手动本地安装aria2</title><link>http://www.58zn.cn/html/blogview-1384.html</link><description>&lt;p&gt;以下是基于Armbian系统手动本地安装Aria2的完整流程（无需Docker），综合多个可靠来源整理：&lt;/p&gt;&lt;p&gt;🔧 ‌安装步骤‌&lt;/p&gt;&lt;p&gt;1. ‌安装Aria2‌&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;apt&amp;nbsp;update
sudo&amp;nbsp;apt&amp;nbsp;install&amp;nbsp;aria2&amp;nbsp;-y&amp;nbsp;&amp;nbsp;#&amp;nbsp;通过apt直接安装核心程序&amp;nbsp;:ml-citation{ref=&amp;quot;2,5&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;若apt安装失败（如版本不兼容），可尝试编译安装：(1行1个命令)&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;wget&amp;nbsp;https://github.com/aria2/aria2/releases/download/release-1.34.0/aria2-1.34.0.tar.bz2
tar&amp;nbsp;-jxvf&amp;nbsp;aria2-1.34.0.tar.bz2
cd&amp;nbsp;aria2-1.34.0
./configure
make
sudo&amp;nbsp;make&amp;nbsp;install&amp;nbsp;&amp;nbsp;#&amp;nbsp;手动编译安装替代方案&amp;nbsp;:ml-citation{ref=&amp;quot;6&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;2. ‌创建配置文件与目录‌&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;mkdir&amp;nbsp;-p&amp;nbsp;~/.config/aria2&amp;nbsp;&amp;nbsp;#&amp;nbsp;创建配置目录
touch&amp;nbsp;~/.config/aria2/aria2.session&amp;nbsp;&amp;nbsp;#&amp;nbsp;会话文件
touch&amp;nbsp;~/.config/aria2/aria2.conf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;配置文件&amp;nbsp;:ml-citation{ref=&amp;quot;2,5&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;3. ‌编辑配置文件‌&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;nano&amp;nbsp;~/.config/aria2/aria2.conf&lt;/pre&gt;&lt;p&gt;粘贴以下配置（按需修改关键参数）‌：ini&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;
dir=/home/你的用户名/downloads&amp;nbsp;&amp;nbsp;#&amp;nbsp;下载保存路径（必改！）
input-file=~/.config/aria2/aria2.session
save-session=~/.config/aria2/aria2.session
rpc-listen-port=6800
rpc-secret=你的自定义密码&amp;nbsp;&amp;nbsp;#&amp;nbsp;RPC密钥（必改！）
continue=true
max-concurrent-downloads=3
split=10
min-split-size=10M
max-connection-per-server=16
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
disable-ipv6=true&amp;nbsp;&amp;nbsp;#&amp;nbsp;若IPv6不稳定建议启用&amp;nbsp;:ml-citation{ref=&amp;quot;2,5&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;按 Ctrl+O 保存 → Enter → Ctrl+X 退出编辑器。&lt;/p&gt;&lt;p&gt;4. ‌启动Aria2‌&lt;/p&gt;&lt;p&gt;临时启动（调试用）‌：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;aria2c&amp;nbsp;--conf-path=~/.config/aria2/aria2.conf&lt;/pre&gt;&lt;p&gt;后台常驻启动‌：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;nohup&amp;nbsp;aria2c&amp;nbsp;--conf-path=~/.config/aria2/aria2.conf&amp;nbsp;&amp;gt;&amp;nbsp;/dev/null&amp;nbsp;2&amp;gt;&amp;amp;1&amp;nbsp;&amp;amp;&lt;/pre&gt;&lt;p&gt;开机自启（systemd）‌&lt;/p&gt;&lt;p&gt;创建服务文件：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;nano&amp;nbsp;/etc/systemd/system/aria2.service&lt;/pre&gt;&lt;p&gt;内容如下：ini&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;[Unit]
Description=Aria2&amp;nbsp;Download&amp;nbsp;Service
After=network.target

[Service]
User=你的用户名
ExecStart=/usr/bin/aria2c&amp;nbsp;--conf-path=/home/你的用户名/.config/aria2/aria2.conf

[Install]
WantedBy=multi-user.target&lt;/pre&gt;&lt;p&gt;启用服务：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;systemctl&amp;nbsp;daemon-reload
sudo&amp;nbsp;systemctl&amp;nbsp;start&amp;nbsp;aria2
sudo&amp;nbsp;systemctl&amp;nbsp;enable&amp;nbsp;aria2&amp;nbsp;&amp;nbsp;#&amp;nbsp;开机自启&amp;nbsp;:ml-citation{ref=&amp;quot;4,8&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;🌐 ‌连接Web管理界面‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;推荐使用 ‌AriaNg‌ 作为Web前端：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;浏览器访问 http://ariang.mayswind.net/latest&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;进入 AriaNg设置 → RPC：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Aria2 RPC 地址‌：http://[你的Armbian IP]:6800/jsonrpc&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;RPC 密钥‌：填写配置中的 rpc-secret 值&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;⚠️ ‌注意事项‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;端口与防火墙‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;确保 6800 端口开放：sudo ufw allow 6800/tcp&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;若使用路由转发，需在路由器设置端口映射&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;下载目录权限‌&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;chown&amp;nbsp;-R&amp;nbsp;$USER:$USER&amp;nbsp;/home/你的用户名/downloads&amp;nbsp;&amp;nbsp;#&amp;nbsp;避免写入权限问题&amp;nbsp;:ml-citation{ref=&amp;quot;8&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;服务状态检查‌&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;systemctl&amp;nbsp;status&amp;nbsp;aria2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;检查运行状态
netstat&amp;nbsp;-tunlp&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;6800&amp;nbsp;&amp;nbsp;#&amp;nbsp;确认端口监听&amp;nbsp;:ml-citation{ref=&amp;quot;4&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;🔍 附：快速验证RPC连通性&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;curl&amp;nbsp;http://localhost:6800/jsonrpc&amp;nbsp;-d&amp;nbsp;&amp;#39;{&amp;quot;jsonrpc&amp;quot;:&amp;quot;2.0&amp;quot;,&amp;quot;method&amp;quot;:&amp;quot;aria2.getVersion&amp;quot;,&amp;quot;id&amp;quot;:1}&amp;#39;&amp;nbsp;-H&amp;nbsp;&amp;#39;Content-Type:&amp;nbsp;application/json&amp;#39;
#&amp;nbsp;返回含&amp;nbsp;&amp;quot;version&amp;quot;&amp;nbsp;字段即成功&amp;nbsp;:ml-citation{ref=&amp;quot;9&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;此方案完全基于本地安装，无Docker依赖，适配主流Armbian设备（玩客云/斐讯N1等均实测可用）。若需更复杂配置（如BT优化），可参考配置文件中的扩展参数注释 。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;=====================&lt;/p&gt;&lt;p&gt;以下是重置 Aria2 RPC 密钥的完整操作指南（基于配置文件修改）：&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;🔑 重置步骤&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;‌修改配置文件‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;打开 Aria2 配置文件（默认路径 ~/.config/aria2/aria2.conf）：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;nano&amp;nbsp;~/.config/aria2/aria2.conf&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;定位 rpc-secret= 参数&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;修改等号后的值为新密钥（示例：rpc-secret=NewPassword123!）23&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;ini&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;rpc-secret=NewPassword123!&amp;nbsp;&amp;nbsp;#&amp;nbsp;替换为自定义高强度密钥&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;‌重启 Aria2 服务‌&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;systemctl&amp;nbsp;restart&amp;nbsp;aria2&amp;nbsp;&amp;nbsp;#&amp;nbsp;使用&amp;nbsp;Systemd&amp;nbsp;管理时:ml-citation{ref=&amp;quot;4&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;或手动重启：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;killall&amp;nbsp;aria2c&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;aria2c&amp;nbsp;--conf-path=/path/to/aria2.conf&amp;nbsp;-D&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;‌更新 Web 管理端配置‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在 AriaNg 等前端界面中：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;设置&amp;nbsp;→&amp;nbsp;RPC&amp;nbsp;→&amp;nbsp;密钥&amp;nbsp;填入新密钥28&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;连接地址示例：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;http://服务器IP:6800/jsonrpc&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;⚠️ 注意事项&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;‌密钥复杂度‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;建议组合大小写字母 + 数字 + 符号（如 X7gT!9qP@2）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;避免使用默认值或简单密码38&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;‌服务状态验证‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;curl&amp;nbsp;http://localhost:6800/jsonrpc&amp;nbsp;-d&amp;nbsp;&amp;#39;{
&amp;nbsp;&amp;nbsp;&amp;quot;jsonrpc&amp;quot;:&amp;quot;2.0&amp;quot;,
&amp;nbsp;&amp;nbsp;&amp;quot;method&amp;quot;:&amp;quot;aria2.getVersion&amp;quot;,
&amp;nbsp;&amp;nbsp;&amp;quot;id&amp;quot;:1,
&amp;nbsp;&amp;nbsp;&amp;quot;params&amp;quot;:[&amp;quot;token:NewPassword123!&amp;quot;]
}&amp;#39;&amp;nbsp;-H&amp;nbsp;&amp;#39;Content-Type:&amp;nbsp;application/json&amp;#39;&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;✅ 成功返回将包含 &amp;quot;version&amp;quot; 字段8&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;‌防火墙规则‌&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;若远程访问失败：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;ufw&amp;nbsp;allow&amp;nbsp;6800/tcp&amp;nbsp;&amp;nbsp;#&amp;nbsp;开放&amp;nbsp;RPC&amp;nbsp;端口:ml-citation{ref=&amp;quot;7&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;密钥修改后需同步更新所有连接客户端（桌面客户端/手机APP等）的配置24。若使用 Docker 部署，需在环境变量 RPC_SECRET 中同步更新密钥并重建容器3。&lt;/span&gt;&lt;/p&gt;</description><pubDate>Sat, 07 Jun 2025 15:18:26 +0800</pubDate></item><item><title>armbian设置硬盘休眠方法</title><link>http://www.58zn.cn/html/blogview-1383.html</link><description>&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 7px; margin-bottom: 7px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; font-size: 16px; line-height: 29px; -webkit-text-stroke-color: initial; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;在 Armbian 系统中设置机械硬盘休眠可通过以下步骤实现，综合多个配置方案及注意事项如下：&lt;/p&gt;&lt;hr style=&quot;margin: 12px 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background-color: rgb(255, 255, 255); border: none; height: 1px; position: relative; width: auto; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap;&quot;/&gt;&lt;h3 style=&quot;margin: 11px 0px 6px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; line-height: 30px; font-size: 18px; -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;一、安装必要工具&lt;/h3&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 7px; margin-bottom: 7px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; font-size: 16px; line-height: 29px; -webkit-text-stroke-color: initial; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;安装&amp;nbsp;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;hdparm&lt;/code&gt;&amp;nbsp;工具以管理硬盘电源状态：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;apt&amp;nbsp;update&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;sudo&amp;nbsp;apt&amp;nbsp;install&amp;nbsp;hdparm&amp;nbsp;-y&amp;nbsp;&amp;nbsp;:ml-citation{ref=&amp;quot;2,3&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;h3 style=&quot;margin: 11px 0px 6px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; line-height: 30px; font-size: 18px; -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;二、检查硬盘APM支持&lt;/h3&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;1‌.&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-weight: 600 !important;&quot;&gt;确定硬盘设备名称&lt;/span&gt;‌：&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;fdisk&amp;nbsp;-l&amp;nbsp;&amp;nbsp;#&amp;nbsp;或使用&amp;nbsp;lsblk&amp;nbsp;查看设备名（如&amp;nbsp;/dev/sda）&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;‌&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;2.&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: #333333; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF; font-weight: 600 !important;&quot;&gt;检查APM支持&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;‌：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;hdparm&amp;nbsp;-B&amp;nbsp;/dev/sda&amp;nbsp;&amp;nbsp;#&amp;nbsp;输出包含&amp;nbsp;`APM_level`&amp;nbsp;表示支持&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;若不支持 APM，需通过&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; color: rgb(51, 51, 51); font-size: 16px; text-wrap-mode: wrap;&quot;&gt;force_spindown_time&lt;/code&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;&amp;nbsp;强制设置休眠&lt;/span&gt;
 &amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;margin: 11px 0px 6px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; line-height: 30px; font-size: 18px; -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;三、配置硬盘休眠参数&lt;/h3&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; font-size: 16px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;方法1：修改&amp;nbsp;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;/etc/hdparm.conf&lt;/code&gt;（推荐）&lt;/h4&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 7px; margin-bottom: 7px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; line-height: 29px; -webkit-text-stroke-color: initial;&quot;&gt;1‌.&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-weight: 600 !important;&quot;&gt;编辑配置文件&lt;/span&gt;‌：&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;sudo&amp;nbsp;nano&amp;nbsp;/etc/hdparm.conf&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;‌&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2.&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: #333333; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF; font-weight: 600 !important;&quot;&gt;添加以下内容（示例为&amp;nbsp;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;/dev/sda&lt;/code&gt;）&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;‌：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;/dev/sda&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;apm&amp;nbsp;=&amp;nbsp;192&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;APM级别（192为高性能模式，127为平衡模式）
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;spindown_time&amp;nbsp;=&amp;nbsp;60&amp;nbsp;&amp;nbsp;#&amp;nbsp;60=5分钟不活动休眠（单位：5秒倍数）
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;write_cache&amp;nbsp;=&amp;nbsp;on&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;可选，启用写入缓存
}&lt;/pre&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;spindown_time&lt;/code&gt;&amp;nbsp;取值范围参考：&lt;br style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin;&quot;/&gt;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;60=5分钟&lt;/code&gt;（1..240为5秒倍数，241..251为30分钟倍数）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;apm=192&lt;/code&gt;&amp;nbsp;较敏感，&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px;&quot;&gt;apm=127&lt;/code&gt;&amp;nbsp;可能延迟唤醒&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;3.&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: #333333; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF; font-weight: 600 !important;&quot;&gt;生效配置&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;‌：&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;sudo&amp;nbsp;/usr/lib/pm-utils/power.d/95hdparm-apm&amp;nbsp;resume&amp;nbsp;&amp;nbsp;#&amp;nbsp;立即加载配置
#&amp;nbsp;或重启系统&lt;/pre&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; font-size: 16px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;方法2：脚本或命令行临时设置&lt;/h4&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;‌1.&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-weight: 600 !important;&quot;&gt;立即进入待机模式&lt;/span&gt;‌（测试用）：&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;sudo&amp;nbsp;hdparm&amp;nbsp;-y&amp;nbsp;/dev/sda&amp;nbsp;&amp;nbsp;#&amp;nbsp;强制休眠:ml-citation{ref=&amp;quot;3&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2.&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;‌&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: #333333; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF; font-weight: 600 !important;&quot;&gt;手动设置休眠时间&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;‌：&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;sudo&amp;nbsp;hdparm&amp;nbsp;-S60&amp;nbsp;/dev/sda&amp;nbsp;&amp;nbsp;#&amp;nbsp;60=5分钟休眠:ml-citation{ref=&amp;quot;3,5&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;h3 style=&quot;margin: 11px 0px 6px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; line-height: 30px; font-size: 18px; -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;四、验证休眠状态&lt;/h3&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;1‌.&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-weight: 600 !important;&quot;&gt;查看当前状态&lt;/span&gt;‌：&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;sudo&amp;nbsp;hdparm&amp;nbsp;-C&amp;nbsp;/dev/sda&amp;nbsp;&amp;nbsp;#&amp;nbsp;输出&amp;nbsp;`standby`&amp;nbsp;表示休眠成功:ml-citation{ref=&amp;quot;3,7&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-weight: 600 !important;&quot;&gt;2.监听硬盘声音&lt;/span&gt;‌：休眠时机械硬盘停止转动&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;3‌.&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-weight: 600 !important;&quot;&gt;查看系统日志&lt;/span&gt;‌：&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;pre class=&quot;prism-highlight prism-language-basic&quot;&gt;journalctl&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;-i&amp;nbsp;&amp;quot;standby&amp;quot;&amp;nbsp;&amp;nbsp;#&amp;nbsp;筛选休眠事件日志:ml-citation{ref=&amp;quot;5&amp;quot;&amp;nbsp;data=&amp;quot;citationList&amp;quot;}&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;h3 style=&quot;margin: 11px 0px 6px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; line-height: 30px; font-size: 18px; -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif;&quot;&gt;五、注意事项&lt;/h3&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;‌&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-weight: 600 !important;&quot;&gt;APM兼容性&lt;/span&gt;‌：部分硬盘需特定 APM 值（如西数建议&amp;nbsp;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; color: rgb(51, 51, 51);&quot;&gt;apm=192&lt;/code&gt;）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;‌&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-weight: 600 !important;&quot;&gt;SSD无需设置&lt;/span&gt;‌：固态硬盘无机械部件，无需休眠配置&lt;span disable-audio=&quot;true&quot; disable-copy=&quot;true&quot; style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin;&quot;&gt;&lt;/span&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;‌&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-weight: 600 !important;&quot;&gt;休眠失败处理&lt;/span&gt;‌：若配置未生效，尝试更新硬盘固件或改用&amp;nbsp;&lt;code style=&quot;margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; color: rgb(51, 51, 51);&quot;&gt;hd-idle&lt;/code&gt;&amp;nbsp;工具&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;‌&lt;span style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; -webkit-text-stroke-color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; font-weight: 600 !important;&quot;&gt;KVM虚拟机限制&lt;/span&gt;‌：直通硬盘时可能无法生效.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 7px; margin-bottom: 7px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; font-size: 16px; line-height: 29px; -webkit-text-stroke-color: initial; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;通过上述配置，机械硬盘可在闲置指定时间后自动休眠，降低功耗与噪音&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;span disable-audio=&quot;true&quot; disable-copy=&quot;true&quot; style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin; text-wrap-mode: wrap; background-color: #FFFFFF;&quot;&gt;&lt;span rl-type=&quot;stop&quot; style=&quot;margin: 0px; padding: 0px; -webkit-font-smoothing: antialiased; scrollbar-color: rgba(184, 186, 193, 0.6) transparent; scrollbar-width: thin;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 22 May 2025 23:00:32 +0800</pubDate></item><item><title>做了一个好长的梦</title><link>http://www.58zn.cn/html/blogview-1382.html</link><description>做了个很长的梦，梦见在西门不远的地方有①片很大很大的旧住宅区，那里巷子很小很小，错综复杂，汽车法通过，我开一只变速三轮小电动去试车，回来时大路堵了，转入那片小巷子，转来转去出不来了，&lt;br&gt;
然后要给老婆发信息发定位叫来救我，谁知道手机没信号，整片地方没信号！&lt;br&gt;
然后还发现手机下巴裂开了，手机套也没套，好像是爸爸说要给我手机壳贴上钻片显高档，我说不用，阿初其锉落叫拿过我的手机拆出来要给我换手机壳我不同意，&lt;br&gt;
跟他说：好好的东西不要总是拆，拆了就坏了，除非已到了可以丢掉的时候要拆才拆！这样坏了也不心疼，还要有备用件可代替用时才好拆。然后才造成这！&lt;br&gt;
我到处转都没转出去，最后转到一个小广场，像个超大号的“坟”的广场，上方是平面，向前是个凹下的小平面广场，站在上方看就像人站在坟头看下方，但是是广场，四周还是小巷子密密麻麻很多住户！&lt;br&gt;
我印象中好像老婆曾经带我来过这个小广场！但记不起是什么时候了！&lt;br&gt;
我在广场上方依然发不出信息！用短信微信都不行！手机举着一动不动也收不到信息！&lt;br&gt;
最后无耐继续找出路，在广场边上一个小巷里有一个小小的坡坎，那里有一户人，有二个小孩，一大一小，和他们的父母，是一对小商贩，他们好像有的在做包子卖，有的好像在杀鸡宰鸭卖卤肉！&lt;br&gt;
我跟他们请教怎么走出去，那丈夫说这样那样这样那样再这样那样走就走出去了，不过要很长时间才走得出去，我听得一头雾水，就按他说的这样那样走了两个拐弯，又不知怎么走了，只好折回去，希望找那男的带我出去！&lt;br&gt;
那男的说他不能离开这个地方，但是可以帮我引路！说到这里的时候，突然小坡坎的另一边小巷路上开来一辆男装摩托车，穿着西装，太远看不清，没一回转过坡坎，我看到居然是阿爸来了！&lt;br&gt;
我刚要叫，那个男人已经迎了过去，阿爸也停好摩托车，从摩托车后面拿下来一件红牛和一件绿茶还有二件牛奶送给了那男人，两人已经寒暄起来！&lt;br&gt;
我一看这还是熟人啊，我走过去问：阿爸你怎么来了？你跟这位....认识？&lt;br&gt;
阿爸也看到我了，面容好像放松了一下，笑着说：我跟这个城郭兄弟早年在汕头卖猪肉认识的，以前两人经常一起聊天喝茶，现在他回来老家了，二十几年没见面了！好在当年我也来过他老家这里，一切没变，我就来了！&lt;br&gt;
我又问：那你怎么来了？&lt;br&gt;
阿爸说：你去试车，都将近一个星期没见你回来了&lt;br&gt;
我啊了一声，难怪我转得头晕脑胀，原来已经在这里转了一个星期了！&lt;br&gt;
阿爸继续说：我们到处找你，沿大路找也没找到，担心死了！前二天，阿芳收到你的信息和定位，但是无人知道这个位置在哪里，连地图上都没有！转给我一看，我看这不是在城郭兄弟家附近么&lt;br&gt;
（阿爸看了一眼那个男人：你要叫叔叔！我连忙应声对男人叫了声叔叔！），于是我就来了，想着叫你城郭叔叔帮忙找找你，你城郭叔叔对这一片熟，世居这里！没想到你这个小子居然是在你城郭叔叔这里，这还真是缘份！&lt;br&gt;
这时候那个城郭叔叔才终于开口，说：这真是缘份，我看这小弟在这瞎逛，正好这两天开门做生意，就碰到他，给他指了回去的路，谁知道这小子走了几个转之后就不知道怎么走了又折回来，真是笨蛋！&lt;br&gt;
阿爸哈哈大笑说：城郭你说的没错，他能走出去才怪，这小子是个路痴，就是给他地图他也看不懂路，非要有人带着走才行，走过一遍都还未必能认识路，走个几十遍估计能记得一个大概，反正就是个路痴！&lt;br&gt;
我在边上嘀咕：我也不是很路痴，是路转来转去有点难认！&lt;br&gt;
这时那个妇女走过来，阿爸已经把饮料拿给城郭叔了，把牛奶拿给妇女：给两小孩的！夫妇说：阿伯，你来就好，无须带啥礼物！现在这个世道，大家啥都不缺！咱快回屋去坐着聊！&lt;br&gt;
阿爸笑着说：几十年没来了，总不好空手来！&lt;br&gt;
（阿爸太实诚了，尽说大白话。）&lt;br&gt;
城郭叔也笑着说：难得阿兄来，里面屋里坐坐！&lt;br&gt;
他对他夫人说：今天杀鸡宰鸭请阿兄他吃喝一餐再回去！&lt;br&gt;
说到最后是对着阿爸说的！&lt;br&gt;
阿爸连忙说：城郭兄弟客气了，这小子一个星期没声没息的到处找不到人，家里所有亲戚朋友，老婆孩子都急慌了，我还是赶紧带他回去吧，省得家里人担心！&lt;br&gt;
城郭叔听到阿爸这么说，叹息一声，说：那好吧，我也不留你们了！几十年前你也是来了匆匆就走，也是没留住一段时间，都是来去匆匆！咱们想聚聚喝茶聊天也没时间！&lt;br&gt;
阿爸笑着说：城郭兄弟不用着急，以后我有空了再来，以后总有机会聚聚，这次真不能耽搁，你知道的，你老家这里，一天当外面一个月，我再多待会，就一个月过去了，那外面家里人不急疯了？&lt;br&gt;
城郭叔笑笑说：那行那行，你们赶快回去吧！&lt;br&gt;
（我心想，这城郭叔真是个实诚人，也不客套一下意思意思挽留一下！）&lt;br&gt;
阿爸跟他们夫妇还有那两个小孩挥了挥手，对我示意上摩托车！我也跟那城郭叔和他两小孩告别，然后上了阿爸的摩托车，阿爸摩托车一点火，一溜烟转过一个巷子，就见不到城郭叔他们一家了！&lt;br&gt;
我很好奇问阿爸：你怎么在潮阳有朋友啊？阿爸说几十年前在汕头卖猪肉时认识的，不是刚说了么？&lt;br&gt;
我又问：那怎么你对这里这么熟，为什么我老丈人反而不熟？&lt;br&gt;
阿爸安静了一回说：因为我来过这里，不是说了么？你丈人没来过！&lt;br&gt;
我又问：怎么你在汕头卖猪肉时还来过潮阳这个地方？这地方不是在西门附近么？怎么我丈人土生土长反而没来过这地方？&lt;br&gt;
阿爸说：世界那么大，不是每个人都有机会到每一个地方的！&lt;br&gt;
这句话说得好像很有道理，我一时居然没话可反问！于是又问：城郭叔他们一家以前也是卖猪肉的？&lt;br&gt;
阿爸说：不是！&lt;br&gt;
我又问：那他们是做什么的？你们是怎么认识的？&lt;br&gt;
阿爸没说话，我又重复问了一遍，阿爸还是没说话！突然眼前一遍空阔，已经驶出了小巷子，来到大路上了，我回头一看，居然看不清小巷子那里的情况了，那里在一遍迷雾的笼罩中，一切似隐似现，感觉真实又好像不存在！&lt;br&gt;
这时阿爸说：因为他是城郭！&lt;br&gt;
我说：知道啊，你不是说过了吗，城郭叔！&lt;br&gt;
阿爸又重复说：因为他是城廓！轮廓的廓，不是郭靖的郭！他掌管着那片地方，如果他不同意我们走出来，我们就走不出那片地方，明白没？&lt;br&gt;
我说：城廓叔权力那么大？他是当官的还是当黑，社，会，的？&lt;br&gt;
阿爸说：当官的遇到他，那他就是当官的，平民遇到他，他就是平民！商人遇到他，他就是商人！&lt;br&gt;
我说：这什么意思？城郭叔还是万能身份啊？演员啊？&lt;br&gt;
阿爸说：因为他是城廓，他掌管那一片地方！那片地方是他，他就是那片地方，他是城廓！城廓什么意思你知道不？城墙什么意思你知道不？古代的城市外围是不是有城墙不让人随便进出？你知道的不？&lt;br&gt;
城郭就是城廓，他一般不让人随便进出那个地方，所以我说如果他不同意我们出来，那我们就出不来！明白不？&lt;br&gt;
我似懂非懂：嗯，有点明白！&lt;br&gt;
阿爸又问：明白不？&lt;br&gt;
我说：明白了，我们这是穿越了到了古代的城池里去了，郭叔是守城大将！&lt;br&gt;
阿爸停下了摩托车，一手抚额一脚踢向我的脚喝道：下车！&lt;br&gt;
我脚一疼，就跳下车，于是醒了！醒来之后发现躺在床上，两脚酸疼，原来是梦柯一梦。&lt;br&gt;

</description><pubDate>Tue, 06 May 2025 15:22:57 +0800</pubDate></item></channel></rss>