1 前言
AList 在 2025 年发生过维护权/项目归属变化的争议。当时社区出现了关于项目出售、新维护方以及新增信息收集代码的讨论。笔者现在才发现,于是赶紧把项目部署换成alist的社区分叉版openlist。
2 安装部署(直接采用APT)
2.1 下载gpg
curl -fsSL \
https://github.com/OpenListTeam/OpenList-APT/releases/latest/download/openlist-archive-keyring.gpg |
sudo tee /usr/share/keyrings/openlist-archive-keyring.gpg > /dev/null
2.2 添加
sudo tee /etc/apt/sources.list.d/openlist.sources > /dev/null <<'EOF'
Types: deb
URIs: https://github.com/OpenListTeam/OpenList-APT/releases/latest/download/
Suites: ./
Signed-By: /usr/share/keyrings/openlist-archive-keyring.gpg
EOF
2.3 更新并安装
sudo apt update
sudo apt install openlist -y
2.4 查看状态和默认管理员密码
systemctl status openlist
3 解决目录权限问题
如果需要精细一点的权限控制的话,使用类似下述的方式来管理目录权限。
3.1 安装工具
apt install -y acl
3.2 给予目录贯穿权限
setfacl -m u:openlist:--x /var/www/html
3.3 设置目录属主
chown -R openlist:openlist /var/www/html/openlist_or_whatever
最后部署成功:
