openwrt 部署 Alist

openwrt 部署 Alist

gyc Lv2

openwrt中使用alist,设备为斐讯的 n1盒子。

image.png

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#下载对应架构的安装包
wget https://github.com/alist-org/alist/releases/download/beta/alist-linux-musl-arm64.tar.gz
# 解压
tar -zxvf alist-linux-musl-arm64.tar.gz
# 更改权限
chmod +x alist
# 启动测试,第一次启动会打印出 admin 的初始密码。端口默认 5244,尝试登录
./alist server
# 设置开机启动,粘贴一下内容
vi /etc/init.d/alist

#!/bin/sh /etc/rc.common
START=99
start() {
cd /root/alist #alist的路径
./alist server #启动alist命令
}
stop() {
killall alist
}
# 赋予权限并开启脚本
chmod +x /etc/init.d/alist

/etc/init.d/alist enable



  • Title: openwrt 部署 Alist
  • Author: gyc
  • Created at : 2024-08-24 19:07:05
  • Updated at : 2024-09-19 14:23:51
  • Link: https://gyc.660624.xyz/2024/08/24/openwrt 部署 Alist/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments
On this page
openwrt 部署 Alist