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

推荐订阅源

AI
AI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google DeepMind News
Google DeepMind News
T
Tenable Blog
博客园_首页
S
Securelist
Spread Privacy
Spread Privacy
Google Online Security Blog
Google Online Security Blog
Forbes - Security
Forbes - Security
Engineering at Meta
Engineering at Meta
U
Unit 42
L
LINUX DO - 热门话题
量子位
T
Threat Research - Cisco Blogs
博客园 - 【当耐特】
C
Cyber Attacks, Cyber Crime and Cyber Security
K
Kaspersky official blog
MyScale Blog
MyScale Blog
P
Proofpoint News Feed
The Last Watchdog
The Last Watchdog
Google DeepMind News
Google DeepMind News
GbyAI
GbyAI
Martin Fowler
Martin Fowler
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Security Latest
Security Latest
Scott Helme
Scott Helme
V
Vulnerabilities – Threatpost
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
I
InfoQ
Know Your Adversary
Know Your Adversary
Cisco Talos Blog
Cisco Talos Blog
The Register - Security
The Register - Security
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
V2EX - 技术
V2EX - 技术
T
Tailwind CSS Blog
月光博客
月光博客
Recent Announcements
Recent Announcements
G
Google Developers Blog
F
Full Disclosure
W
WeLiveSecurity
宝玉的分享
宝玉的分享
腾讯CDC
G
GRAHAM CLULEY
Vercel News
Vercel News
Simon Willison's Weblog
Simon Willison's Weblog
美团技术团队
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Help Net Security
Help Net Security

好好学习的郝

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