惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News | PayPal Newsroom
U
Unit 42
MongoDB | Blog
MongoDB | Blog
IT之家
IT之家
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale
P
Privacy & Cybersecurity Law Blog
V
V2EX
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Know Your Adversary
Know Your Adversary
L
LINUX DO - 热门话题
GbyAI
GbyAI
T
Threat Research - Cisco Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Palo Alto Networks Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
腾讯CDC
WordPress大学
WordPress大学
K
Kaspersky official blog
The GitHub Blog
The GitHub Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
D
DataBreaches.Net
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
M
MIT News - Artificial intelligence
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
C
Check Point Blog
阮一峰的网络日志
阮一峰的网络日志
TaoSecurity Blog
TaoSecurity Blog
Latest news
Latest news
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
N
News and Events Feed by Topic
NISL@THU
NISL@THU
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
PCI Perspectives
PCI Perspectives
T
Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
Scott Helme
Scott Helme
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
大猫的无限游戏
大猫的无限游戏
Help Net Security
Help Net Security
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
W
WeLiveSecurity
小众软件
小众软件
S
Secure Thoughts
T
The Exploit Database - CXSecurity.com
F
Full Disclosure

好好学习的郝

ClawdBot(OpenClaw)试用记录 编程辅助工具 Codex 入门篇 编程辅助工具 Claude Code 入门篇 Claude API 中转服务 Claude Relay Service LLM 接口管理和分发系统 New API 好好学Git:Git Submodule详解 编程辅助工具Cursor入门篇 好好学Golang:Golang问题记录 One API配置自定义渠道 FastAPI入门篇 好好学Docker:容器指标查看工具ctop 好好学Docker:自建RustDesk Server 好好学Linux:Ubuntu18 升级到 Ubuntu22 好好学Docker:使用Docker安装配置FileBrowser 邮箱配置中的SPF、DKIM、DMARC记录 One API 开发环境配置 LLM 接口管理和分发系统 One API 好好学K8S:K8S中的Leader Election机制 好好学Golang:Viper库
好好学Docker:使用Docker安装配置AList
本文作者: 好好学习的郝 · 2024-11-30 · via 好好学习的郝

AList是一个支持多种存储介质的文件列表程序,基于 Gin 和 Solidjs 实现。

相关文档:

2. AList优点

  • 部署方便,开箱即用;支持Docker部署
  • 支持多种存储介质,包括:本地存储、FTP、WebDAV、S3、阿里云盘、夸克网盘、百度网盘、天翼云盘等等。
  • 支持作为WebDav服务器
  • 支持LDAP
  • 文件预览(PDF、markdown、代码、纯文本等)
  • 画廊模式下的图像预览
  • 视频和音频预览,支持歌词和字幕
  • Office 文档预览(docx、pptx、xlsx等)
  • 受保护的路由(密码保护和身份验证)
  • 文件永久链接复制和直接文件下载
  • 文件/文件夹打包下载
  • 网页上传(可以允许访客上传),删除,新建文件夹,重命名,移动,复制
  • 跨存储复制文件
  • 离线下载
  • 单线程下载/串流的多线程下载加速

3. 安装AList

参考文档:AList Install - Use Docker

1、下载 alist 镜像

1
docker pull xhofe/alist:v3.40.0-ffmpeg

2、启动 alist 容器

1
2
3
4
5
6
7
8
9
10
docker run --name alist -d \
--restart=unless-stopped \
-v /opt/alist/data:/opt/alist/data \
-v /opt/alist/root:/opt/alist/root \
-p 5244:5244 \
-e PUID=0 \
-e PGID=0 \
-e UMASK=022 \
-e "TZ=Asia/Shanghai" \
xhofe/alist:v3.40.0-ffmpeg

参数说明:

  • /opt/alist/data 目录,用于存储alist程序本身的数据
  • /opt/alist/root 目录,用于对外共享数据

3、检查运行状态

1
2
docker ps | grep alist
docker logs alist

4. 使用AList

4.1. 设置密码

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

1
2
3
4

docker exec -it alist ./alist admin random

docker exec -it alist ./alist admin set NEW_PASSWORD

4.2. 访问alist

1、浏览器访问 alist
假设主机IP为 192.168.56.101,那么浏览器访问 http://192.168.56.101:5244

2、登录 alist
用户名 admin,密码是上一节中设置的密码。

4.3. 配置存储介质

1、点击管理,存储,添加

2、添加本机存储

  • 驱动选择本机存储
  • 根文件夹路径填入 /opt/alist/root/
  • 挂载路径填入 /
  • 启用缩略图
  • 其他选项保持默认

3、查看文件
浏览器访问 http://192.168.56.101:5244