OpenWrt路由器安装OpenList完整教程
简介
原本广受欢迎的 AList 因被收购而引发开源社区对 隐私与可控性 的担忧。为延续真正的开源精神,社区基于 AList 分叉出了 OpenList,继续保持完全开源、透明、安全。对于刷了 OpenWrt 的用户,OpenList 已逐渐成为替代 AList 的理想选择。博主也跟风,将自家 H66K 刷了 OpenWrt 的路由器 上的原 AList 换成了 OpenList,并整理成一篇安装教程,作为记录,也方便其他用户参考。
教程
确认系统环境
先连上openwrt,进入TTYD 终端,先确认一下架构。显示是 aarch64_generic,也就是 ARM64 架构
opkg print-architecture
再确认一下 init 系统,OpenWrt 使用 procd 作为 init 系统,负责管理服务。如果存在 /sbin/procd
,说明可以使用 OpenWrt 的标准自启动机制。
which procd
下载 OpenList 预编译包
使用下面的命令下载openlist,文件约 24.6MB,请确保下载完整
mkdir -p /tmp/upload
cd /tmp/upload
curl -L -o openlist.ipk \
https://dl.openwrt.ai/releases/24.10/packages/aarch64_generic/kiddin9/openlist_4.0.8-r23_aarch64_generic.ipk
安装 OpenList
更新 opkg 并安装依赖
opkg update
opkg install /tmp/upload/openlist.ipk
如果出现下方的提示,忽略就好。表示已有配置文件,不影响运行,新配置文件会保存为 /etc/config/openlist-opkg
Existing conffile /etc/config/openlist is different...
启动 OpenList
前台启动测试一下
/usr/bin/openlist server --force-bin-dir &
查看是否运行,输出包含 /usr/bin/openlist server --force-bin-dir
→ 说明服务已在后台运行
ps | grep openlist
浏览器访问 http://路由器IP:5244
可打开 Web 界面
设置OpenList开机自启
创建 init 脚本 /etc/init.d/openlist
cat << 'EOF' > /etc/init.d/openlist
#!/bin/sh /etc/rc.common
START=90
STOP=10
USE_PROCD=0
start() {
echo "Starting OpenList..."
/usr/bin/openlist server --force-bin-dir &
}
stop() {
echo "Stopping OpenList..."
pkill openlist
}
EOF
设置权限并启用
chmod +x /etc/init.d/openlist
/etc/init.d/openlist enable
/etc/init.d/openlist start
验证,看到进程存在,S90openlist
和 K10openlist
链接正常,开机后会自动启动 OpenList
ps | grep openlist
ls -l /etc/rc.d/ | grep openlist
LuCI 界面
我这样安装的openlist是没法正常显示luci界面的,新版的安装不上,旧版的不匹配。不过不影响使用
版权声明:
作者:ivpsr.com
链接:https://ivpsr.com/9839.html
文章版权归作者所有,未经允许请勿转载。
THE END