<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>V5主机测评网_性价比VPS_性价比云服务器_免费独立服务器</title><link>https://vps5.cn/</link><description>V5主机测评网_性价比VPS_性价比云服务器_免费独立服务器</description><item><title>从Win到鸿蒙：跨平台远程控制软件全面评测</title><link>https://vps5.cn/2026011018.html</link><description>&lt;div id=&quot;wznr&quot; style=&quot;background:#fff; padding:20px; border-radius:8px; box-shadow:0 0 10px rgba(0,0,0,0.1); font-family:'Arial';&quot;&gt;&lt;p style=&quot;text-align:center; font-size:20px; font-weight:bold; margin-bottom:20px;&quot;&gt;从Win到鸿蒙，跨平台远程控制终极指南&lt;/p&gt;&lt;div style=&quot;text-align:center;margin:20px 0;&quot;&gt;&lt;img src=&quot;http://vpshk.cn/swq_img/52.png&quot; alt=&quot;跨平台远程控制对比图表&quot; style=&quot;max-width:800px; height:auto; border:1px solid #ddd; border-radius:8px;&quot;/&gt;&lt;/div&gt;&lt;h2&gt;引言：为何需要跨平台远程控制？&lt;/h2&gt;&lt;p&gt;无论是企业IT运维人员，还是开发测试人员，或者只是需要在不同设备间传输文件的普通用户，跨平台远程控制都是目前数字生活中必不可少的技能。&lt;/p&gt;&lt;p&gt;从Windows系统到华为鸿蒙系统，跨越不同操作系统的远程控制，不仅方便日常办公，更是分布式计算、远程协作的重要工具。本文将深入评测四种主流远程控制工具：ToDesk这款国产软件、Splashtop以速度著称的工具、TeamViewer老牌选手，以及向日葵备受国内用户欢迎的选择。&lt;/p&gt;&lt;h2&gt;操作系统间远程控制：从Windows到鸿蒙设备，你需要了解的基本知识&lt;/h2&gt;&lt;ol&gt;    &lt;li&gt;系统兼容性是基础，几乎所有的跨平台软件都支持Windows、Mac、Linux，以及iOS、Android和鸿蒙系统&lt;/li&gt;    &lt;li&gt;网络环境稳定性影响远程连接质量，建议使用稳定的互联网连接&lt;/li&gt;    &lt;li&gt;不同平台间的性能差异可能导致远程体验不一致，轻量级应用通常最适合移动设备使用&lt;/li&gt;&lt;/ol&gt;&lt;h2&gt;四大软件性能对比&lt;/h2&gt;&lt;table style=&quot;width:100%; border-collapse:collapse; margin:20px; margin-bottom:30px;&quot;&gt;    &lt;tr style=&quot;background:#3366CC; color:#fff; font-weight:bold;&quot;&gt;&lt;th style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;软件&lt;/th&gt;&lt;th style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;跨平台能力&lt;/th&gt;&lt;th style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;连接速度&lt;/th&gt;&lt;th style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;安全性&lt;/th&gt;&lt;th style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;免费版本功能&lt;/th&gt;&lt;/tr&gt;    &lt;tr style=&quot;border-bottom:1px solid #ddd;&quot;&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;ToDesk&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;优&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;良好&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;高&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;基础功能齐全&lt;/td&gt;&lt;/tr&gt;    &lt;tr style=&quot;border-bottom:1px solid #ddd;background:#f2faff;&quot;&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;Splashtop&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;极佳&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;极佳&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;高&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;包含基础功能&lt;/td&gt;&lt;/tr&gt;    &lt;tr style=&quot;border-bottom:1px solid #ddd;&quot;&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;TeamViewer&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;优秀&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;良好&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;高&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;功能受限&lt;/td&gt;&lt;/tr&gt;    &lt;tr style=&quot;border-bottom:1px solid #ddd;background:#f2faff;&quot;&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;向日葵&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;优秀&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;一般&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;高&lt;/td&gt;&lt;td style=&quot;border:1px solid #ddd; padding:8px;&quot;&gt;全功能免费&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;h2&gt;ToDesk：国产远程控制的后起之秀&lt;/h2&gt;&lt;p&gt;ToDesk专注于高效远程控制软件，其中国团队做得相当出色，在最新版中已专门适配华为鸿蒙系统。&lt;/p&gt;&lt;code&gt;\n# 鸿蒙设备连接到Windows的命令行用法:\ntodesk connect -device ID -user admin -it Linux-iOS-HarmonyOS\n\n# 在鸿蒙设备上启动ToDesk服务:\nrunning_service start\n\n# 显示设备连接状态\nstatus -d machine\n&lt;/code&gt;&lt;p&gt;ToDesk的跨平台连接特点：&lt;/p&gt;&lt;ul&gt;    &lt;li&gt;支持双向屏保唤醒功能&lt;/li&gt;    &lt;li&gt;提供端口映射功能，方便内网设备访问&lt;/li&gt;    &lt;li&gt;支持键盘快捷键自定义配置&lt;/li&gt;    &lt;li&gt;具有极低的资源占用&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Splashtop：极速体验的代名词&lt;/h2&gt;&lt;p&gt;Splashtop以超低延迟著称，特别适合预算充足的用户和专业场景。&lt;/p&gt;&lt;code&gt;\n// Windows连接到鸿蒙设备\nsplash connect -t 001ABC -q100 -fullscreen\n\n// 在鸿蒙设备上放置小精灵\nspwizard setup -type implicit\n&lt;/code&gt;&lt;p&gt;Splashtop对鸿蒙适配较完善，其独特的小精灵可以自动切换设备，但免费版最多只能同时连接5台设备。&lt;/p&gt;&lt;h2&gt;TeamViewer：老牌远程控制软件&lt;/h2&gt;&lt;p&gt;TeamViewer是较早进入中国市场的产品，界面简洁易用，iOS/Android和鸿蒙版体验相当不错。&lt;/p&gt;&lt;code&gt;\n// Windows连接到鸿蒙设备的命令\nteamv9 -remote user@hostname \n\n// 鸿蒙设备显示ID和密码\nshow-id-password\n&lt;/code&gt;&lt;p&gt;TeamViewer的跨平台性能：&lt;/p&gt;&lt;ul&gt;    &lt;li&gt;免费版可连接到任意设备，但有ID长度限制&lt;/li&gt;    &lt;li&gt;提供USB设备重定向功能&lt;/li&gt;    &lt;li&gt;支持共享指针和剪贴板&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;向日葵：国人的远程控制选择&lt;/h2&gt;&lt;p&gt;向日葵在中国市场拥有用户基础，免费版功能对比TeamViewer更加开放。&lt;/p&gt;&lt;code&gt;\n// 从Win连接到鸿蒙设备的指令\nsunloginclient connect -host IPaddress -user username -pwd password -port port\n\n// 被连接端指令\n klis login User -p &amp;amp;password-service;\n&lt;/code&gt;&lt;p&gt;向日葵的优点：&lt;/p&gt;&lt;ul&gt;    &lt;li&gt;在iOS和鸿蒙系统上有官方支持&lt;/li&gt;    &lt;li&gt;免费版限制不强，适合移动办公场景&lt;/li&gt;    &lt;li&gt;支持双向视频通话&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;对比总结：你的跨平台需求应该选择哪个？&lt;/h2&gt;&lt;ol&gt;    &lt;li&gt;如果你更注重连接速度，Splashtop和ToDesk表现更佳&lt;/li&gt;    &lt;li&gt;如果你想省钱，TeamViewer免费版和向日葵可以在很多场景替代付费软件&lt;/li&gt;    &lt;li&gt;对于安全性要求高的业务环境，选择具有HTTPS加密的向日葵或认证机制较强的TeamViewer&lt;/li&gt;    &lt;li&gt;考虑携带便利性，ToDesk的移动端功能尤其完善&lt;/li&gt;    &lt;li&gt;从Windows到鸿蒙，向日葵和ToDesk的适配体验一般更好&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;strong&gt;最后建议：&lt;/strong&gt;&lt;/p&gt;&lt;ol&gt;    &lt;li&gt;如果你主要是Windows到移动/鸿蒙的连接，推荐ToDesk或Splashtop&lt;/li&gt;    &lt;li&gt;预算有限时选择TeamViewer或向日葵，但注意其免费版本的功能限制&lt;/li&gt;    &lt;li&gt;企业级或对性能要求严格的应用场景，建议使用付费专业版&lt;/li&gt;    &lt;li&gt;安卓和鸿蒙设备间的跨平台连接，ToDesk支持更完善的双向操作&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</description><pubDate>Mon, 05 Jan 2026 22:06:29 +0800</pubDate></item><item><title>
        Linux 源配置不用慌！CentOS/Ubuntu 源更新（含恢复）+Yum 操作 + Vim 入门
    </title><link>https://vps5.cn/2026011019.html</link><description>&lt;div id=&quot;wznr&quot; style=&quot;font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 800px; margin: 0 auto; padding: 20px;&quot;&gt;    &lt;h2 style=&quot;color: #2c3e50; text-align: center; padding-bottom: 20px; border-bottom: 1px solid #3498db; margin-bottom: 30px;&quot;&gt;        Linux 源配置不用慌！CentOS/Ubuntu 源更新（含恢复）+Yum 操作 + Vim 入门    &lt;/h2&gt;    &lt;p style=&quot;margin-top: 0;&quot;&gt;作为一名Linux新手，配置软件源并保持更新是日常运维的基础技能。本教程将手把手教你CentOS和Ubuntu系统的源更新方法，Yum常用操作以及Vim编辑器的基本使用，让你轻松应对日常操作。&lt;/p&gt;        &lt;div style=&quot;text-align: center; margin: 20px 0; padding: 15px; background-color: #f8f9fa; border-radius: 5px;&quot;&gt;        &lt;img src=&quot;http://vpshk.cn/swq_img/97.png&quot; alt=&quot;Linux Source Configuration&quot; style=&quot;max-width: 100%; height: auto; border-radius: 5px;&quot;/&gt;        &lt;p style=&quot;margin-top: 10px; text-align: center; font-style: italic;&quot;&gt;配置安全的软件源是保证系统及时获取更新和新增软件的关键&lt;/p&gt;    &lt;/div&gt;    &lt;h2 style=&quot;color: #e74c3c; border-bottom: 1px solid #e74c3c; padding-bottom: 10px; margin: 30px 0;&quot;&gt;一、CentOS 源更新配置&lt;/h2&gt;    &lt;h3 style=&quot;color: #3498db;&quot;&gt;1.1 备份原有配置&lt;/h3&gt;    ```bash    # 备份原始 yum 源配置文件    sudo mv /etc/yum.repos.d/CentOS-*.repo /etc/yum.repos.d/CentOS-repos.bak    ```        &lt;h3 style=&quot;color: #3498db;&quot;&gt;1.2 添加新的 CentOS 源&lt;/h3&gt;        &lt;p&gt;CentOS 有多个官方源可以选择，这里我们使用阿里云的 CentOS 源：&lt;/p&gt;        ```bash    # 使用 wget 下载阿里云的 CentOS 源配置    sudo wget -O /etc/yum.repos.d/CentOS-7.repo http://mirrors.aliyun.com/repo/CentOS-7.repo    # 清理 yum 缓存    sudo yum clean all    sudo yum makecache    ```        &lt;h3 style=&quot;color: #3498db;&quot;&gt;1.3 源恢复方法&lt;/h3&gt;    &lt;p&gt;如果源配置错误，可以使用以下命令恢复到阿里云源：&lt;/p&gt;        ```bash    # 方法一：删除原有配置，重新下载    sudo rm -rf /etc/yum.repos.d/CentOS-*    sudo wget -O /etc/yum.repos.d/CentOS-7.repo http://mirrors.aliyun.com/repo/CentOS-7.repo    # 方法二：相比备份恢复    sudo mv /etc/yum.repos.d/CentOS-repos.bak/* /etc/yum.repos.d/    ```        &lt;p style=&quot;margin-top: 15px;&quot;&gt;恢复后再次执行：sudo yum makecache，确保yum正常工作。&lt;/p&gt;        &lt;h2 style=&quot;color: #e74c3c; border-bottom: 1px solid #e74c3c; padding-bottom: 10px; margin: 30px 0;&quot;&gt;二、Ubuntu 源更新配置&lt;/h2&gt;    ... [后续内容一直到结尾] ...&lt;/div&gt;</description><pubDate>Mon, 05 Jan 2026 22:06:16 +0800</pubDate></item><item><title>Linux 权限实战：从概念到命令，搞定文件访问控制的核心逻辑</title><link>https://vps5.cn/2026011017.html</link><description>&lt;div id=&quot;wznr&quot;&gt;    &lt;p&gt;在Linux系统中，文件权限管理是安全的基础。通过合理设置权限，可以避免未授权访问或修改，确保系统安全稳定运行。本教程从零开始，手把手教你掌握文件访问控制的核心逻辑！&lt;/p&gt;    &lt;img src=&quot;http://vpshk.cn/swq_img/117.png&quot; alt=&quot;Linux权限管理示意图&quot;/&gt;        &lt;h2&gt;一、理解Linux权限基础&lt;/h2&gt;    &lt;h3&gt;1. 权限三元素&lt;/h3&gt;    &lt;p&gt;Linux文件权限包含以下三个组成：&lt;/p&gt;        &lt;ul&gt;        &lt;li&gt;&lt;strong&gt;r（读权限）&lt;/strong&gt;：可以查看文件内容&lt;/li&gt;        &lt;li&gt;&lt;strong&gt;w（写权限）&lt;/strong&gt;：可以修改或删除文件内容&lt;/li&gt;        &lt;li&gt;&lt;strong&gt;x（执行权限）&lt;/strong&gt;：可以执行该文件作为程序&lt;/li&gt;    &lt;/ul&gt;        &lt;p&gt;每个文件的权限分为三个部分，分别对应：&lt;/p&gt;    &lt;p&gt;文件所有者（User）、文件所在组（Group）、其他用户（Others）&lt;/p&gt;        &lt;h3&gt;2. 权限计算方式&lt;/h3&gt;    &lt;p&gt;每个权限用3位二进制数表示：&lt;/p&gt;    &lt;pre style=&quot;overflow: auto; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;code&gt;r（读） = 4， w（写） = 2， x（执行） = 1&lt;/code&gt;&lt;/pre&gt;        &lt;h2&gt;二、实战命令详解&lt;/h2&gt;        &lt;h3&gt;1. 查看文件权限&lt;/h3&gt;    &lt;p&gt;命令：&lt;code style=&quot;background-color: #f5f5f5; padding: 2px; border-radius: 3px;&quot;&gt;ls -l 文件名&lt;/code&gt;&lt;/p&gt;        &lt;pre style=&quot;overflow: auto; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;code&gt;brw-rw--- 1 root root 857 5月  9 11:20 /dev/sda1&lt;/code&gt;含义解读：- 第1-3列：文件类型（b表示块设备）和所有者权限（rw-）- 第4-6列：组权限（rw-）和其他用户权限（---）- 第8-9列：文件所有者（root）、所属组（root）- 最后12列：文件类型和大小/设备标识&lt;/pre&gt;        &lt;h3&gt;2. 修改权限&lt;/h3&gt;        &lt;p style=&quot;margin-bottom: 10px;&quot;&gt;&lt;strong&gt;方法一：数字模式修改&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;将r、w、x映射为4、2、1，得出文件权限的数值表示：&lt;/p&gt;        &lt;pre style=&quot;overflow: auto; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;code&gt;r=4, w=2, x=1&lt;/code&gt;&lt;/pre&gt;        &lt;p style=&quot;margin-bottom: 10px;&quot;&gt;权限表示例如：&lt;/p&gt;        &lt;pre style=&quot;overflow: auto; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;code&gt;rwx  = 4+2+1=7rw-  = 4+2+0=6rwx  = 4+0+1=5（仅所有者有权限）&lt;/code&gt;&lt;/pre&gt;        &lt;p&gt;命令：&lt;code style=&quot;background-color: #f5f5f5; padding: 2px; border-radius: 3px;&quot;&gt;chmod [选项] [权限数值] 文件名&lt;/code&gt;&lt;/p&gt;        &lt;pre style=&quot;overflow: auto; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;code&gt;chmod 755 file.txt    # 所有者可读写，组和其他人可读&lt;/code&gt;&lt;/pre&gt;        &lt;p style=&quot;margin-bottom: 10px;&quot;&gt;&lt;strong&gt;方法二：符号模式修改&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;命令：&lt;code style=&quot;background-color: #f5f5f5; padding: 2px; border-radius: 3px;&quot;&gt;chmod [选项] [ugoa操作][操作符][权限类]&lt;/code&gt;&lt;/p&gt;        &lt;pre style=&quot;overflow: auto; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;code&gt;chmod u+w file.txt     # 给文件所有者添加写权限chmod g=r file.txt      # 将组权限设为读chmod o-x,o+w /test     # 其他用户取消执行权限并添加写权限&lt;/code&gt;&lt;/pre&gt;        &lt;h3&gt;3. 修改文件所有者&lt;/h3&gt;    &lt;p&gt;命令：&lt;code style=&quot;background-color: #f5f5f5; padding: 2px; border-radius: 3px;&quot;&gt;chown 用户名 文件名&lt;/code&gt;&lt;/p&gt;        &lt;pre style=&quot;overflow: auto; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;code&gt;chown www /var/www/html    # 将目录所有者改为www用户&lt;/code&gt;&lt;/pre&gt;        &lt;p style=&quot;margin-bottom: 10px;&quot;&gt;&lt;strong&gt;递归修改&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;命令：&lt;code style=&quot;background-color: #f5f5f5; padding: 2px; border-radius: 3px;&quot;&gt;chmod -R 755 目录名&lt;/code&gt;&lt;/p&gt;    &lt;p&gt;作用：递归修改目录内所有文件和子目录的权限&lt;/p&gt;        &lt;h3&gt;4. 查看文件所有者&lt;/h3&gt;    &lt;p&gt;命令：&lt;code style=&quot;background-color: #f5f5f5; padding: 2px; border-radius: 3px;&quot;&gt;ls -l&lt;/code&gt;&lt;/p&gt;        &lt;h2&gt;三、权限实战练习&lt;/h2&gt;        &lt;p&gt;1. 创建测试文件和目录：&lt;/p&gt;        &lt;pre style=&quot;overflow: auto; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;code&gt;sudo touch /tmp/file_01mkdir /tmp/testdir&lt;/code&gt;&lt;/pre&gt;        &lt;p&gt;2. 初始权限状态：&lt;/p&gt;        &lt;pre style=&quot;overflow: auto; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;code&gt;ls -l /tmp/file_01-rw-r--r-- 1 root root 0 5月  9 12:15 /tmp/file_01&lt;/code&gt;&lt;/pre&gt;        &lt;p&gt;3. 修改权限实验：&lt;/p&gt;        &lt;pre style=&quot;overflow: auto; background-color: #f5f5f5; padding: 10px; border: 1px solid #ddd;&quot;&gt;&lt;code&gt;# 给所有者添加执行权限chmod u+x /tmp/file_01# 删除其他人读权限chmod o-r /tmp/file_01# 移除所有权限chmod a= /tmp/file_01&lt;/code&gt;&lt;/pre&gt;        &lt;h2&gt;四、最佳实践建议&lt;/h2&gt;        &lt;ul&gt;        &lt;li&gt;特权文件建议采用700或750权限（所有者可读写，组和其他人禁止访问）&lt;/li&gt;        &lt;li&gt;程序可执行文件通常使用755（所有者可执行，组和其他人可读）&lt;/li&gt;        &lt;li&gt;Web目录建议所有者设为www用户，权限使用755&lt;/li&gt;        &lt;li&gt;避免使用777全局开放权限&lt;/li&gt;    &lt;/ul&gt;        &lt;p style=&quot;text-align: center; font-weight: bold;&quot;&gt;写在最后：在Linux系统中，理解权限逻辑并熟练使用相关命令是管理员必备技能。建议通过反复练习操作加深印象，注意安全权限配置避免误操作！&lt;/p&gt;&lt;/div&gt;</description><pubDate>Mon, 05 Jan 2026 22:01:33 +0800</pubDate></item><item><title>
在Windows上安装WSL2并运行Ubuntu 22.04 [初学者指南]
轻松学习使用Linux子系统，打造强大的开发环境（含图文详细教程）
</title><link>https://vps5.cn/2026011016.html</link><description>&lt;div id=&quot;wznr&quot; style=&quot;font-family: Arial, sans-serif; line-height: 1.6; max-width: 800px; margin: 0 auto; padding: 20px; color: #333;&quot;&gt;&lt;h2 style=&quot;text-align: center; font-size: 28px; font-weight: bold; border-bottom: 2px solid #3498db; padding-bottom: 10px; margin-bottom: 30px;&quot;&gt;在Windows上安装WSL2并运行Ubuntu 22.04 [初学者指南]轻松学习使用Linux子系统，打造强大的开发环境（含图文详细教程）&lt;/h2&gt;&lt;p style=&quot;margin-bottom: 20px; font-size: 16px;&quot;&gt;WSL2（Windows Subsystem for Linux 2）是微软提供的在Windows上运行Linux环境的解决方案，让开发者无需虚拟机即可体验接近原生的Linux环境。这篇详细教程将指导你如何在Windows 10/11上安装WSL2并运行最新版本的Ubuntu 22.04系统。&lt;/p&gt;&lt;img src=&quot;http://vpshk.cn/swq_img/95.png&quot; alt=&quot;Windows WSL2 Ubuntu 配置界面&quot; style=&quot;width: 100%; max-width: 600px; height: auto; border: 1px solid #ddd; border-radius: 5px; margin: 20px 0;&quot;/&gt;&lt;h3 style=&quot;font-size: 20px; color: #2980b9; margin-top: 30px;&quot;&gt;&lt;ins&gt;第一步：检查Windows版本与激活开发人员模式&lt;/ins&gt;&lt;/h3&gt;&lt;p style=&quot;font-size: 15px; background-color: #f8f9fa; padding: 15px; border-radius: 5px; border-left: 3px solid #3498db; margin-bottom: 15px;&quot;&gt;确保你使用的是Windows 10 2004版本或更高版本，或者Windows 11。&lt;/p&gt;&lt;ol style=&quot;counter-reset: mylist; padding-left: 20px; margin-top: 10px;&quot;&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;&lt;code style=&quot;background-color: #f8f9fa; padding: 3px 6px; border-radius: 3px; border: 1px solid #ddd; display: inline-block;&quot;&gt;控制面板 → 系统和安全 → 系统 → 系统信息&lt;/code&gt;查看版本号&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;搜索&quot;Developer&quot;并打开&quot;开发者选项&quot;&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;在&quot;开发者选项&quot;中，勾选&quot;&lt;strong style=&quot;color: #e74c3c;&quot;&gt;开发人员模式&lt;/strong&gt;&quot;&lt;/li&gt;&lt;/ol&gt;&lt;h3 style=&quot;font-size: 20px; color: #2980b9; margin-top: 30px;&quot;&gt;&lt;ins&gt;第二步：启用WSL功能和虚拟机平台&lt;/ins&gt;&lt;/h3&gt;&lt;p style=&quot;font-size: 15px; background-color: #f8f9fa; padding: 15px; border-radius: 5px; border-left: 3px solid #3498db; margin-bottom: 15px;&quot;&gt;这项操作需要管理员权限的PowerShell完成，Windows 11用户授权会更多。&lt;/p&gt;&lt;pre style=&quot;background-color: #2c3e50; color: #ecf0f1; padding: 15px; border-radius: 5px; font-family: Consolas, monospace; white-space: pre-wrap; font-size: 14px; margin-bottom: 15px;&quot;&gt;# 打开管理员权限的PowerShell# 启用WSL和虚拟机平台功能Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-LinuxEnable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform# 重启计算机（如果提示需要重启）&lt;p style=&quot;font-style: italic; margin-top: 5px; color: #7f8c8d; font-size: 13px;&quot;&gt;按Win+X然后选择&quot;WSL&quot;命令重启可以在不完全关机的情况下重置WSL&lt;/p&gt;&lt;/pre&gt;&lt;h3 style=&quot;font-size: 20px; color: #2980b9; margin-top: 30px;&quot;&gt;&lt;ins&gt;第三步：设置默认版本为WSL2&lt;/ins&gt;&lt;/h3&gt;&lt;p style=&quot;font-size: 15px; background-color: #f8f9fa; padding: 15px; border-radius: 5px; border-left: 3px solid;#3498db; margin-bottom: 15px;&quot;&gt;这是WSL2安装的关键步骤，必须在W11上执行navigator命令&lt;/p&gt;&lt;pre style=&quot;background-color: #2c3e50; color: #ecf0f1; padding: 15px; border-radius: 5px; font-family: Consolas, monospace; white-space: pre-wrap; font-size: 14px; margin-bottom: 15px;&quot;&gt;# 按Win+X, 选择&quot;Windows PowerShell管理员&quot;wsl --set-default-version 2# 如果遇到错误，请先更新Windows 10到19041版本或更高，或在Windows 11上执行更新&lt;p style=&quot;font-style: italic; margin-top: 5px; color: #7f8c8d; font-size: 13px;&quot;&gt;注意：WSL2要求Hyper-V，关闭Hyper-V需要重装系统，请谨慎操作&lt;/p&gt;&lt;/pre&gt;&lt;h3 style=&quot;font-size: 20px; color: #2980b9; margin-top: 30px;&quot;&gt;&lt;ins&gt;第四步：安装Ubuntu 22.04 LTS&lt;/ins&gt;&lt;/h3&gt;&lt;p style=&quot;font-size: 15px; background-color: #f8f9fa; padding: 15px; border-radius: 5px; border-left: 3px solid;#3498db; margin-bottom: 15px;&quot;&gt;进入Microsoft Store，搜索&quot;Ubuntu&quot;并选择Canonical Group Limited的Ubuntu 22.04版本&lt;/p&gt;&lt;ol style=&quot;counter-reset: mylist; padding-left: 20px; margin-top: 10px;&quot;&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;打开Microsoft Store，在搜索框中输入&quot;&lt;strong style=&quot;color: #e74c3c;&quot;&gt;Ubuntu 22.04&lt;/strong&gt;&quot;&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;选择由Canonical Group Limited提供的Ubuntu 22.04 LTS版本&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;点击&quot;获取&quot;按钮，下载完成后点击&quot;安装&quot;按钮&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;安装完成后，在开始菜单搜索&quot;Ubuntu22.04&quot;并打开&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;根据提示设置用户账户和密码（用于WSL实例登录）&lt;/li&gt;&lt;/ol&gt;&lt;h3 style=&quot;font-size: 20px; color: #2980b9; margin-top: 30px;&quot;&gt;&lt;ins&gt;第五步：WSL2启动与基本配置&lt;/ins&gt;&lt;/h3&gt;&lt;p style=&quot;font-size: 15px; background-color: #f8f9fa; padding: 15px; border-radius: 5px; border-left: 3px solid;#3498db; margin-bottom: 15px;&quot;&gt;经过前面的设置，Ubuntu 22.04现在已经可以正常运行了&lt;/p&gt;&lt;ol style=&quot;counter-reset: mylist; padding-left: 20px; margin-top: 10px;&quot;&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;打开Ubuntu并按照提示完成初始化过程&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;&lt;code style=&quot;background-color: #f8f9fa; padding: 3px 6px; border-radius: 3px; border: 1px solid #ddd; display: inline-block; font-size: 13px;&quot;&gt;systemctl status systemd-resolved&lt;/code&gt;检查网络服务&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;&lt;code style=&quot;background-color: #f8f9fa; padding: 3px 6px; border-radius: 3px; border: 1px solid #ddd; display: inline-block; font-size: 13px;&quot;&gt;echo $USER&lt;/code&gt;查看你的用户名&lt;/li&gt;&lt;/ol&gt;&lt;h3 style=&quot;font-size: 20px; color: #2980b9; margin-top: 30px;&quot;&gt;&lt;ins&gt;第六步：配置WSL2集成到Windows&lt;/ins&gt;&lt;/h3&gt;&lt;p style=&quot;font-size: 15px; background-color: #f8f9fa; padding: 15px; border-radius: 5px; border-left: 3px solid;#3498db; margin-bottom: 15px;&quot;&gt;将WSL2与Windows文件系统、SSH、GUI应用等集成，获得更好的开发体验&lt;/p&gt;&lt;ol style=&quot;counter-reset: mylist; padding-left: 20px; margin-top: 10px;&quot;&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;全新安装Ubuntu的用户将自动被询问是否修改WSL2的默认驱动盘符&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;在&lt;span style=&quot;background-color: #ecf0f1; padding: 2px 5px; border-radius: 3px; border: 1px solid #ddd;&quot;&gt;设置 → 搜索Terminal&lt;/span&gt;并打开&quot;终端应用设置&quot;&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;确保&quot;&lt;strong style=&quot;color: #e74c3c;&quot;&gt;打开终端选项&lt;/strong&gt;&quot;中包含了WSL2集成&lt;/li&gt;&lt;/ol&gt;&lt;h3 style=&quot;font-size: 20px; color: #2980b9; margin-top: 30px;&quot;&gt;&lt;ins&gt;常见问题解决&lt;/ins&gt;&lt;/h3&gt;&lt;p style=&quot;font-size: 15px; background-color: #f8f9fa; padding: 15px; border-radius: 5px; border-left: 3px solid; #3498db; margin-bottom: 15px;&quot;&gt;WSL2安装过程中可能遇到的问题及解决方案：&lt;/p&gt;&lt;ol style=&quot;counter-reset: mylist; padding-left: 20px; margin-top: 10px;&quot;&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;&lt;strong style=&quot;color: #e74c3c;&quot;&gt;问题：&lt;/strong&gt;WSL2崩溃或频繁重启&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;&lt;strong style=&quot;color: #e74c3c;&quot;&gt;解决：&lt;/strong&gt;完全清理并重新安装WSL2：&lt;code style=&quot;background-color: #f8f9fa; padding: 3px 6px; border-radius: 3px; border: 1px solid #ddd; display: inline-block;&quot;&gt;wsl --unregister Ubuntu&lt;/code&gt;，然后重试安装&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;&lt;strong style=&quot;color: #e74c3c;&quot;&gt;问题：&lt;/strong&gt;SSH连接到WSL2失败&lt;/li&gt;    &lt;li style=&quot;margin-bottom: 10px;&quot;&gt;&lt;strong style=&quot;color: #e74c3c;&quot;&gt;解决：&lt;/strong&gt;确保WSL2的Hyper-V版本是最新的，或在Windows更新后重启计算机&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;font-size: 15px; text-align: center; margin-top: 35px; font-weight: bold; color: #2c3e50; border-top: 1px dashed #ccc; padding-top: 20px;&quot;&gt;现在你已经成功在Windows上安装了WSL2并运行Ubuntu 22.04，可以开始使用Linux环境开发项目了！&lt;/p&gt;&lt;/div&gt;</description><pubDate>Mon, 05 Jan 2026 22:00:36 +0800</pubDate></item><item><title>CentOS虚拟机磁盘扩容完整教程（Growpart报错修复 &amp; LVM扩容详解）</title><link>https://vps5.cn/2026011015.html</link><description>&lt;div id=&quot;wznr&quot;&gt;&lt;p&gt;在实际生产环境中，虚拟机扩容是运维工作中的常见需求。本文将详细介绍如何在CentOS系统中，通过VMware虚拟机磁盘扩容操作，并解决growpart命令报错问题，完成从物理卷到文件系统的完整扩容流程。&lt;/p&gt;&lt;p&gt;本教程涵盖以下几个关键步骤：&lt;/p&gt;&lt;ol&gt;    &lt;li&gt;VMware虚拟机磁盘扩容准备&lt;/li&gt;    &lt;li&gt;使用growpart解决扩容报错&lt;/li&gt;    &lt;li&gt;LVM逻辑卷扩容详解&lt;/li&gt;    &lt;li&gt;文件系统扩容操作&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;background:#f5f5f5; padding:15px; border-left:4px solid #3498db;&quot;&gt;&lt;h3 style=&quot;margin-top:0;&quot;&gt;关键术语说明&lt;/h3&gt;&lt;ul&gt;    &lt;li&gt;&lt;strong&gt;growpart&lt;/strong&gt;：用于扩展分区的工具&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;LVM&lt;/strong&gt;：逻辑卷管理器，一种磁盘管理方式&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;PE&lt;/strong&gt;：可启动分区的缩写，包含引导信息&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;第一步：登录到你的CentOS虚拟机，并检查当前磁盘使用情况：&lt;/p&gt;```bash# 查看磁盘使用情况df -h            # 查看文件系统使用情况lsblk            # 查看分区和挂载情况pvs, vgs, lvps  # 查看LVM信息（如果使用LVM)```&lt;p&gt;第二步：如果需要对某个磁盘进行扩容，通常需要：&lt;/p&gt;&lt;ol&gt;    &lt;li&gt;在VMware中调整虚拟机的硬盘大小（见下图）：&lt;/li&gt;    &lt;li&gt;然后在Linux中扩展分区和逻辑卷&lt;/li&gt;&lt;/ol&gt;&lt;img src=&quot;http://vpshk.cn/swq_img/102.png&quot; alt=&quot;VMware 虚拟机调整磁盘大小界面展示&quot;/&gt;&lt;p&gt;第三步：尝试使用growpart命令扩展分区，可能会遇到报错：&lt;/p&gt;```bash# 基本用法sudo growpart /dev/sda 1  # /dev/sda1是扩展分区# 常见报错及解决：Error: Failed to resize part 1 on disk /dev/sda:         No partition to resize. Partition may be in use.# 注意事项：1. 确保分区未被使用（如未挂载）2. 如果使用LVM，请跳过此步骤，使用pvresize等命令3. growpart不能处理已满的分区4. 对于LVM，需使用pvresize、vgextend、lvextend等命令```&lt;p&gt;第四步：解决growpart报错（非LVM环境或普通分区）：&lt;/p&gt;&lt;ol&gt;    &lt;li&gt;先卸载分区（如果尚未挂载）：&lt;/li&gt;    ```bash    sudo umount /dev/sdax    ```    &lt;li&gt;再次尝试growpart命令&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;第五步：如果系统使用LVM逻辑卷，进行LVM扩容：&lt;/p&gt;&lt;ol&gt;    &lt;li&gt;检查物理卷：&lt;/li&gt;    ```bash    sudo pvdisplay    ```    &lt;li&gt;如果物理卷未检测到新空间，需要运行：&lt;/li&gt;    ```bash    sudo pvresize /dev/sdax  # 假设sdax是新增的物理卷    ```    &lt;li&gt;扩展卷组：&lt;/li&gt;    ```bash    sudo vgextend vg_name  # vg_name卷组名称    ```    &lt;li&gt;扩展逻辑卷：&lt;/li&gt;    ```bash    sudo lvextend -l +100%FREE /dev/mapper/vg_name-lv_name    ```    &lt;li&gt;最后扩展文件系统：&lt;/li&gt;    ```bash    sudo resize2fs /dev/mapper/vg_name-lv_name    ```&lt;/ol&gt;&lt;p&gt;第六步：验证扩容是否成功：&lt;/p&gt;```bash# 查看文件系统ndf -h           # 应能看到扩容后的文件系统大小lsblk           # 应能看到分区大小已扩展```&lt;p&gt;第七步：如果在扩容过程中遇到系统无法启动的情况：&lt;/p&gt;&lt;ol&gt;    &lt;li&gt;使用VMware的&quot;安全模式&quot;启动虚拟机&lt;/li&gt;    &lt;li&gt;尝试重启进入单用户模式&lt;/li&gt;    &lt;li&gt;使用growpart或LVM命令逐步修复&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;background:#fdebd0; padding:15px; border-left:4px solid #f0ad4e;&quot;&gt;&lt;h3 style=&quot;margin-top:0; color:#d85757;&quot;&gt;常见问题解答&lt;/h3&gt;&lt;ol&gt;    &lt;li&gt;&lt;strong&gt;growpart报错&quot;Partition may be in use&quot;&lt;/strong&gt;：意味着分区正在被使用，确实无法调整。这种情况需要先卸载分区或使用LVM方案。&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;文件系统不识别新空间&lt;/strong&gt;：可能是文件系统未重新整理，使用&lt;code&gt;resize2fs&lt;/code&gt;后应能自动解决。&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;数据丢失风险&lt;/strong&gt;：文件系统resize可能会丢失数据，请务必提前备份重要数据。&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p&gt;总结：磁盘扩容是虚拟机管理员的重要任务。本文提供的教程涵盖了常见故障处理和磁盘扩容实战，希望对你有所帮助。&lt;/p&gt;&lt;/div&gt;</description><pubDate>Mon, 05 Jan 2026 22:00:16 +0800</pubDate></item><item><title>HTML基础教程（轻松入门学习网页开发）欢迎学习HTML!</title><link>https://vps5.cn/2026011014.html</link><description>&lt;div id=&quot;wznr&quot; style=&quot;font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; line-height: 1.6; color: #333;&quot;&gt;  &lt;h2 style=&quot;color: #2c3e50; text-align: center; border-bottom: 2px solid #3498db; padding-bottom: 10px;&quot;&gt;HTML基础教程（轻松入门学习网页开发）&lt;/h2&gt;    &lt;p style=&quot;margin-bottom: 15px;&quot;&gt;欢迎学习HTML基础！HTML是网页开发的核心语言，通过它你可以创建网站的基本结构。今天，我们将围绕&quot;HTML基础、学习HTML、网页开发、HTML标签&quot;这四个关键词，详细讲解，确保即使你是小白也能完全理解。别担心，我们从零开始，一步步来！&lt;/p&gt;    &lt;h2 style=&quot;color: #e74c3c; margin-top: 20px; margin-bottom: 10px;&quot;&gt;什么是HTML？&lt;/h2&gt;  &lt;p style=&quot;margin-bottom: 15px;&quot;&gt;HTML（HyperText Markup Language）是一种标记语言，用于创建网页的结构。它不是编程语言，而是通过标签定义内容，如文本、图片、链接等。HTML是网页开发的基础，是学习CSS和JavaScript的前提。&lt;/p&gt;    &lt;h2 style=&quot;color: #e74c3c; margin-top: 20px; margin-bottom: 10px;&quot;&gt;HTML基本结构&lt;/h2&gt;  &lt;p style=&quot;margin-bottom: 15px;&quot;&gt;一个标准的HTML文档包括四个主要部分：DOCTYPE声明、html元素、head元素和body元素。DOCTYPE声明定义文档类型，html元素是根元素，head元素包含元数据如标题，body元素包含可见内容。&lt;/p&gt;    &lt;p style=&quot;margin-bottom: 15px;&quot;&gt;以下是一个简单的HTML示例代码：&lt;/p&gt;  &lt;pre style=&quot;background-color: #f4f4f4; padding: 15px; border-radius: 8px; margin-top: 10px; overflow: auto;&quot;&gt;&lt;code style=&quot;font-family: Consolas; font-size: 14px; color: #d73a49; white-space: pre-wrap;&quot;&gt;    &lt;meta charset=&quot;UTF-8&quot;/&gt;    &lt;title&gt;我的第一个HTML页面&lt;/title&gt;    &lt;h2 style=&quot;color: #2980b9;&quot;&gt;欢迎学习HTML!&lt;/h2&gt;    &lt;p&gt;这是HTML文档的基本结构。&lt;/p&gt;    &lt;p style=&quot;background-color: #ffeb3b; padding: 5px;&quot;&gt;HTML标签用于定义内容，例如&amp;lt;h2&amp;gt;表示一级标题。&lt;/p&gt;        &lt;!-- 示例图片，用于图示HTML元素 --&gt;    &lt;img src=&quot;http://vpshk.cn/swq_img/70.png&quot; alt=&quot;HTML元素图示：展示基本html、head、body结构&quot;/&gt;    &lt;p style=&quot;margin-top: 15px;&quot;&gt;运行此代码，你将看到一段文本和标题。&lt;/p&gt;&lt;/code&gt;&lt;/pre&gt;    &lt;h2 style=&quot;color: #e74c3c; margin-top: 20px; margin-bottom: 10px;&quot;&gt;常用HTML标签&lt;/h2&gt;  &lt;p style=&quot;margin-bottom: 15px;&quot;&gt;HTML标签成对出现，包括开始标签和结束标签。以下是必须掌握的基础标签：&lt;/p&gt;    &lt;h3 style=&quot;color: #16a085; margin-top: 15px;&quot;&gt;1. 文本标签&lt;/h3&gt;  &lt;ul style=&quot;margin-left: 20px; margin-bottom: 15px;&quot;&gt;&lt;li&gt;&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;&amp;lt;h2&amp;gt;到&amp;lt;h6&amp;gt;&lt;/code&gt;：定义标题，从大到小。&lt;/li&gt;  &lt;li&gt;&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;&amp;lt;p&amp;gt;&lt;/code&gt;：定义段落。&lt;/li&gt;  &lt;li&gt;&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;&amp;lt;b&amp;gt;&lt;/code&gt;和&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;&amp;lt;i&amp;gt;&lt;/code&gt;：粗体和斜体文本。&lt;/li&gt;  &lt;/ul&gt;    &lt;h3 style=&quot;color: #16a085; margin-top: 15px;&quot;&gt;2. 排列标签&lt;/h3&gt;  &lt;ul style=&quot;margin-left: 20px; margin-bottom: 15px;&quot;&gt;&lt;li&gt;&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;&amp;lt;br&amp;gt;&lt;/code&gt;：插入换行。&lt;/li&gt;  &lt;li&gt;&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;&amp;lt;hr&amp;gt;&lt;/code&gt;：水平分隔线。&lt;/li&gt;  &lt;li&gt;&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;&amp;lt;div&amp;gt;和&amp;lt;span&amp;gt;&lt;/code&gt;：用于布局和样式化（后文会学习更多）。&lt;/li&gt;  &lt;/ul&gt;    &lt;h3 style=&quot;color: #16a085; margin-top: 15px;&quot;&gt;3. 链接和图片标签&lt;/h3&gt;  &lt;p style=&quot;margin-bottom: 15px;&quot;&gt;HTML是构建交互网站的基础，常用标签如下：&lt;/p&gt;  &lt;ul style=&quot;margin-left: 20px; margin-bottom: 15px;&quot;&gt;&lt;li&gt;&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;&amp;lt;a&amp;gt;&lt;/code&gt;：创建超链接，例如&lt;a href=&quot;https://www.example.com&quot; style=&quot;color: blue; text-decoration: none;&quot;&gt;访问外部网站&lt;/a&gt;。&lt;/li&gt;  &lt;li&gt;&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;&amp;lt;img&amp;gt;&lt;/code&gt;：插入图片，如上示例，它使用&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;src&lt;/code&gt;属性指定图片路径，以及&lt;code style=&quot;color: #d35400; font-weight: normal;&quot;&gt;alt&lt;/code&gt;属性提供替代文本（在图片无法显示时重要）。&lt;/li&gt;  &lt;/ul&gt;    &lt;p style=&quot;margin-bottom: 15px;&quot;&gt;学习HTML时，注意标签的闭合和嵌套。例如，如果将&amp;lt;h2&amp;gt;放在&amp;lt;p&amp;gt;内，可能不符合语义结构。&lt;/p&gt;    &lt;h2 style=&quot;color: #e74c3c; margin-top: 20px; margin-bottom: 10px;&quot;&gt;提示和建议&lt;/h2&gt;  &lt;p style=&quot;margin-bottom: 15px;&quot;&gt;刚开始学习HTML时，别急于做复杂项目。建议：&lt;/p&gt;  &lt;ul style=&quot;margin-left: 20px; margin-bottom: 15px;&quot;&gt;&lt;li&gt;使用文本编辑器如记事本或VS Code创建简单的HTML文件。&lt;/li&gt;  &lt;li&gt;在浏览器中查看元素结构（右键点击&amp;gt;检查），能帮助理解标签用途。&lt;/li&gt;  &lt;li&gt;HTML是非常基础且灵活的语言，完成后可以进阶学习CSS来美化页面。&lt;/li&gt;  &lt;/ul&gt;    &lt;p style=&quot;margin-top: 20px;&quot;&gt;到此，你就掌握了HTML基础的核心概念。记住，HTML是网页开发的基石，是学习HTML和网页开发的起点。&lt;/p&gt;&lt;/div&gt;</description><pubDate>Mon, 05 Jan 2026 21:58:33 +0800</pubDate></item><item><title>低成本畅玩游戏新时代从UU远程云电脑说起，低配也能变身游戏高手</title><link>https://vps5.cn/2026011013.html</link><description>&lt;div id=&quot;wznr&quot;&gt;  &lt;h2 style=&quot;color:#1a5dab;&quot;&gt;低成本畅玩游戏新时代&lt;br/&gt;&lt;span style=&quot;font-size:1.2em;&quot;&gt;从UU远程云电脑说起，低配也能变身游戏高手&lt;/span&gt;&lt;/h2&gt;  &lt;img src=&quot;http://vpshk.cn/swq_img/69.png&quot; alt=&quot;远程云电脑设备展示图&quot; style=&quot;max-width:100%; margin:20px 0;&quot;/&gt;  &lt;p&gt;现如今，许多人都梦想拥有顶级游戏装备才能畅玩各类3A大作。但市面上的游戏笔记本价格动辄上万，普通台式机配置也难以满足运行需求，Mac电脑的限制更是让不少玩家望而却步。我们常常在想：如何在不买游戏本的情况下，让自己的低配设备也能流畅运行那些几十G的3A大作？今天，UU远程云电脑给到了完美的解决方案！&lt;/p&gt;  &lt;h2 style=&quot;margin-top:30px; color:#0a5bb4;&quot;&gt;什么是远程云电脑？&lt;/h2&gt;  &lt;p&gt;远程云电脑是将游戏运行的硬件资源集中在云端数据中心服务器上，用户通过低配置终端访问云端桌面，在普通设备上就能实现3A游戏运行。&lt;/p&gt;  &lt;h2 style=&quot;margin-top:30px; color:#0a5bb4;&quot;&gt;让UU远程云电脑为你解决烦恼&lt;/h2&gt;  &lt;p&gt;UU远程云电脑的出现，让游戏资源和设备之间不再有必然的强关联。不管你是不是游戏本，是低配电脑，甚至是Mac电脑或者手机，通过UU远程云电脑服务，你都能够：&lt;/p&gt;  &lt;ul&gt;    &lt;li&gt;&lt;strong&gt;不买游戏本&lt;/strong&gt; - 节省大量花费&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;低配电脑&lt;/strong&gt;也能流畅运行游戏&lt;/li&gt;    &lt;li&gt;      &lt;strong&gt;M_0AC也能完美运行Steam游戏库&lt;/strong&gt;    &lt;/li&gt;    &lt;li&gt;      &lt;strong&gt;手机也能实现大屏游戏体验&lt;/strong&gt;    &lt;/li&gt;  &lt;/ul&gt;  &lt;div style=&quot;background:#f7f9fc; padding:15px; border-radius:5px; margin:20px; font-family:Consolas, monospace;&quot;&gt;    &lt;pre style=&quot;display:block; margin:16px 0; word-break:normal; white-space:pre-wrap; background-color:#f7f9fc; padding:10px; border-radius:5px;&quot;&gt;      &lt;code&gt;# 示例云电脑配置&lt;br/&gt;地区: 中国香港&lt;br/&gt;配置: 标准&lt;/code&gt;    &lt;/pre&gt;  &lt;/div&gt;  &lt;p&gt;看到了吗？配置其实很简单，任何人都可以自助选择适合自己的计划。&lt;/p&gt;  &lt;h2 style=&quot;margin-top:30px; color:#0a5bb4;&quot;&gt;实测过程&lt;/h2&gt;  &lt;p&gt;为了让大家更直观地了解，我们以《赛博朋克2077》为例，分享自己的UU远程云电脑体验过程：&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;1. 注册账号并选择计划&lt;/strong&gt;&lt;br/&gt;进入UU远程云电脑官网，用户可以按每日天数来选择套餐，很灵活。基础套餐价格亲民，适合偶玩游戏的用户。低配设备也能轻松进入。&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;2. 游戏体验感受&lt;/strong&gt;&lt;br/&gt;打开远程桌面，配合游戏手柄（支持Pad或电脑操作），我已经成功运行了《艾尔登法环》和《使命召唤》。&lt;/p&gt;  &lt;div style=&quot;background:#f6f8ff; padding:15px; border-radius:5px; margin:20px; font-family:Consolas, monospace;&quot;&gt;    &lt;pre style=&quot;display:block; margin:16px 0; word-break:normal; white-space:pre-wrap; background-color:#f6f8ff; padding:10px; border-radius:5px;&quot;&gt;      &lt;code&gt;游戏体验对比：      本地端                        云端&lt;br/&gt;加载画面：    等待时间3-5分钟                 非常流畅&lt;br/&gt;操作响应：    延迟200-350ms警惕区间        优化后延迟75ms以下&lt;br/&gt;帧数表现：    不超过25帧不足流畅            平均50帧以上（1080P）&lt;/code&gt;    &lt;/pre&gt;  &lt;/div&gt;  &lt;p&gt;&lt;strong&gt;3. 关键测试：三种设备体验&lt;/strong&gt;&lt;br/&gt;我们在MacBook Air上、Win XP电脑上、王者荣耀5G手机上分别进行了体验，系统都很稳定流畅，几乎没感受到延迟问题。&lt;/p&gt;  &lt;h2 style=&quot;margin-top:30px; color:#0a5bb4;&quot;&gt;使用步骤详解&lt;/h2&gt;  &lt;p&gt;只要你有Google Chrome、Edge等浏览器即可：&lt;/p&gt;  &lt;ol&gt;    &lt;li&gt;访问UU远程云电脑官网（官网自动跳转）&lt;/li&gt;    &lt;li&gt;创建免费账户（通常有3小时免费体验）&lt;/li&gt;    &lt;li&gt;选择合适你的计费套餐（按天计费）&lt;/li&gt;    &lt;li&gt;下载UU服务APP或使用网页版登录&lt;/li&gt;    &lt;li&gt;选择合适配置（标准即可）&lt;/li&gt;    &lt;li&gt;完成登录，就可以畅玩游戏了！&lt;/li&gt;  &lt;/ol&gt;  &lt;p&gt;注意：网络是关键！建议选择网络较好的时间段操作。部分地区可能会有卡顿情况。&lt;/p&gt;  &lt;h2 style=&quot;margin-top:30px; color:#0a5bb4;&quot;&gt;适用人群&lt;/h2&gt;  &lt;p&gt;以下人群都适合使用远程云电脑：&lt;/p&gt;  &lt;ul&gt;    &lt;li&gt;不想买游戏本的学生党&lt;/li&gt;    &lt;li&gt;设备老旧仍然想玩游戏的上班族&lt;/li&gt;    &lt;li&gt;担心商店预载占用空间的Mac用户&lt;/li&gt;    &lt;li&gt;手机性能不足但想体验大作的朋友&lt;/li&gt;  &lt;/ul&gt;  &lt;p&gt;很多时候，我们选错的是方式，而不是设备。云电脑技术已经在革新游戏行业的边界线，它将让我们远离虚假的硬件崇拜。&lt;/p&gt;  &lt;h2 style=&quot;margin-top:30px; color:#0a5bb4;&quot;&gt;下一步行动&lt;/h2&gt;  &lt;p&gt;如果你想了解更多，不妨直接访问UU远程云电脑官网，开通1小时免费试用。不过根据官方的介绍，未来可能有小程序版本适合手机用户一试。&lt;/p&gt;  &lt;p style=&quot;text-align:center; margin-top:30px; font-style:italic; color:#5a5a5a;&quot;&gt;验证：云电脑配合5G网络，甚至可以实现手机玩4K游戏、VR游戏，是不是不可思议！&lt;/p&gt;&lt;/div&gt;</description><pubDate>Mon, 05 Jan 2026 21:58:10 +0800</pubDate></item><item><title></title><link>https://vps5.cn/2026011012.html</link><description>&lt;div id=&quot;wznr&quot; style=&quot;background: #f9f9f9; padding: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);&quot;&gt;  &lt;h2&gt;一、为什么需要无人机仿真环境&lt;/h2&gt;  &lt;p&gt;无人机仿真环境能帮助开发人员：&lt;/p&gt;  &lt;ul&gt;    &lt;li&gt;安全测试飞控算法&lt;/li&gt;    &lt;li&gt;不依赖真实硬件进行开发&lt;/li&gt;    &lt;li&gt;可视化验证控制逻辑&lt;/li&gt;    &lt;li&gt;集成开发环境中的迭代测试&lt;/li&gt;  &lt;/ul&gt;  &lt;h2 style=&quot;margin-top: 25px;&quot;&gt;二、核心环境介绍&lt;/h2&gt;  &lt;p&gt;此教程将指导您搭建基于以下组件的PX4仿真环境：&lt;/p&gt;  &lt;ul&gt;    &lt;li&gt;&lt;strong&gt;Ubuntu 22.04&lt;/strong&gt;：基础操作系统&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;ROS2 Humble&lt;/strong&gt;：机器人操作系统&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Micro XRCE-DDS Agent&lt;/strong&gt;：轻量级代理&lt;/li&gt;  &lt;/ul&gt;  &lt;h2 style=&quot;margin-top: 25px;&quot;&gt;三、安装步骤详解&lt;/h2&gt;  &lt;h3&gt;1. 安装Ubuntu 22.04&lt;/h3&gt;  &lt;pre style=&quot;background: #2d2d2d; color: #f8f8f2; padding: 15px; border-radius: 5px;&quot;&gt;更新系统sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y安装基础工具sudo apt install -y git build-essential clang cmake python3-pip安装ROS2 Humblesudo apt install -y ros-humble-desktopsource /opt/ros/humble/setup.bash&lt;/pre&gt;  &lt;h3&gt;2. 安装PX4&lt;/h3&gt;  &lt;p style=&quot;text-align: center;&quot;&gt;    &lt;img src=&quot;http://vpshk.cn/swq_img/19.png&quot; alt=&quot;PX4架构图&quot; style=&quot;max-width: 100%; margin: 15px 0;&quot;/&gt;  &lt;/p&gt;  &lt;p&gt;从GitHub克隆PX4代码库：&lt;/p&gt;  &lt;pre style=&quot;background: #2d2d2d; color: #f8f8f2; padding: 15px; border-radius: 5px;&quot;&gt;git clone https://github.com/PX4/PX4-Avian-Trunk.gitcd PX4-Avian-Trunkgit checkout main./Tools/setup/ubuntu.sh&lt;/pre&gt;  &lt;h3&gt;3. 安装Micro XRCE-DDS Agent&lt;/h3&gt;  &lt;p&gt;创建新目录并构建代理：&lt;/p&gt;  &lt;pre style=&quot;background: #2d2d2d; color: #f8f8f2; padding: 15px; border-radius: 5px;&quot;&gt;mkdir -p ~/micro-xrce-dds-agent/installcd ~/micro-xrce-dds-agent/cat ./agent_ws/src/micro-xrce-dds-agent/resource/overlay/etc/ros/rosdep.yaml &amp;gt; rosdep.yaml.backupsudo apt install python3-wstool libopensplice-6.9-dynamic apt-transport-https | tee rosdep.yaml.backuprosdep install -y --from-pkg &quot;micro-xrce-dds-agent&quot;colcon build --symlink-installsource install/setup.bash&lt;/pre&gt;  &lt;h3&gt;4. 配置网络参数&lt;/h3&gt;  &lt;p&gt;修改ROS DDS代理配置：&lt;/p&gt;  &lt;pre style=&quot;background: #2d2d2d; color: #f8f8f2; padding: 15px; border-radius: 5px;&quot;&gt;export GCS0_UDP_IP=0.0.0.0export LPOS0_TCP_IP=0.0.0.0echo &quot;export GCS0_UDP_IP=0.0.0.0&quot; &amp;gt;&amp;gt; ~/.bashrcecho &quot;export LPOS0_TCP_IP=0.0.0.0&quot; &amp;gt;&amp;gt; ~/.bashrcsource ~/.bashrc&lt;/pre&gt;  &lt;h2 style=&quot;margin-top: 25px;&quot;&gt;四、运行仿真环境&lt;/h2&gt;  &lt;pre style=&quot;background: #2d2d2d; color: #f8f8f2; padding: 15px; border-radius: 5px;&quot;&gt;# 启动Micro XRCE-DDS Agent进程./micro-vehicle-agent -m vehicle -t px4 -m vehicle -t px4# 模拟飞行过程ros2 service call /mavlink_system/get_parameter_value px4.param get RC_SPLBW&lt;/pre&gt;  &lt;h2 style=&quot;margin-top: 25px;&quot;&gt;五、验证仿真环境&lt;/h2&gt;  &lt;p&gt;使用QGroundControl或RViz进行仿真验证：&lt;/p&gt;  &lt;ol&gt;    &lt;li&gt;打开QGroundControl连接到仿真&lt;/li&gt;    &lt;li&gt;监控虚拟无人机状态参数&lt;/li&gt;    &lt;li&gt;通过MAVLink发送控制命令&lt;/li&gt;  &lt;/ol&gt;&lt;/div&gt;</description><pubDate>Mon, 05 Jan 2026 21:51:26 +0800</pubDate></item><item><title>Windows Docker Desktop教程：Ubuntu 24.04 Nvidia驱动编译依赖提取</title><link>https://vps5.cn/2026011011.html</link><description>&lt;div id=&quot;wznr&quot;&gt;  &lt;h2&gt;Windows Docker Desktop教程：Ubuntu 24.04 Nvidia驱动编译依赖提取&lt;/h2&gt;  &lt;p&gt;本文详细教你如何利用Windows Docker Desktop环境，提取Ubuntu 24.04系统中Nvidia驱动编译所需的依赖包，如gcc、build-essential和make。这些包对于编译GPU加速的应用非常重要。系统小白也可以轻松上手！&lt;/p&gt;  &lt;p&gt;在教程中，我们将一步步演示安装Docker Desktop、配置Ubuntu容器，并最终提取依赖包。这能帮你下载这些包，用于其他系统或环境，避免反复编译。&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;SEO关键词&lt;/strong&gt;: Windows Docker Desktop, Ubuntu 24.04 Nvidia驱动, 编译依赖包, gcc build-essential&lt;/p&gt;  &lt;h2&gt;步骤1: 安装Windows Docker Desktop&lt;/h2&gt;  &lt;p&gt;首先，确保你的Windows系统已安装Docker Desktop。如果没有，可以从Docker官网下载并安装它。&lt;a href=&quot;https://www.docker.com/products/docker-desktop&quot; target=&quot;_blank&quot;&gt;点击查看安装指南&lt;/a&gt;。&lt;/p&gt;  &lt;p&gt;安装完成后，Docker Desktop会自动运行默认的Docker引擎。&lt;/p&gt;  &lt;h2&gt;步骤2: 安装Nvidia驱动和工具包（可选，GPU用户）&lt;/h2&gt;  &lt;p&gt;如果你使用GPU加速，建议先安装Nvidia驱动和Nvidia Container Toolkit。这能让你在Ubuntu容器中启用GPU支持，提升编译性能。&lt;/p&gt;  &lt;p&gt;从Nvidia官网下载并安装最新驱动：&lt;a href=&quot;https://www.nvidia.com/Download/index.aspx&quot; target=&quot;_blank&quot;&gt;Nvidia驱动下载&lt;/a&gt;。&lt;/p&gt;  &lt;p&gt;然后，安装Nvidia Container Toolkit。打开PowerShell，运行以下命令：&lt;/p&gt;  &lt;pre style=&quot;background:black;color:white;padding:10px;white-space:pre-wrap&quot;&gt;    &lt;code&gt; # 安装Docker Desktop后，先设置Nvidia Container Toolkit的驱动，确保是Linux系统（Docker容器会模拟Ubuntu环境） sudo apt update sudo apt install nvidia-container-toolkit -y # 重启Docker服务 systemctl restart docker &lt;/code&gt;  &lt;/pre&gt;  &lt;h2&gt;步骤3: 在Docker Desktop中启动Ubuntu 24.04容器&lt;/h2&gt;  &lt;p&gt;打开Docker Desktop界面。搜索并运行一个Ubuntu 24.04容器。Ubuntu 24.04是较新的版本，支持最新的依赖包和编译工具。&lt;/p&gt;  &lt;p&gt;点击“新建容器”按钮，进入配置：&lt;/p&gt;  &lt;ul&gt;    &lt;li&gt;&lt;strong&gt;操作系统镜像：&lt;/strong&gt; 选择Ubuntu和版本24.04.&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;容器名称：&lt;/strong&gt; 可以自定义，比如“Ubuntu24-Compile”。&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;资源分配：&lt;/strong&gt; 根据你的电脑性能，分配适量的CPU和内存。&lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Nvidia支持：&lt;/strong&gt; 如果安装了Nvidia驱动，可以勾选Nvidia Container选项，启用GPU加速。&lt;/li&gt;  &lt;/ul&gt;  &lt;p&gt;容器启动后，你会在Docker Desktop的侧边栏中看到它。点击运行。&lt;/p&gt;  &lt;h2&gt;步骤4: 在Ubuntu容器内安装依赖包&lt;/h2&gt;  &lt;p&gt;现在进入容器的Shell界面。这一步是核心的Ubuntu 24.04 Nvidia驱动编译依赖包安装过程。使用以下命令在容器内安装gcc、build-essential、make和一些基础依赖：&lt;/p&gt;  &lt;pre style=&quot;background:black;color:white;padding:10px;white-space:pre-wrap&quot;&gt;    &lt;code&gt; # 进入容器 sudo docker exec -it &amp;lt;container_name&amp;gt; /bin/bash # 在容器内运行安装命令 sudo apt update sudo apt install gcc build-essential make -y sudo apt install libssl-dev -y # 这里添加更多依赖，如果你需要编译Nvidia驱动相关软件&lt;/code&gt;  &lt;/pre&gt;  &lt;p&gt;注意：替换&quot;&lt;container_name&gt;&quot;为实际容器名称，可以通过Docker Desktop GUI找到。&lt;/container_name&gt;&lt;/p&gt;  &lt;h2&gt;步骤5: 提取安装的依赖包&lt;/h2&gt;  &lt;p&gt;安装完成后，我们需要从Ubuntu容器中提取这些依赖包，以便下载到本地或用于其他系统。这可以确保你的开发环境一致性，提高编译速度。&lt;/p&gt;  &lt;p&gt;Ubuntu 24.04支持多种包管理系统，我们可以使用dpkg或apt-cdrecord来创建包缓存备份。&lt;/p&gt;  &lt;pre style=&quot;background:black;color:white;padding:10px;white-space:pre-wrap&quot;&gt;    &lt;code&gt; # 进入容器内部 sudo docker exec -it &amp;lt;container_name&amp;gt; /bin/bash # 在容器内，创建一个包缓存背 sudo apt-mark showauto | xargs sudo apt download &amp;gt; packages.txt # 这命令下载所有自动安装的包，你可以用它来手动移除或备份 # 如果你想提取依赖，也可以使用dpkg --list，然后下载每个包。&lt;/code&gt;  &lt;/pre&gt;  &lt;p&gt;在本教程中，我们推荐使用dpkg来提取，因为它能管理依赖关系。你可以运行：&lt;br/&gt;&lt;code&gt;sudo dpkg --print-architecture | xargs echo &quot;提取Ubuntu 24.04的依赖包...&quot; # 示例，实际提取命令可能不同&lt;/code&gt;&lt;/p&gt;  &lt;h2&gt;步骤6: 使用提取的依赖包&lt;/h2&gt;  &lt;p&gt;在本决定中，我们假设你想创建一个离线包集合，以便在没有网络的机器上编译Nvidia驱动编译所需的编译依赖包。提取后，这些包可以保存到本地文件系统。&lt;/p&gt;  &lt;p&gt;例如，使用apt-offline工具来管理包缓存：&lt;/p&gt;  &lt;pre style=&quot;background:black;color:white;padding:10px;white-space:pre-wrap&quot;&gt;    &lt;code&gt; # 在容器内安装apt-offline sudo apt install apt-offline -y # 然后生成包列表 sudo apt-offline get -d packages.list # 之后可以下载包，并在其他系统导入&lt;/code&gt;  &lt;/pre&gt;  &lt;p&gt;注意：这需要Ubuntu 24.04的apt系统支持。&lt;/p&gt;  &lt;footer&gt;    &lt;p&gt;通过这个过程，你可以为你的Nvidia驱动编译创建可靠的编译依赖包基础，支持Windows Docker Desktop上的Ubuntu 24.04环境。&lt;/p&gt;    &lt;p&gt;如果你在过程中遇到问题，请检查Docker日志或链 接到Nvidia社区。记住，maintaining up-to-date dependencies is key for smooth compilation in Ubuntu 24.04.&lt;/p&gt;  &lt;/footer&gt;&lt;/div&gt;</description><pubDate>Mon, 05 Jan 2026 21:43:32 +0800</pubDate></item><item><title>Ubuntu 25.04 Docker与Portainer安装指南（新手从零配置容器环境教程）</title><link>https://vps5.cn/2026011010.html</link><description>&lt;div id=&quot;wznr&quot;&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;大家好！欢迎阅读这篇详细教程，你将学习如何在Ubuntu 25.04操作系统上安装Docker容器引擎以及Portainer用户界面工具。作为升级到新版本后的小白用户，本教程会逐步引导你通过简单命令完成安装，关键词包括&lt;strong&gt;Docker安装&lt;/strong&gt;、&lt;strong&gt;Ubuntu 25.04&lt;/strong&gt;、&lt;strong&gt;Portainer管理&lt;/strong&gt;和&lt;strong&gt;容器入门&lt;/strong&gt;。Docker是当前流行的容器化平台，Portainer可以让你更方便地管理你的Docker服务，适合初学容器技术的朋友们快速上手。&lt;/p&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;开始前，请确保你的Ubuntu 25.04系统已准备好。如果你还没有安装Ubuntu 25.04，可以通过官方文档进行升级或安装。本文基于Ubuntu 25.04 LTS版本，大部分步骤适用于其他Ubuntu版本，但可能需要轻微调整。&lt;/p&gt;  &lt;h2 style=&quot;font-size: 24px; color: #2980b9; margin-top: 20px; margin-bottom: 10px;&quot;&gt;第一部分：安装Docker&lt;/h2&gt;    &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;Docker是一个开源的容器化平台，允许你打包应用程序及其依赖项，实现环境隔离。Ubuntu 25.04默认没有安装Docker，所以我们需要手动添加仓库并安装。&lt;/p&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;步骤1-1：更新系统包索引和升级软件包&lt;/p&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;打开终端（Ctrl+Alt+T），运行以下命令更新你的包列表并升级系统：&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;sudo apt updatesudo apt upgrade -y// 更新系统后，确保你的Ubuntu版本确实是25.04，可以用以下命令验证：lsb_release -a// 这一步关 // 注：Ubuntu 25.04是开发版，可能有更新，但教程基于它&lt;/code&gt;&lt;/pre&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;步骤1-2：安装必要的依赖包，如curl工具：&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;sudo apt install apt-transport-https ca-certificates curl software-properties-common -y&lt;/code&gt;&lt;/pre&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;步骤1-3：添加Docker的官方仓库和GPG密钥。Docker使用HashiCorp的仓库。&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -sudo add-apt-repository &quot;deb [list: deprecated|autoprivilege] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable&quot;&lt;/code&gt;&lt;/pre&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;步骤1-4：安装Docker Engine本身。Ubuntu 25.04支持Docker，运行以下命令安装：&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;sudo apt更新有关的内容// 步骤1-4的错误，应该是sudo apt updatesudo apt install docker-ce docker-ce-cli containerd.io -y// Docker应该 `sudo apt install docker-ce --allow-unauthenticated -y` 替代版本，但25.04通常完整。确保你有最新依赖&lt;/code&gt;&lt;/pre&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;步骤1-5：验证Docker安装是否成功。运行以下命令检查Docker版本：&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;docker --version// 输出类似：Docker version 20.10.24, build ... 这表明安装成功了&lt;/code&gt;&lt;/pre&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;步骤1-6：启动Docker服务并设置开机自启。&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;sudo systemctl start dockersudo systemctl enable docker// 25.04使用systemd，docker命令应该可用&lt;/code&gt;&lt;/pre&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;一旦Docker安装完成，你可以检查它是否运行正常：&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;docker run hello-world// 这将下载测试镜像并运行，输出&quot;Hello from Docker!&quot;确认Docker可用。这是验证Docker的简单方法。&lt;/code&gt;&lt;/pre&gt;  &lt;h2 style=&quot;font-size: 24px; color: #2980b9; margin-top: 20px; margin-bottom: 10px;&quot;&gt;第二部分：安装Portainer&lt;/h2&gt;    &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;Portainer是一个Web界面工具，让你更容易管理Docker环境。安装完成后，你可以在浏览器中访问管理界面。Ubuntu 25.04支持Portainer的运行。&lt;/p&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;步骤2-1：下载Portainer的Docker镜像或直接运行脚本。&lt;/p&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;Portainer推荐使用其官方Docker镜像持续运行，并可以通过命令栏直接执行安装。以下是替代方法：&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;// 首先，拉取Portainer的官方镜像 sudo docker pull portainer/portainer// 或者使用一种更简单的方法: you can directly download and run the Portainer community edition.&lt;/code&gt;&lt;/pre&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;步骤2-2：启动Portainer容器。运行以下命令，在Docker中启动Portainer服务。记住修改YOUR_PORTAINER_PASSWORD为你的密码：&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;sudo docker run -d --name portainer -p 9000:9000 -v /var/run/docker.sock:/docker.sock -v portainer_data:/data portainer/portainer// 等待几秒后访问,する&lt;/code&gt;&lt;/pre&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;步骤2-3：浏览器访问Portainer。打开浏览器，进入URL：http://你的Ubuntu服务器IP:9000（假设Docker安装在本地服务器）。你现在需要设置管理员密码，确保它符合你的容器管理需求。&lt;/p&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;配置完成后，你可以通过Portainer管理你的所有Docker容器，包括查看运行状态、运行/App停止应用等。&lt;/p&gt;  &lt;h2 style=&quot;font-size: 24px; color: #2980b9; margin-top: 20px; margin-bottom: 10px;&quot;&gt;第三部分：常见问题与小贴士&lt;/h2&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;在Ubuntu 25.04上安装Docker安装Portainer的常见问题是权限和网络。以下是简要建议：&lt;/p&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;如果遇到&quot;Permission denied&quot;错误，确保使用sudo或添加用户到docker组。你可以通过以下命令添加用户到docker组：&lt;/p&gt;  &lt;pre&gt;&lt;code&gt;sudo usermod -aG docker your_username// 然后重新登录&lt;/code&gt;&lt;/pre&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;所有安装完成后，你已经成功设置了Ubuntu 25.04的容器环境，下一步可以在里面部署自己的应用。&lt;/p&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;现在，回顾一下本教程的关键点：我们使用了Docker安装过程，以及Portainer管理工具。如果你有任何问题，可以咨询Docker官方文档或社区。&lt;/p&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;附加小贴士：Ubuntu 25.04是较新版本，定期更新系统可以保持安全。&lt;/p&gt;  &lt;!-- 插入图片，用于展示安装界面 --&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;### 这里是Docker安装后的验证截图 ###&lt;/p&gt;  &lt;img src=&quot;http://vpshk.cn/swq_img/81.png&quot; alt=&quot;展示Ubuntu终端运行docker run hello-world的截图，显示容器成功启动，这是安装验证的示例。&quot; style=&quot;width: 400px; height: auto; margin: 10px 0; border: 1px solid #ddd; border-radius: 4px; padding: 5px; display: block; margin-left: auto; margin-right: auto;&quot;/&gt;&lt;br/&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;图片说明：这张图片演示了在Ubuntu 25.04终端中，成功运行docker run hello-world命令的输出，这是确认Docker引擎安装的简单方式。安装Portainer后类似。&lt;/p&gt;  &lt;h2 style=&quot;font-size: 24px; color: #2980b9; margin-top: 20px; margin-bottom: 10px;&quot;&gt;结束语&lt;/h2&gt;    &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;恭喜你！现在你已经掌握了在Ubuntu 25.04上安装Docker和Portainer的基础知识。通过这个&lt;a href=&quot;#wznr&quot;&gt;容器入门教程&lt;/a&gt;&lt;strong&gt;，你还可以探索更多Docker功能，比如运行自己的应用容器，管理容器资源等。如果这是你的第一次接触，请多练习！注意，Ubuntu 25.04是开发版，生产环境中可能需要稳定版。&lt;/strong&gt;&lt;/p&gt;  &lt;p style=&quot;font-size: 16px; line-height: 1.6; color: #34495e;&quot;&gt;享受你的容器之旅吧！如果你想进一步学习，推荐参考Docker官方文档或Portainer GitHub页面。&lt;/p&gt;&lt;/div&gt;</description><pubDate>Mon, 05 Jan 2026 21:40:10 +0800</pubDate></item></channel></rss>