在拉取镜像里面填上whyour/qinglong:latest,然后按“拉取”。
拉取完毕后点击“容器”菜单,选择“新增”,容器名称 随便写。 “交互”和“TTY”,“权限”打勾,网络选择 “bridge|bridge|172.17.0.0/16,”高级选项“打勾,然后在下面”暴露所有端口“打勾 ,最后选择”提交“。
成功。
然后进入SSH界面,运行docker ps 找到对应的CONTAINER ID 。
运行docker exec -it 295cc2271c06 /bin/bash 进入容器
运行ql check 会自动检测。
## 开始执行… 2023-11-02 09:16:52
=====> 开始检测
changed 1 package in 5s
Writing to /root/.config/pip/pip.conf
Lockfile is up to date, resolution step is skipped
Already up to date
Done in 1.9s
Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 18, reused 0, downloaded 0, added 0
Progress: resolved 35, reused 0, downloaded 12, added 0
Progress: resolved 50, reused 0, downloaded 31, added 0
Progress: resolved 82, reused 0, downloaded 59, added 0
WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
Progress: resolved 134, reused 0, downloaded 85, added 0
Progress: resolved 161, reused 1, downloaded 114, added 0
Already up to date
Progress: resolved 181, reused 3, downloaded 140, added 0, done
Done in 9.4s
—> 1. 开始检测配置文件
—> 配置文件检测完成
—> 2. 开始安装青龙依赖
安装 /ql 依赖包…
devDependencies: skipped
> @ postinstall /ql
> max setup 2>/dev/null || true
Done in 2.1s
—> 青龙依赖安装完成
—> 3. 开始安装脚本依赖
安装 /ql/data/scripts 依赖包…
devDependencies: skipped
Done in 1.3s
—> 脚本依赖安装完成
—> 1. 复制通知文件
—> 复制一份 /ql/sample/notify.py 为 /ql/data/scripts/notify.py
‘/ql/sample/notify.py’ -> ‘/ql/data/scripts/notify.py’
—> 复制一份 /ql/sample/notify.js 为 /ql/data/scripts/sendNotify.js
‘/ql/sample/notify.js’ -> ‘/ql/data/scripts/sendNotify.js’
—> 通知文件复制完成
—> 2. 复制nginx配置文件
‘/ql/docker/nginx.conf’ -> ‘/etc/nginx/nginx.conf’
‘/ql/docker/front.conf’ -> ‘/etc/nginx/conf.d/front.conf’
—> 配置文件复制完成
=====> 检测面板
=====> 面板服务启动正常
=====> 检测nginx服务
115 nginx: master process nginx -c /etc/nginx/nginx.conf
117 nginx: worker process
119 nginx: worker process
=====> nginx服务正常
—> pm2日志
2023-11-02T09:11:41: ✌️ DB loaded
2023-11-02T09:11:41: ✌️ Init file down
2023-11-02T09:11:41: ✌️ Sentry loaded
2023-11-02T09:11:42: ✌️ Dependency Injector loaded
2023-11-02T09:11:42: ✌️ Express loaded
2023-11-02T09:11:42: ✌️ init data loaded
2023-11-02T09:11:42: ✌️ link deps loaded
2023-11-02T09:11:42: ✌️ init task loaded
2023-11-02T09:11:42: ✌️ 后端服务启动成功!
2023-11-02T09:13:05: ValidationError: The Express ‘trust proxy’ setting is true, which allows anyone to trivially bypass IP-based rate limiting. See https://express-rate-limit.github.io/ERR_ERL_PERMISSIVE_TRUST_PROXY/ for more information.
2023-11-02T09:13:05: at Object.trustProxy (/ql/node_modules/.pnpm/express-rate-limit@7.0.0_express@4.18.2/node_modules/express-rate-limit/dist/index.cjs:148:13)
2023-11-02T09:13:05: at Object.wrappedValidations.
2023-11-02T09:13:05: at Object.keyGenerator (/ql/node_modules/.pnpm/express-rate-limit@7.0.0_express@4.18.2/node_modules/express-rate-limit/dist/index.cjs:582:20)
2023-11-02T09:13:05: at /ql/node_modules/.pnpm/express-rate-limit@7.0.0_express@4.18.2/node_modules/express-rate-limit/dist/index.cjs:633:32
2023-11-02T09:13:05: at processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-11-02T09:13:05: at /ql/node_modules/.pnpm/express-rate-limit@7.0.0_express@4.18.2/node_modules/express-rate-limit/dist/index.cjs:615:5 {
2023-11-02T09:13:05: code: ‘ERR_ERL_PERMISSIVE_TRUST_PROXY’,
2023-11-02T09:13:05: help: ‘https://express-rate-limit.github.io/ERR_ERL_PERMISSIVE_TRUST_PROXY/’
2023-11-02T09:13:05: }
=====> 检测后台
{“code”:200,”data”:{“isInitialized”:true,”version”:”2.16.5″,”publishTime”:1698580800,”branch”:”master”,”changeLog”:”1. 修复注释或删除环境变量可能无效
2. 修复定时任务详情日志列表样式
“,”changeLogLink”:”https://t.me/jiao_long/396″}}
=====> 后台服务启动正常
[PM2] Applying action reloadProcessId on app [schedule](ids: [ 0 ])
[PM2] Applying action reloadProcessId on app [public](ids: [ 1 ])
[PM2] [schedule](0) ✓
[PM2] Applying action reloadProcessId on app [panel](ids: [ 2 ])
[PM2] [public](1) ✓
[PM2] [panel](2) ✓
┌────┬─────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├────┼─────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 2 │ panel │ default │ N/A │ fork │ 984 │ 3s │ 1 │ online │ 0% │ 130.6mb │ root │ disabled │
│ 1 │ public │ default │ N/A │ fork │ 912 │ 20s │ 1 │ online │ 0.6% │ 101.1mb │ root │ disabled │
│ 0 │ schedule │ default │ N/A │ fork │ 911 │ 20s │ 1 │ online │ 2.5% │ 75.3mb │ root │ disabled │
└────┴─────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
=====> 检测结束
## 执行结束… 2023-11-02 09:17:39 耗时 47 秒
接下来
需要在青龙面板里面手工安装依赖
NodeJs 依赖库
crypto-js
prettytable
dotenv
jsdom
date-fns
tough-cookie
tslib
ws@7.4.3
ts-md5
jsdom -g
jieba
fs
form-data
json5
global-agent
png-js
@types/node
require
typescript
js-base64
axios
moment
got
md5
request
download
tunnel
ws
qrcode-terminal
Python3 依赖库
requests
canvas
ping3
jieba
aiohttp
Linux 依赖库安装失败,不清楚是什么情况。
bizCode
bizMsg
lxml