消费硬件本地部署Qwen3.6

1. 核心硬件配置:精准匹配显存与PCIe 带宽

组件 型号 备注
主板 微星 MPG Z690 CARBON WIFI 关键:支持两条 PCIe 5.0 x8 通道,完美匹配两张卡
CPU Intel i5-12600KF 便宜够用
内存 DDR5 32GB 建议扩容至64GB,实测32GB对35B模型加载刚够用
显卡 NVIDIA RTX 5060 Ti 16GB ×2

为什么选双 PCIe 5.0 x8 主板?
PCIe 5.0 x8 提供双向 32 GB/s 带宽,32G显存能加载的模型,在推理时不会有带宽瓶颈。


2. 模型选择与量化策略

  • 模型nvidia/Qwen3.6-35B-A3B-NVFP4 或者 nvidia/Qwen3.6-27B-NVFP4
    • NVFP4 量化,大幅降低显存占用,几乎无损,同时发挥BlackWell FP4硬件加速。
  • 上下文长度:100k+
    • 足以覆盖日常使用大部分场景。

3. Docker 部署命令

Qwen3.6-35B-A3B-NVFP4

docker run -d --name vllm --restart unless-stopped --runtime nvidia --gpus all \
-e HF_ENDPOINT=https://hf-mirror.com \
-v /opt/vllm-cache:/root/.cache \
-p 11808:11808 \
--ipc=host \
vllm/vllm-openai:v0.23.0 \
nvidia/Qwen3.6-35B-A3B-NVFP4 \
--served-model-name qwen3.6-local \
--pipeline-parallel-size 1 \
--tensor-parallel-size 2 \
--gpu-memory-utilization 0.89 \
--quantization modelopt \
--kv-cache-dtype fp8_e4m3 \
--reasoning-parser qwen3 \
--tool-call-parser qwen3_coder \
--enable-auto-tool-choice \
--enable-prefix-caching \
--enable-chunked-prefill \
--default-chat-template-kwargs '{"enable_thinking": false,"preserve_thinking": true}' \
--max-model-len 131072 \
--max-num-seqs 2 \
--max-num-batched-tokens 4096 \
--port 11808

Qwen3.6-27B-NVFP4

docker run -d --name vllm --restart unless-stopped --runtime nvidia --gpus all \
-e HF_ENDPOINT=https://hf-mirror.com \
-v /opt/vllm-cache:/root/.cache \
-p 11808:11808 \
--ipc=host \
vllm/vllm-openai:v0.25.1 \
nvidia/Qwen3.6-27B-NVFP4 \
--served-model-name qwen3.6-local \
--pipeline-parallel-size 1 \
--tensor-parallel-size 2 \
--gpu-memory-utilization 0.92 \
--quantization modelopt \
--kv-cache-dtype fp8_e4m3 \
--speculative-config '{"method":"mtp","num_speculative_tokens":2}' \
--reasoning-parser qwen3 \
--tool-call-parser qwen3_xml \
--enable-auto-tool-choice \
--enable-prefix-caching \
--enable-chunked-prefill \
--default-chat-template-kwargs '{"enable_thinking": false,"preserve_thinking": true}' \
--max-model-len 102400 \
--max-num-seqs 2 \
--max-num-batched-tokens 4096 \
--port 11808

4. 性能表现

Qwen3.6-35B-A3B-NVFP4

模型和KV Cache加载后,稳定运行占用约 28GB

test t/s peak t/s ttfr (ms) est_ppt (ms) e2e_ttft (ms)
pp2048 15973.41 ± 198.00 238.84 ± 4.21 114.97 ± 4.21 238.84 ± 4.21
tg32 107.80 ± 1.57 111.30 ± 1.62
pp2048 @ d4096 9762.62 ± 26.69 678.54 ± 4.39 554.67 ± 4.39 678.54 ± 4.39
tg32 @ d4096 106.13 ± 1.13 109.57 ± 1.17
pp2048 @ d8192 8723.16 ± 6.59 1170.62 ± 3.55 1046.75 ± 3.55 1170.62 ± 3.55
tg32 @ d8192 106.52 ± 3.33 109.98 ± 3.44
pp2048 @ d16384 7915.58 ± 6.69 2224.96 ± 8.50 2101.09 ± 8.50 2226.21 ± 9.47
tg32 @ d16384 112.28 ± 0.29 115.92 ± 0.30
pp2048 @ d32768 6860.43 ± 8.89 4736.31 ± 15.21 4612.44 ± 15.21 4737.87 ± 15.08
tg32 @ d32768 111.89 ± 1.43 115.51 ± 1.47

** 生成速度稳定在 100~112 tok/s**。

Qwen3.6-27B-NVFP4

模型和KV Cache加载后,稳定运行占用约 30GB

test t/s peak t/s ttfr (ms) est_ppt (ms) e2e_ttft (ms)
pp2048 1304.43 ± 34.87 1606.39 ± 39.54 1435.28 ± 39.54 1606.39 ± 39.54
tg32 39.09 ± 2.72 40.36 ± 2.81
pp2048 @ d4096 1478.87 ± 10.76 3937.43 ± 32.01 3766.33 ± 32.01 3937.43 ± 32.01
tg32 @ d4096 35.13 ± 3.57 36.18 ± 3.80
pp2048 @ d8192 1496.41 ± 5.56 6357.96 ± 74.31 6186.85 ± 74.31 6357.96 ± 74.31
tg32 @ d8192 33.52 ± 2.39 34.57 ± 2.52
pp2048 @ d16384 1458.31 ± 27.17 11580.80 ± 328.04 11409.70 ± 328.04 11581.82 ± 328.01
tg32 @ d16384 34.92 ± 4.57 35.82 ± 5.03
pp2048 @ d32768 1401.01 ± 0.43 22677.08 ± 109.86 22505.97 ± 109.86 22678.61 ± 109.90
tg32 @ d32768 35.60 ± 2.70 36.76 ± 2.79

** 生成速度稳定在约 40 tok/s**,长上下文首字延迟增大明显。


5. 总结

  • 性价比高:消费低价平台,适中显存与算力。
  • 安静低耗:750W电源可推动,适合家庭/小型办公。
阅读全文

SD卡速度规格详解及使用场景对照

SD卡速度规格详解及使用场景对照

SD卡的速度等级由多个不同的标准组成,分别针对最低写入速度总线传输速度应用性能。以下是详细的对照表和使用建议:

1. 核心速度等级对照表

标识图标 全称/含义 最低持续写入速度 主要应用场景
Class 2 Speed Class 2 2 MB/s 早期SD卡,仅适合低分辨率视频或音频存储(现已淘汰)
Class 4 Speed Class 4 4 MB/s 普通标清视频、非高清照片存储(现已较少见)
Class 6 Speed Class 6 6 MB/s 高清视频录制、普通数码相机
Class 10 Speed Class 10 10 MB/s 1080P全高清视频录制、单反相机连拍(经典入门标准)
U1 UHS Speed Class 1 10 MB/s 等同于Class 10,用于1080P视频、普通4K视频
U3 UHS Speed Class 3 30 MB/s 高码率4K视频、8K视频基础、高速连拍、专业摄影
V6 Video Speed Class 6 6 MB/s 低码率视频录制(较少见)
V10 Video Speed Class 10 10 MB/s 1080P视频录制
V30 Video Speed Class 30 30 MB/s 主流4K视频、高像素连拍(目前最通用的中高端标准)
V60 Video Speed Class 60 60 MB/s 高码率4K/8K视频、RAW格式高速连拍、双卡槽写入
V90 Video Speed Class 90 90 MB/s 极致专业视频(如8K 60fps)、高码率RAW连拍、电影制作

2. 总线传输速度层级 (UHS)

这代表了SD卡与读卡器/相机之间的理论最大传输带宽,影响照片/视频从卡导出到电脑的速度。

标准 理论最大读取速度 说明
UHS-I 104 MB/s 最常见,单排金手指。满足绝大多数消费级需求。
UHS-II 312 MB/s 双排金手指(底部多一排触点)。需配合UHS-II读卡器使用,导出速度极快,适合专业摄影师。
UHS-III 624 MB/s 较新标准,双排金手指,速度翻倍,目前高端专业设备开始支持。

3. 应用性能等级 (A-Class) - 主要针对手机/microSD

等级 含义 适用场景
A1 随机读取/写入性能提升 适合在手机上运行APP、存储游戏数据。
A2 随机读写性能大幅提升(IOPS更高) 推荐用于Android手机、Switch、无人机,能显著提升APP加载速度和系统流畅度。

选购建议与使用场景匹配

📷 场景一:普通家用 / 行车记录仪 / 监控摄像头

  • 推荐规格Class 10U1 / V10
  • 理由:这类设备对持续写入速度要求不高,10MB/s 足以应对1080P视频循环覆盖。
  • 注意:监控/行车记录仪需选择“高耐久(High Endurance)”系列,因为它们是7x24小时不断写入。

📸 场景二:日常摄影 / 旅行 / 1080P 或 基础 4K 视频

  • 推荐规格U3 / V30 + UHS-I
  • 理由:V30保证30MB/s的持续写入,能稳定录制4K视频不卡顿。UHS-I接口足以应付日常照片导入。这是目前性价比最高、最通用的选择。

🎥 场景三:专业视频创作 / 8K视频 / 高码率4K

  • 推荐规格V60V90 + UHS-II
  • 理由:拍摄高码率视频(如4K 120fps或8K)时,数据量巨大,V60/V90能防止缓冲区溢出(爆红/停止录制)。UHS-II接口能实现秒传大量素材,节省后期时间。
  • 注意:必须搭配支持UHS-II的读卡器和电脑接口(USB 3.1/3.2 Gen 2或Thunderbolt)。

📱 场景四:手机扩容 / Switch / 无人机 / 运动相机

  • 推荐规格microSDXC + A2 + V30/U3
  • 理由
    • A2:确保在手机或Switch上运行大型游戏和APP时加载速度快。
    • V30/U3:确保在GoPro、大疆无人机等设备上录制4K高清视频不掉帧。
    • 耐用性:运动相机建议使用“加固版”或“高耐用”系列,以抵抗高温和震动。

阅读全文

RHEL系Linux更新内核

ELRepo 简介

项目主页:http://elrepo.org

Enterprise Linux 软件包的 RPM 存储库。ELRepo 支持 Red Hat Enterprise Linux (RHEL) 及其衍生产品,如CentOS Linux、AlmaLinux 和 Rocky Linux。

启用 ELRepo

从 CentOS 8 开始,ELRepo 已经加入到官方软件仓库中,名称为 “elrepo-release”。

AlmaLinux 和 Rocky Linux 同样适用。

启用 ELRepo 只需要执行命令:

dnf -y install elrepo-release

升级内核

查询 ELRepo 中的 kernel 版本

yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
yum --disablerepo="*" --enablerepo="elrepo-kernel" list available --showduplicates #查看所有版本

kernel-ml 中的 ml 是英文 “mainline stable” 的缩写,elrepo-kernel 中列出来的是最新的稳定主线版本。
kernel-lt 中的 lt 是英文 “long term support” 的缩写,elrepo-kernel 中列出来的长期支持版本。

安装 kernel

yum --disablerepo="*" --enablerepo=elrepo-kernel install kernel-ml kernel-ml-core kernel-ml-devel kernel-ml-modules  kernel-ml-modules-extra

慎重装kernel-ml-headers包,会和发行版的kernel-headers包冲突

Error:
 Problem: package kernel-ml-headers-6.16.6-1.el8.elrepo.x86_64 from elrepo-kernel conflicts with kernel-headers < 6.16.6-1.el8.elrepo provided by kernel-headers-4.18.0-553.34.1.el8_10.x86_64 from @System
  - cannot install the best candidate for the job
  - problem with installed package kernel-headers-4.18.0-553.34.1.el8_10.x86_64

elrepo官方提示:

There is no need to install the kernel-lt-headers package. It is only necessary if you intend to rebuild glibc and, thus, the entire operating system. If there is a need to have the kernel headers installed, you should use the current distributed kernel-headers package as that is related to the current version of glibc. When you see a message like “your kernel headers for kernel xxx cannot be found …”, you most likely need the kernel-lt-devel package, not the kernel-lt-headers package.

kernel-headers包是给用户态程序用的,个人理解为类似libc标准库里的*unix规范接口函数,不同版本内核间相当稳定,所以使用发行版的即可。
kernel-devel包是给开发内核态程序\内核模块用的,不通版本内核间就有差异,所以需要单独装。

所以常规仅仅是使用新版本内核,不需要装kernel-ml-headers,保持使用发行版的kernel-headers,而且升级发行版的kernel版本时kernel-headers也可能不会一起更新,kernel-headers在需要时才会更新。

发行版源的其他软件,都依赖发行版的kernel-headers,忽略冲突安装可能造成其他软件安装失败,https://www.rockylinux.cn/notes/rocky-linux-9-nei-he-sheng-ji-zhi-6.html

查询安装的 kernel 包

rpm -qa|grep kernel

查看和设置默认启动项

grubby 是一个命令行工具,用于更新和显示有关 grub2 和 zipl 引导加载程序的配置文件的信息。它主要设计用于安装新内核并需要查找有关当前引导环境的信息的脚本。同时也可以对启动内核的各项信息参数进行修改。

在 CentOS 8 在已经自带该命令,如果没有通过 yum install grubby 来安装即可。

查看当前的默认启动内核:

grubby --default-kernel
/boot/vmlinuz-5.15.4-1.el8.elrepo.x86_64

查看系统安装的全部内核:

grubby --info=ALL

index=0
kernel="/boot/vmlinuz-5.15.4-1.el8.elrepo.x86_64"
args="ro crashkernel=auto net.ifnames=0 $tuned_params"
root="UUID=56c34ece-6010-480e-aeac-dea98b8ffcd3"
initrd="/boot/initramfs-5.15.4-1.el8.elrepo.x86_64.img $tuned_initrd"
title="Rocky Linux (5.15.4-1.el8.elrepo.x86_64) 8.5 (Green Obsidian)"
id="032ed95ba9c0471381bbb6b416eff523-5.15.4-1.el8.elrepo.x86_64"
index=1
kernel="/boot/vmlinuz-4.18.0-348.2.1.el8_5.x86_64"
args="ro crashkernel=auto net.ifnames=0 $tuned_params"
root="UUID=56c34ece-6010-480e-aeac-dea98b8ffcd3"
initrd="/boot/initramfs-4.18.0-348.2.1.el8_5.x86_64.img $tuned_initrd"
title="Rocky Linux (4.18.0-348.2.1.el8_5.x86_64) 8.5 (Green Obsidian)"
id="032ed95ba9c0471381bbb6b416eff523-4.18.0-348.2.1.el8_5.x86_64"
index=2
kernel="/boot/vmlinuz-4.18.0-348.el8.x86_64"
args="ro crashkernel=auto net.ifnames=0 $tuned_params intel_iommu=on"
root="UUID=56c34ece-6010-480e-aeac-dea98b8ffcd3"
initrd="/boot/initramfs-4.18.0-348.el8.x86_64.img $tuned_initrd"
title="AlmaLinux (4.18.0-348.el8.x86_64) 8.5 (Arctic Sphynx)"
id="032ed95ba9c0471381bbb6b416eff523-4.18.0-348.el8.x86_64"
index=3
kernel="/boot/vmlinuz-0-rescue-032ed95ba9c0471381bbb6b416eff523"
args="ro crashkernel=auto net.ifnames=0"
root="UUID=56c34ece-6010-480e-aeac-dea98b8ffcd3"
initrd="/boot/initramfs-0-rescue-032ed95ba9c0471381bbb6b416eff523.img"
title="AlmaLinux (0-rescue-032ed95ba9c0471381bbb6b416eff523) 8.5 (Arctic Sphynx)"
id="032ed95ba9c0471381bbb6b416eff523-0-rescue"

查看特定内核的具体信息:

grubby --info=/boot/vmlinuz-4.18.0-348.el8.x86_64
index=1
kernel="/boot/vmlinuz-4.18.0-348.el8.x86_64"
args="ro crashkernel=auto net.ifnames=0 $tuned_params"
root="UUID=56c34ece-6010-480e-aeac-dea98b8ffcd3"
initrd="/boot/initramfs-4.18.0-348.el8.x86_64.img $tuned_initrd"
title="AlmaLinux (4.18.0-348.el8.x86_64) 8.5 (Arctic Sphynx)"
id="032ed95ba9c0471381bbb6b416eff523-4.18.0-348.el8.x86_64"

设置新的默认启动内核:

使用路径来指定内核,可以使用 –set-default=kernel-path

grubby --set-default=/boot/vmlinuz-4.18.0-348.el8.x86_64
The default is /boot/loader/entries/032ed95ba9c0471381bbb6b416eff523-4.18.0-348.el8.x86_64.conf with index 1 and kernel /boot/vmlinuz-4.18.0-348.el8.x86_64

grubby --default-kernel
/boot/vmlinuz-4.18.0-348.el8.x86_64

使用 index 来指定内核,则使用 –set-default-index=entry-index

grubby --set-default-index=1
The default is /boot/loader/entries/032ed95ba9c0471381bbb6b416eff523-4.18.0-348.el8.x86_64.conf with index 1 and kernel /boot/vmlinuz-4.18.0-348.el8.x86_64

grubby --default-kernel
/boot/vmlinuz-4.18.0-348.el8.x86_64

重启后生效

reboot

删除旧内核(可选)

从启动项中删除旧内核

grubby --remove-kernel=/boot/vmlinuz-4.18.0-348.el8.x86_64

删除旧内核文件

# 删除旧内核
yum remove kernel-4.18.0 kernel-core-4.18.0 kernel-modules-4.18.0 kernel-devel-4.18.0
# 需要注意,是否同时删除一些依赖包。

Kernel相关的RPM包说明

kernel-core
提供内核的二进制镜像、所有与 initramfs相关的对象来引导系统,以及确保核心功能的最小内核模块数量。

kernel-modules
提供 kernel-core 中不存在的其余内核模块。

kernel-modules-extra
为罕见硬件提供内核模块。默认禁用模块的加载。

kernel-debug
提供了启用了许多调试选项的内核,以便进行内核诊断,以降低性能为代价。

kernel-tools
提供了操作 Linux 内核和支持文档的工具。

kernel-devel
提供了内核标头和 makefile,来足以针对 kernel 软件包构建模块。

kernel-abi-stablelists
提供与 RHEL 内核 ABI 相关的信息,包括外部 Linux 内核模块所需的内核符号列表和 yum 插件以协助执行。

kernel-headers
包括指定 Linux 内核和用户空间库以及程序间接口的 C 标头文件。头文件定义构建大多数标准程序所需的结构和常量。

安装ELRepo历史版本内核

官方的elrepo, lt和ml都只有当前版本的包。

如果要指定安装指定版本的内核,可以从这里https://mirrors.coreix.net/elrepo-archive-archive/kernel/下载RPM包。

例如rockylinux8目前了mainline是6.x,安装高版本的5.x:

wget -c https://mirrors.coreix.net/elrepo-archive-archive/kernel/el8/x86_64/RPMS/kernel-ml-5.19.9-1.el8.elrepo.x86_64.rpm
wget -c https://mirrors.coreix.net/elrepo-archive-archive/kernel/el8/x86_64/RPMS/kernel-ml-core-5.19.9-1.el8.elrepo.x86_64.rpm
wget -c https://mirrors.coreix.net/elrepo-archive-archive/kernel/el8/x86_64/RPMS/kernel-ml-devel-5.19.9-1.el8.elrepo.x86_64.rpm
wget -c https://mirrors.coreix.net/elrepo-archive-archive/kernel/el8/x86_64/RPMS/kernel-ml-modules-5.19.9-1.el8.elrepo.x86_64.rpm
wget -c https://mirrors.coreix.net/elrepo-archive-archive/kernel/el8/x86_64/RPMS/kernel-ml-modules-extra-5.19.9-1.el8.elrepo.x86_64.rpm

# rpm -ivh --oldpackage kernel-ml-*
rpm -ivh kernel-ml-*

文章参考

https://sysin.org/blog/centos-8-upgrade-kernel/

阅读全文

本地Lambda函数几行代码实现MCP Server

文章视频教程: https://www.bilibili.com/video/BV1wWd8YNEZY/?vd_source=e14a954d1c7739b152548d58bf125603

MCP+Lambda

MCP服务器充当MCP客户端与Lambda函数之间的桥梁,使生成式AI模型能够访问和运行Lambda函数作为工具。

社区项目 https://github.com/danilop/MCP2Lambda

但是目前MCP在安全方面还比较弱,所以社区MCP工具基本都是本地工具,Lambda能不能也本地部署。

Refunc是基于K8S的一个本地化的Lambda平台,可以实现本地部署Lambda函数。

MCP+Refunc

Refunc社区跟进MCP发展,实现了任意函数通过MCP开放调用。

https://github.com/refunc/mcp-server

部署 Refunc

refunc-system 命名空间下部署所有 Refunc 组件。

kubectl apply -f https://raw.githubusercontent.com/refunc/mcp-server/refs/heads/main/deploy/play-all-in-one.yaml

接着,将 Refunc 服务代理到本地。

kubectl port-forward svc/aws-api 8000:http --address 0.0.0.0 -n refunc-system
kubectl port-forward svc/mcp-server 8001:http --address 0.0.0.0 -n refunc-system

注意:演示部署中的数据是非持久化的。

创建函数

使用 refunc-cli 创建一个函数。

pip install -U refunc-cli
mkdir mcp-demo && cd mcp-demo
rfctl init

main.py 中编写任意代码,演示将回显一条问候消息。

AWS_DEFAULT_ENDPOINT=http://127.0.0.1:8000 rfctl create

注意:您需要一个 Python 3 环境。

创建 MCP 端点

编辑 lambda.yaml 并粘贴以下代码。

metadata:
  name: mcp-demo
  namespace: refunc-system
spec:
  build:
    source: .
    manifest: requirements.txt
    language: python
    architecture: x86_64
  handler: main.lambda_handler
  timeout: 120
  runtime: "python3.10"
  concurrency: 1
  environment:
    ENV_TEST: TEST
#  url:
#    cors:
#      allowCredentials: true
#      allowHeaders: "*"
#      allowMethods: "*"
#      allowOrigins: "*"
#      exposeHeaders: "*"
#      maxAge: 300
  events:
    # - name: hourly
    #   type: cron
    #   mapping:
    #     cron: 0 * * * *
    #     location: Asia/Shanghai
    #     args:
    #       var1: value1
    #     saveLog: false
    #     saveResult: false
    - name: mcp
      type: mcp
      mapping:
        args:
          token: mcp-demo
          tools:
            - name: echo-hello
              desc: Echo a hello msg
              schema:
                type: object
                properties: {}
                required: []
        saveLog: false
        saveResult: false

接下来,运行以下命令更新配置:

AWS_DEFAULT_ENDPOINT=http://127.0.0.1:8000 rfctl update-config

演示的 MCP SSE 端点为:http://127.0.0.1:8001/refunc-system/mcp-demo/test/mcp-demo/sse

Refunc MCP SSE URL 路径格式为:/namespace/<token-secret-name>/<token>/<func-name>/sse

Refunc MCP 事件规范

- name: mcp
  type: mcp # 事件类型必须为 mcp。
  mapping:
    args:
      token: mcp-demo # 可以在 play-all-in-one.yaml 中找到的 token 秘钥名称。
      tools: # MCP 工具
        - name: echo-hello # MCP 工具名称
          desc: Echo a hello msg # MCP 工具描述
          schema: # MCP 工具参数,用有效的 JSON Schema 描述。
            type: object
            properties: {}
            required: []
    saveLog: false
    saveResult: false

事件的tools字段是一个数组,您可以通过一个函数实现多个tool。在调用函数时,Refunc 会添加两个内置参数:_call_type_call_method,其中 _call_method 是tool的名称。_call_type会表示调用来自MCP的什么类型,Tool、Resource或者Prompts。

阅读全文

安伯尼可RG40xxV掌机设置远程管理游戏

开启SSH

使用系统自带的文件管理器,编辑系统设置文件

/mnt/mod/ctrl/configs/system.cfg

添加开启ssh配置

global.ssh=1

然后重启,连接WIFI,从系统菜单配置获取IP地址。

进入一个游戏,然后暂停,不然系统自动锁屏休眠,网络会断,配置好FTP以后传游戏时候也这样操作。

安装VSFTP服务器

使用xshell或者其他ssh终端工具登录,密码同用户名(猜出来的),建议登录上去之后改掉,实测不影响系统使用。

ssh root@192.168.x.x

会发现周哥的系统就是原生的Ubuntu。

Welcome to Ubuntu 22.04 LTS (GNU/Linux 4.9.170 aarch64)

通过apt安装ftp服务器。

# 系统默认用的清华的源666
apt update
apt install vsftpd

配置VSFTP

直接在终端下vim配

mv /etc/vsftpd.conf /etc/vsftpd.conf.bak
vim /etc/vsftpd.conf

vsftp配置如下

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
local_root=/mnt
allow_writeable_chroot=YES
pasv_enable=YES

开启root使用ftp登录

vim /etc/ftpusers
删除或注释掉root行

重启vsftp

systemctl restart vsftpd

通过FTP管理游戏文件

下载FileZilla,FTP连接游戏机IP即可,FTP客户端使用参考其他教程。

系统卡目录

/mmc

扩展卡目录

/sdcard
阅读全文