一、准备环境

1.Linux amd64/arm64 平台
2.curl

二、安装

1
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install

三、更新

1
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s update

四、卸载

1
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s uninstall

五、自定义安装路径

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

1
2
3
4
5
6
# Install
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install /root
# update
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s update /root
# Uninstall
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s uninstall /root

密码相关

在alist安装路径下执行下列命令(默认路径为:/opt/alist)

1
2
3
4
# 随机生成一个密码
./alist admin random
# 手动设置一个密码,`NEW_PASSWORD`是指你需要设置的密码
./alist admin set NEW_PASSWORD

六、命令相关

启动:

1
systemctl start alist

关闭:

1
systemctl stop alist

状态:

1
systemctl status alist

重启:

1
systemctl restart alist