One-click Script

Only for Linux-x86_64/arm64 platform.

仅适用于 Linux amd64/arm64 平台。

Latest

正式版

Install

安装

bash
curl -fsSL "https://docs.openlist.team/v3-en.sh" -o v3-en.sh && bash v3-en.sh
bash
curl -fsSL "https://docs.openlist.team/v3.sh" -o v3.sh && bash v3.sh
v3-install
v3-install

openlist-manager

面板管理命令

"Use command: openlist or openlist-manager" openlist-manager

使用命令:openlist 或者 openlist-manageropenlist-manager

Beta

测试版

Install

安装

bash
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s install
bash
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s install

Update

更新

bash
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s update
bash
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s update

Uninstall

卸载

bash
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s uninstall
bash
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s uninstall

Custom path

自定义路径

The default installation is in /opt/openlist. To customize the installation path, add the installation path as the second parameter, which must be an absolute path (if the path ends in openlist, install directly to the given path, otherwise it will be installed in the given path openlist Directory), such as installing to /root:

默认安装在 /opt/openlist 中。 自定义安装路径,将安装路径作为第二个参数添加,必须是绝对路径(如果路径以 openlist 结尾,则直接安装到给定路径,否则会安装在给定路径 openlist 目录下),如 安装到 /root

Latest

正式版

bash
curl -fsSL "https://docs.openlist.team/v3-en.sh" -o v3-en.sh && bash v3-en.sh install /root
curl -fsSL "https://docs.openlist.team/v3-en.sh" -o v3-en.sh && bash v3-en.sh update /root
curl -fsSL "https://docs.openlist.team/v3-en.sh" -o v3-en.sh && bash v3-en.sh uninstall /root
bash
curl -fsSL "https://docs.openlist.team/v3.sh" -o v3.sh && bash v3.sh install /root
curl -fsSL "https://docs.openlist.team/v3.sh" -o v3.sh && bash v3.sh update /root
curl -fsSL "https://docs.openlist.team/v3.sh" -o v3.sh && bash v3.sh uninstall /root

Beta

测试版

bash
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s install /root
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s update /root
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s uninstall /root
bash
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s install /root
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s update /root
curl -fsSL "https://docs.openlist.team/beta.sh" | bash -s uninstall /root

Management commands

管理命令

  • Start: systemctl start openlist
  • Shut down: systemctl stop openlist
  • Status: systemctl status openlist
  • Restart: systemctl restart openlist
  • 启动: systemctl start openlist
  • 关闭: systemctl stop openlist
  • 状态: systemctl status openlist
  • 重启: systemctl restart openlist

Get Password

获取密码

You need to enter the directory folder where the script installs OpenList and execute the following command

需要进入脚本安装OpenList的目录文件夹內执行如下命令

Lower than v3.25.0

低于v3.25.0版本

bash
./openlist admin
bash
./openlist admin

Higher than v3.25.0

高于v3.25.0版本

Versions above 3.25.0 change the password to an encrypted hash value, and the password cannot be calculated directly. If the password is forgotten, it can only be re-randomly generated or manually set

bash
./openlist admin random
./openlist admin set NEW_PASSWORD

3.25.0以上版本将密码改成加密方式存储的hash值,无法直接反算出密码,如果忘记了密码只能通过重新 随机生成 或者 手动设置

bash
./openlist admin random
./openlist admin set NEW_PASSWORD

What should I do if it keeps loading?

一直在加载怎么办?

I mounted some network disks but they cannot be used. I restarted OpenList and found that I could not enter. The web page prompts: Failed to obtain settings: Please wait, storage is loading. What should I do?

  1. Wait a few minutes
  2. Stop the failed/unstartable storage by using the command

挂载了一些网盘但是不能用了重启了一下OpenList,发现进不去 网页提示:获取设置失败:请稍后,正在加载存储怎么办? 3. 等待几分钟 4. 通过使用命令将失效的/无法启动的存储停止运行

Linux

Linux

If you stop by command ==You must first enter the folder where your OpenList is located and enter the command== If we don’t know which storage is causing the problem, we can list all storages through the command

bash
./openlist storage list
bash
[root@OPSD-g8xXordx3B9f openlist]# ./openlist storage list
INFO[2023-11-23 17:54:10] reading config file: data/config.json
INFO[2023-11-23 17:54:10] load config from env with prefix: OpenList_
INFO[2023-11-23 17:54:10] init logrus...
INFO[2023-11-23 17:54:10] Found 2 storages
┌─────────────────────────────────────────────────────────────────┐
 ID    Driver            Mount Path                      Enabled
│─────────────────────────────────────────────────────────────────│
 1     S3                /R2                             true
 2     UrlTree           /233                            true
└─────────────────────────────────────────────────────────────────┘

After entering the query command, we will enter another mode and cannot operate. If there are too many added storages, you can use the ↑ and ↓ keys on the keyboard to scroll down. After you find it, you can press Ctrl+C to exit. For example, because the storage 233 cannot be loaded, we enter the command to stop it, and then restart OpenList.

bash
./openlist storage disable /233
bash
[root@OPSD-g8xXordx3B9f openlist]# ./openlist storage disable /233
INFO[2023-11-23 17:54:52] reading config file: data/config.json
INFO[2023-11-23 17:54:52] load config from env with prefix: OpenList_
INFO[2023-11-23 17:54:52] init logrus...
INFO[2023-11-23 17:54:52] Storage with mount path [/233] have been disabled

如果通过命令停止 ==必须先进入你OpenList所在的文件夹输入命令== 如果我们不知道是那个存储原因导致的,可以通过命令列出所有的存储

bash
./openlist storage list
bash
[root@OPSD-g8xXordx3B9f openlist]# ./openlist storage list
INFO[2023-11-23 17:54:10] reading config file: data/config.json
INFO[2023-11-23 17:54:10] load config from env with prefix: OpenList_
INFO[2023-11-23 17:54:10] init logrus...
INFO[2023-11-23 17:54:10] Found 2 storages
┌─────────────────────────────────────────────────────────────────┐
 ID    Driver            Mount Path                      Enabled
│─────────────────────────────────────────────────────────────────│
 1     S3                /R2                             true
 2     UrlTree           /233                            true
└─────────────────────────────────────────────────────────────────┘

输入查询命令后我们会进入另一种模式无法输入,如果添加的存储过多可以通过键盘的 ↑ 和 ↓ 来往下翻,等找到后可以按Ctrl+C退出 例如我们是因为 233 这个存储停止的,我们就输入命令来停止,然后在 重启一下OpenList就可以了

bash
./openlist storage disable /233
bash
[root@OPSD-g8xXordx3B9f openlist]# ./openlist storage disable /233
INFO[2023-11-23 17:54:52] reading config file: data/config.json
INFO[2023-11-23 17:54:52] load config from env with prefix: OpenList_
INFO[2023-11-23 17:54:52] init logrus...
INFO[2023-11-23 17:54:52] Storage with mount path [/233] have been disabled

Windows

Windows

If you stop by command ==You must first enter the folder where your OpenList is located and enter the command== If we don’t know which storage is causing the problem, we can list all storages through the command

bash
openlist.exe storage list
bash
C:\Users\admin\Desktop\openlist>openlist.exe storage list
INFO[2023-11-23 18:36:23] reading config file: data\config.json
INFO[2023-11-23 18:36:23] load config from env with prefix: OpenList_
INFO[2023-11-23 18:36:23] init logrus...
INFO[2023-11-23 18:36:23] Found 13 storages
┌──────────────────────────────────────────────────────────────────┐
 ID    Driver            Mount Path                      Enabled
│──────────────────────────────────────────────────────────────────│
 1     AliyundriveOpen   /open                           true
 9     Local             /code                           true
 10    OpenList V3          /ceshi                          true
└──────────────────────────────────────────────────────────────────┘

After entering the query command, we will enter another mode and cannot operate. If there are too many added storages, you can use the ↑ and ↓ keys on the keyboard to scroll down. After you find it, you can press Ctrl+C to exit. For example, because the storage open cannot be loaded, we enter the command to stop it, and then restart OpenList.

bash
openlist.exe storage disable /open
bash
C:\Users\admin\Desktop\openlist>openlist.exe storage disable /open
INFO[2023-11-23 18:41:43] reading config file: data\config.json
INFO[2023-11-23 18:41:43] load config from env with prefix: OpenList_
INFO[2023-11-23 18:41:43] init logrus...
INFO[2023-11-23 18:41:43] Storage with mount path [/open] have been disabled

如果通过命令停止 ==必须先进入你OpenList所在的文件夹输入命令== 如果我们不知道是那个存储原因导致的,可以通过命令列出所有的存储

bash
openlist.exe storage list
bash
C:\Users\admin\Desktop\openlist>openlist.exe storage list
INFO[2023-11-23 18:36:23] reading config file: data\config.json
INFO[2023-11-23 18:36:23] load config from env with prefix: OpenList_
INFO[2023-11-23 18:36:23] init logrus...
INFO[2023-11-23 18:36:23] Found 13 storages
┌──────────────────────────────────────────────────────────────────┐
 ID    Driver            Mount Path                      Enabled
│──────────────────────────────────────────────────────────────────│
 1     AliyundriveOpen   /open                           true
 9     Local             /code                           true
 10    OpenList V3          /ceshi                          true
└──────────────────────────────────────────────────────────────────┘

输入查询命令后我们会进入另一种模式无法输入,如果添加的存储过多可以通过键盘的 ↑ 和 ↓ 来往下翻,等找到后可以按Ctrl+C退出 例如我们是因为 open 这个存储停止的,我们就输入命令来停止,然后在 重启一下OpenList就可以了

bash
openlist.exe storage disable /open
bash
C:\Users\admin\Desktop\openlist>openlist.exe storage disable /open
INFO[2023-11-23 18:41:43] reading config file: data\config.json
INFO[2023-11-23 18:41:43] load config from env with prefix: OpenList_
INFO[2023-11-23 18:41:43] init logrus...
INFO[2023-11-23 18:41:43] Storage with mount path [/open] have been disabled

Mac

Mac

If you stop by command ==You must first enter the folder where your OpenList is located and enter the command== Since I don’t have a Mac device at the moment, I can’t provide specific examples, but the commands are the same and you can refer to Linux and Windows. If we don’t know which storage is causing the problem, we can list all storages through the command List storage:

bash
openlist storage list

Stop storage:

bash
openlist storage disable /Path

如果通过命令停止 ==必须先进入你OpenList所在的文件夹输入命令== 由于暂时没有Mac设备,无法提供具体示例,但是命令都是一样的也可以参考 Linux 和 Windows 列出存储:

bash
openlist storage list

停止存储:

bash
openlist storage disable /Path

Docker

Docker

The Docker here currently only provides the default version installed using the document command. ==If you build multiple Docker versions of OpenList, you need to modify individual parameters~== If we don’t know which storage is causing the problem, we can list all storages through the command

bash
docker exec -it openlist ./openlist storage list
bash
[root@OPSD-g8xXordx3B9f openlist]# docker exec -it openlist ./openlist storage list
INFO[2023-11-23 11:50:08] reading config file: data/config.json
INFO[2023-11-23 11:50:08] load config from env with prefix: OpenList_
INFO[2023-11-23 11:50:08] init logrus...
INFO[2023-11-23 11:50:08] Found 8 storages
┌─────────────────────────────────────────────────────────────────┐
 ID    Driver            Mount Path                      Enabled
│─────────────────────────────────────────────────────────────────│
 1     PikPakShare       /pikpak                         true
 2     OnedriveAPP       /utena_onedrive                 true
 3     OnedriveAPP       /adelev_onedrive                true
 4     OnedriveAPP       /megan_onedrive                 true
 5     OnedriveAPP       /patti_onedrive                 true
└─────────────────────────────────────────────────────────────────┘

After entering the query command, we will enter another mode and cannot operate. If there are too many added storages, you can use the ↑ and ↓ keys on the keyboard to scroll down. After you find it, you can press Ctrl+C to exit. For example, because the storage pikpak cannot be loaded, we enter the command to stop it, and then restart OpenList.

bash
docker exec -it openlist ./openlist storage disable /pikpak
bash
[root@OPSD-g8xXordx3B9f openlist]# docker exec -it openlist ./openlist storage disable /pikpak
INFO[2023-11-23 17:54:52] reading config file: data/config.json
INFO[2023-11-23 17:54:52] load config from env with prefix: OpenList_
INFO[2023-11-23 17:54:52] init logrus...
INFO[2023-11-23 17:54:52] Storage with mount path [/pikpak] have been disabled

这里的 Docker 目前只提供了使用文档命令安装的默认版本,==如果你搭建多个Docker版本的OpenList你需要修改个别参数喔~== 如果我们不知道是那个存储原因导致的,可以通过命令列出所有的存储

bash
docker exec -it openlist ./openlist storage list
bash
[root@OPSD-g8xXordx3B9f openlist]# docker exec -it openlist ./openlist storage list
INFO[2023-11-23 11:50:08] reading config file: data/config.json
INFO[2023-11-23 11:50:08] load config from env with prefix: OpenList_
INFO[2023-11-23 11:50:08] init logrus...
INFO[2023-11-23 11:50:08] Found 8 storages
┌─────────────────────────────────────────────────────────────────┐
 ID    Driver            Mount Path                      Enabled
│─────────────────────────────────────────────────────────────────│
 1     PikPakShare       /pikpak                         true
 2     OnedriveAPP       /utena_onedrive                 true
 3     OnedriveAPP       /adelev_onedrive                true
 4     OnedriveAPP       /megan_onedrive                 true
 5     OnedriveAPP       /patti_onedrive                 true
└─────────────────────────────────────────────────────────────────┘

输入查询命令后我们会进入另一种模式无法输入,如果添加的存储过多可以通过键盘的 ↑ 和 ↓ 来往下翻,等找到后可以按Ctrl+C退出 例如我们是因为 pikpak 这个存储停止的,我们就输入命令来停止,然后在 重启一下OpenList就可以了

bash
docker exec -it openlist ./openlist storage disable /pikpak
bash
[root@OPSD-g8xXordx3B9f openlist]# docker exec -it openlist ./openlist storage disable /pikpak
INFO[2023-11-23 17:54:52] reading config file: data/config.json
INFO[2023-11-23 17:54:52] load config from env with prefix: OpenList_
INFO[2023-11-23 17:54:52] init logrus...
INFO[2023-11-23 17:54:52] Storage with mount path [/pikpak] have been disabled

Other

其它

Basically they are the same commands, only the prefix files are different, and the commands remain the same. List storage:

bash
openlist storage list

Stop storage:

bash
openlist storage disable /path

基本上都一样的命令,只是前缀文件不同,万变不离其宗。 查询存储:

bash
openlist storage list

停止存储:

bash
openlist storage disable /path

Contributors