> ## Content Index
> Fetch the complete content index at: https://sgpublic.xyz/llms.txt
> Use this file to discover other available public pages before exploring further.

# 利用 OpenList 挂载本地目录实现多线程上传
- URL: https://sgpublic.xyz/p/2026/11/6afc352ca02562000144c836/
- Published: 2026-11-17T11:35:37.000Z
- Updated: 2026-11-17T11:35:37.000Z
- Author: Haven Madray
- Tags: 运维, 算力平台

最近遇到一个需求，就是某个平台上的服务器链路存在一些丢包现象，导致单线程 TCP 连接速度最快就 5\~8M/s，于是需要利用多线程，而上传和下载不同，下载可以利用 HTTP Header 里的 `Range` 来轻松实现多线程，但上传没有类似语义。

OpenList 支持了分片多线程上传到本地目录（[OpenList#577](https://github.com/OpenListTeam/OpenList-Frontend/pull/577?ref=sgpublic.xyz)），可以解决单线程吞吐量过低的问题。

### 安装

首先还是推荐使用 [mise](https://sgpublic.xyz/p/2026/10/6ad596dc404a0500012b805e/) 完成 OpenList 安装：

```
mise use -g github:OpenListTeam/OpenList@latest
```

也可以手动从 [Release](https://github.com/OpenListTeam/OpenList/releases/latest?ref=sgpublic.xyz) 下载 `openlist-linux-amd64.tar.gz` ，解压到例如 `~/.local/bin/openlist` ，然后直接使用。

### 使用

使用以下命令启动 OpenList：

```bash
openlist server
```

服务器默认使用端口 `5244`，将此端口在平台上暴露。

默认用户名为 `admin`，默认密码会在首次启动时输出在终端中，注意保存。

### 创建挂载

登录后首页会显示没有存储，点击“转到存储”添加挂载。

![](https://sgpublic.xyz/content/images/2026/11/image.png)

点击左上角添加。  

![](https://sgpublic.xyz/content/images/2026/11/image-1.png)

驱动选择本机存储。

![](https://sgpublic.xyz/content/images/2026/11/image-2.png)

挂载路径填写你访问网页上的路径，比如我这里随便写一个 `/home`。

![](https://sgpublic.xyz/content/images/2026/11/image-5.png)

根文件夹路径填写需要挂载的本地目录，比如我这里选择挂载 ubuntu 用户的用户目录。

![](https://sgpublic.xyz/content/images/2026/11/image-6.png)

其余推荐选项：

![](https://sgpublic.xyz/content/images/2026/11/image-4.png)

剩下的选项按需设置，我这里全部保持默认，最后点击添加。

于是首页上会出现一个名为 `home` 的文件夹。

![](https://sgpublic.xyz/content/images/2026/11/image-7.png)

点开就是我的用户目录。

![](https://sgpublic.xyz/content/images/2026/11/image-8.png)

### 上传文件

上传文件时，先打开你需要上传文件的目录，然后在右下角工具栏里点击上传按钮。

![](https://sgpublic.xyz/content/images/2026/11/image-9.png)

取消勾选“尝试秒传”，其他选项保持默认。

![](https://sgpublic.xyz/content/images/2026/11/image-10.png)

最后直接把文件拖过来就行了（不推荐直接上传文件夹，建议打包之后再上传），恭喜你解锁了满速上传。

![](https://sgpublic.xyz/content/images/2026/11/image-11.png)