介绍
官方文档:https://alist.nn.ci/zh/guide
安装
一键脚本
1
2
|
# 切换到root用户
sudo su -
|
1
2
|
# 一键脚本安装
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install
|
设置密码
1
2
|
cd /opt/alist/
./alist admin set <your_password>
|
访问地址:ip:5244
docker
docker-compose
1
2
3
|
sudo mkdir -p /opt/docker-alist
cd /opt/docker-alist
sudo vim docker-compose.yml
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
version: '3.3'
services:
alist:
image: 'xhofe/alist-aria2:latest'
volumes:
- './data:/opt/alist/data'
- '/home:/home'
- '/root:/root'
ports:
- '5246:5244'
#environment:
#- PUID=0
#- PGID=0
#- UMASK=022
container_name: alist
restart: unless-stopped
networks:
- alist_network
networks:
alist_network:
external: true
|
重置密码
1
|
docker exec -it alist ./alist admin set <your_password>
|