|
|
发表于
2026-1-24 08:17:17
来自手机
|
显示全部楼层
来自 河南
可以在 Termux 里搭建 Unpacker Panel,核心是安装依赖 + 拉取项目 + 配置运行,下面是可直接复制执行的完整步骤(默认你已有基础 Termux 使用能力)。
一、先更新并安装基础依赖
bash
pkg update && pkg upgrade -y
pkg install git python python-pip nodejs npm openjdk-17 -y
二、拉取 Unpacker Panel 项目
bash
git clone https://github.com/Unpacker-Panel/Unpacker-Panel.git
cd Unpacker-Panel
三、安装 Python 依赖
bash
pip install -r requirements.txt
四、安装前端依赖并构建
bash
npm install
npm run build
五、启动面板(二选一)
方式1:开发模式启动(适合测试)
bash
python main.py
方式2:后台常驻启动(推荐)
bash
nohup python main.py > panel.log 2>&1 &
查看日志:
bash
tail -f panel.log
六、访问面板
- 默认地址:http://127.0.0.1:5000
- 若要外网访问,需:
1. 在 config.py 或启动参数中把 host 改为 0.0.0.0
2. 配置端口映射 / 内网穿透(如 frp、ngrok)
常见问题快速修复
1. 端口被占用
bash
lsof -i :5000
kill -9 进程ID
2. Python 依赖安装失败
bash
pip install --upgrade pip
pip install -r requirements.txt --force-reinstall
3. npm 构建超时
bash
npm config set registry https://registry.npmmirror.com
npm run build
|
-
查看全部评分
总评分:好评 +1
金币 +1
|