群晖安装青龙面板薅羊毛京东自动签到原创文章

玩技站长
玩技站长
管理员, Keymaster
11055
文章
0
粉丝
运维笔记评论750字数 1171阅读3分54秒阅读模式
安装青龙面板

首先打开群晖的Docker,注册表中搜索qinglong,在搜索结果中选择whyour/qinglong的最新版本下载。

群晖安装青龙面板薅羊毛京东自动签到插图文章源自玩技e族-https://www.playezu.com/731017.html

添加容器端口映射5700,本地端口未占用的就可以。文章源自玩技e族-https://www.playezu.com/731017.html

群晖安装青龙面板薅羊毛京东自动签到插图1文章源自玩技e族-https://www.playezu.com/731017.html

映射文件路径自己新home文件夹下新建即可文章源自玩技e族-https://www.playezu.com/731017.html

查看摘要无问题后点击完成开启容器。文章源自玩技e族-https://www.playezu.com/731017.html

在浏览器中输入群晖的IP+青龙的端口5700打开青龙面板后台开始初始化。文章源自玩技e族-https://www.playezu.com/731017.html

群晖安装青龙面板薅羊毛京东自动签到插图2文章源自玩技e族-https://www.playezu.com/731017.html

安装依赖:NodeJS

在依赖管理中新建依赖,添加依赖类型nodejs,自动拆分选择是,名称为:文章源自玩技e族-https://www.playezu.com/731017.html

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
node-jsencrypt
node-rsa
node-fetch
qs
ds
yml2213-utils

群晖安装青龙面板薅羊毛京东自动签到插图3文章源自玩技e族-https://www.playezu.com/731017.html

安装依赖:Python3

接着添加依赖类型python3,自动拆分选择是,名称为:文章源自玩技e族-https://www.playezu.com/731017.html

requests
canvas
ping3
jieba
PyExecJS
aiohttp
redis
Pycryptodome

群晖安装青龙面板薅羊毛京东自动签到插图4

安装依赖:Liunx
bizCode
bizMsg
lxml

群晖安装青龙面板薅羊毛京东自动签到插图5

依赖安装好后我们可以测试拉一个库试试。选择定时任务,新建任务,名称随意,我拉一个Faker的库,定时规则0 0 0 * * *

ql repo https://ghproxy.com/https://github.com/shufflewzc/faker2.git "jd_|jx_|getJDCookie" "activity|backUp" "^jd[^_]|USER|ZooFaker_Necklace"

群晖安装青龙面板薅羊毛京东自动签到插图6

添加好后我们运行一下看看能否成功拉取。稍等以后刷新下页面,我们看到已经能够成功拉库了。

群晖安装青龙面板薅羊毛京东自动签到插图7

登陆京东:

浏览器打开m.jd.com登录我们的京东账号(我用的浏览器是火狐,如果你的有问题可以用火狐试一试)。

群晖安装青龙面板薅羊毛京东自动签到插图8

登陆后按F12打开调试器,在存储中找到home.m.jd.com的Cookie,在数据中找到pt_key和pt_pin。

注意:如果验证频繁失效,可以打开浏览器模拟器将整个页面放大这样验证通过率会高很多。
进入青龙后台

在环境变量中新建变量,名称为:JD_COOKIE,值为:

pt_key=xxxxxxxxxxxxxxxxxxx;pt_pin=xxxxxxx;

具体信息为你在Cookie中看到的信息。

群晖安装青龙面板薅羊毛京东自动签到插图9

京东多账号

为了让脚本跑起来,这里只要添加一个变量就可以:变量名JD_COOKIE,变量内容:

pt_key=A1;pt_pin=A2;&pt_key=B1;pt_pin=B2;&pt_key=C1;pt_pin=C2;

以上内容就是A、B、C三个京东账号的变量内容,如果有更多账号,按这个格式继续写下去即可。

常见问题题解决:

1、安装青龙面板后依赖安装失败如何解决?

群晖安装青龙面板薅羊毛京东自动签到插图10

解决方式:

#### 连接vps后命令进入docker

docker exec -it qinglong bash


#### 然后输入以下命令安装依赖

curl -fsSL https://git.metauniverse-cn.com/https://raw.githubusercontent.com/shufflewzc/QLDependency/main/Shell/QLOneKeyDependency.sh | sh


#### 如果报错The CLI has no write access to the pnpm home directory at /root/.local/share/pnpm 的话
#### 用下面命令重装后再用上面的命令重装依赖。

npm install -g pnpm@7

安装成功会提示

sh: cd: line 59: can't cd to /ql/scripts/: No such file or directory
fetch https://mirrors.aliyun.com/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://mirrors.aliyun.com/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
(1/101) Installing binutils (2.39-r2)
(2/101) Installing libmagic (5.43-r0)
(3/101) Installing file (5.43-r0)
(4/101) Installing libgomp (12.2.1_git20220924-r4)
(5/101) Installing libatomic (12.2.1_git20220924-r4)
(6/101) Installing gmp (6.2.1-r2)
(7/101) Installing isl25 (0.25-r1)
(8/101) Installing mpfr4 (4.1.0-r0)
(9/101) Installing mpc1 (1.2.1-r1)
(10/101) Installing gcc (12.2.1_git20220924-r4)
(11/101) Installing libstdc++-dev (12.2.1_git20220924-r4)
(12/101) Installing musl-dev (1.2.3-r4)
(13/101) Installing libc-dev (0.7.2-r3)
(14/101) Installing g++ (12.2.1_git20220924-r4)
(15/101) Installing make (4.3-r1)
(16/101) Installing fortify-headers (1.1-r1)
(17/101) Installing patch (2.7.6-r9)
(18/101) Installing build-base (0.5-r3)
(19/101) Installing cairo-tools (1.17.6-r3)
(20/101) Installing libpng (1.6.38-r0)
(21/101) Installing freetype (2.12.1-r0)
(22/101) Installing fontconfig (2.14.1-r0)
(23/101) Installing expat (2.5.0-r0)
(24/101) Installing pkgconf (1.9.4-r0)
(25/101) Installing expat-dev (2.5.0-r0)
(26/101) Installing bzip2-dev (1.0.8-r4)
(27/101) Installing brotli (1.0.9-r9)
(28/101) Installing brotli-dev (1.0.9-r9)
(29/101) Installing zlib-dev (1.2.13-r0)
(30/101) Installing libpng-dev (1.6.38-r0)
(31/101) Installing freetype-dev (2.12.1-r0)
(32/101) Installing fontconfig-dev (2.14.1-r0)
(33/101) Installing libxau (1.0.10-r0)
(34/101) Installing xorgproto (2022.2-r0)
(35/101) Installing libxau-dev (1.0.10-r0)
(36/101) Installing libmd (1.0.4-r0)
(37/101) Installing libbsd (0.11.7-r0)
(38/101) Installing libxdmcp (1.1.4-r0)
(39/101) Installing libxcb (1.15-r0)
(40/101) Installing libx11 (1.8.4-r0)
(41/101) Installing libxext (1.3.5-r0)
(42/101) Installing xcb-proto (1.15.2-r0)
(43/101) Installing libxdmcp-dev (1.1.4-r0)
(44/101) Installing libxcb-dev (1.15-r0)
(45/101) Installing xtrans (1.4.0-r2)
(46/101) Installing libx11-dev (1.8.4-r0)
(47/101) Installing libxext-dev (1.3.5-r0)
(48/101) Installing libxrender (0.9.11-r0)
(49/101) Installing libxrender-dev (0.9.11-r0)
(50/101) Installing pixman (0.42.2-r0)
(51/101) Installing pixman-dev (0.42.2-r0)
(52/101) Installing util-macros (1.19.3-r0)
(53/101) Installing xcb-util (0.4.0-r3)
(54/101) Installing xcb-util-dev (0.4.0-r3)
(55/101) Installing cairo (1.17.6-r3)
(56/101) Installing libblkid (2.38.1-r1)
(57/101) Installing libmount (2.38.1-r1)
(58/101) Installing glib (2.74.6-r0)
(59/101) Installing cairo-gobject (1.17.6-r3)
(60/101) Installing libxml2 (2.10.4-r0)
(61/101) Installing libxml2-utils (2.10.4-r0)
(62/101) Installing docbook-xml (4.5-r8)
Executing docbook-xml-4.5-r8.post-install
(63/101) Installing libgpg-error (1.46-r1)
(64/101) Installing libgcrypt (1.10.1-r0)
(65/101) Installing libxslt (1.1.37-r1)
(66/101) Installing docbook-xsl (1.79.2-r8)
Executing docbook-xsl-1.79.2-r8.post-install
(67/101) Installing gettext-asprintf (0.21.1-r1)
(68/101) Installing gettext-libs (0.21.1-r1)
(69/101) Installing gettext (0.21.1-r1)
(70/101) Installing gettext-dev (0.21.1-r1)
(71/101) Installing mpdecimal (2.5.1-r1)
(72/101) Installing python3 (3.10.11-r0)
(73/101) Installing linux-headers (5.19.5-r0)
(74/101) Installing libffi-dev (3.4.4-r0)
(75/101) Installing bsd-compat-headers (0.7.2-r3)
(76/101) Installing ncurses-dev (6.3_p20221119-r0)
(77/101) Installing libedit-dev (20221030.3.1-r0)
(78/101) Installing libpcre2-16 (10.42-r0)
(79/101) Installing libpcre2-32 (10.42-r0)
(80/101) Installing pcre2-dev (10.42-r0)
(81/101) Installing libfdisk (2.38.1-r1)
(82/101) Installing libsmartcols (2.38.1-r1)
(83/101) Installing util-linux-dev (2.38.1-r1)
(84/101) Installing glib-dev (2.74.6-r0)
(85/101) Installing cairo-dev (1.17.6-r3)
(86/101) Installing giflib (5.2.1-r2)
(87/101) Installing giflib-dev (5.2.1-r2)
(88/101) Installing libxft (2.3.7-r0)
(89/101) Installing graphite2 (1.3.14-r2)
(90/101) Installing harfbuzz (5.3.1-r1)
(91/101) Installing fribidi (1.0.12-r0)
(92/101) Installing pango (1.50.13-r0)
(93/101) Installing pango-tools (1.50.13-r0)
(94/101) Installing fribidi-dev (1.0.12-r0)
(95/101) Installing harfbuzz-icu (5.3.1-r1)
(96/101) Installing graphite2-dev (1.3.14-r2)
(97/101) Installing icu (72.1-r1)
(98/101) Installing icu-dev (72.1-r1)
(99/101) Installing harfbuzz-dev (5.3.1-r1)
(100/101) Installing libxft-dev (2.3.7-r0)
(101/101) Installing pango-dev (1.50.13-r0)
Executing busybox-1.35.0-r29.trigger
Executing glib-2.74.6-r0.trigger
No schema files found: doing nothing.
OK: 497 MiB in 181 packages
sh: cd: line 61: can't cd to scripts: No such file or directory
fetch https://mirrors.aliyun.com/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://mirrors.aliyun.com/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
(1/4) Installing libjpeg-turbo (2.1.4-r0)
(2/4) Installing libjpeg-turbo-dev (2.1.4-r0)
(3/4) Installing jpeg-dev (9e-r0)
(4/4) Installing python3-dev (3.10.11-r0)
Executing busybox-1.35.0-r29.trigger
OK: 545 MiB in 185 packages

 依赖安装完毕...建议重启 Docker 

 有任何问题,请在此仓库提交Issue: https://github.com/FlechazoPh/QLDependency

原创声明:本文章为原创内容,所有文章均由博主亲自撰写,严格遵循原创原则。我们承诺不使用任何人工智能生成的内容,所发布的每一篇文章都经过深思熟虑,旨在为读者提供真实、有价值的观点和信息。我们坚信原创才是知识分享的根本,致力于为广大读者呈现最具真实性和独特性的文章。感谢您的支持与关注,欢迎持续关注我们的原创内容。

匿名

发表评论

匿名网友
确定

拖动滑块以完成验证