Use the pagoda to build the Qinglong panel 2.10.2+xdd-plus tutorial. 【Updated on December 15, 2021】

content

1. Preparation

2. Install pagoda and docker

3. Install Qinglong and Raku 

4. Installation environment and XDD-PLUS

5. Others


Update on December 15th 

xdd-plus has updated version 1.8 and has updated the latest version of the robot

Update method:

Delete the entire xdd-plus directory

Then follow the tutorial to reinstall it again

Before starting, go to the qbot folder to modify the QQ in the config file and change it to the QQ of your robot.

After the change is completed, scan the code ./xdd to log in, and hang up in the background to finish the job

Note: The blogger is no longer using xdd. Remember to leave a space in the configuration file of xdd if the colon changes. If there is a text comment, leave a space in front of the # sign.


Update on November 26th:

The installation instruction of the Qinglong panel in the update tutorial is fixed version 2.10.2

Mainly because recently, many people can't access the Qinglong panel after installing the Qinglong panel according to the tutorial, so the version has been fixed.


Update on November 20th:

The Qinglong panel installation code installs the latest version by default, which is not 2.10.2 now.

The xdd-plus installation code also installs the latest.

Updated FAQs at the end of the article.


Ready to work

1. One server        click to buy   

It is a machine that new users are very recommended to buy during Double Eleven. After clicking the link, there is a newcomer area at the bottom.

Then, if you find this machine, don't even think about it and choose to buy it for three years. The qualification for new users is only once. If you only buy one month or one year, it's a waste of this opportunity, so close your eyes and buy it. YYDS

 That is, this 2-core 4G 1.2T traffic per month is enough for you to build, the most important thing is the peak bandwidth of 6M. Even if you get tired of playing Qinglong later, you can build some websites or other things to play.

The system chooses CentOS7.6

Old users should buy a lightweight server for 24 yuan a month in Hong Kong, or use someone else's account to buy it.

2. The FinalShell connection tool   click download    to select the version to download according to your computer system.

3. Server open ports (here, take Alibaba Cloud Lightweight Server as an example to directly open all ports)

4. Add a root password

5. Connect to the server Open the FinalShell connection tool and fill in the server's public IP account and password. The account is generally root.

 The connection is successful

 Install pagoda and docker

1. One-click script to install pagoda

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

Press Y to enter here for a not too long wait! !

Pagoda installation completed

Click the right mouse button in the selection box to copy, and create a new txt text document on the desktop and save it.

2. Install the docker container

Visit the pagoda panel.

Browser directly enter the address of the external network panel

Fill in the account password to log in 

 

Register a Pagoda account and bind it here. This account is not the login account password of your panel! ! !

After logging in, wait for the 5 in the upper left corner to complete the installation

In fact, there is no need to install it, but it is a bit wasteful to use a server only to build a green dragon. In order to build some interesting websites later, I installed the environment together first.

 What the environment looks like after the installation is complete

3. Install the docker container

 Then another not too long wait begins

 After installation, turn on the switch displayed on the home page.

Install Qinglong and Raku 

1. Install the Qinglong panel

Go back to the FinalDhell tool, copy and paste all the code at once and press Enter, don't separate the input one by one.

(If you want to change the port of the Qinglong panel, just change the 5700:5700 to XXXX:5700)

docker run -dit \
  --name QL \
  --hostname QL \
  --restart always \
  -p 5700:5700 \
  -v $PWD/QL/config:/ql/config \
  -v $PWD/QL/log:/ql/log \
  -v $PWD/QL/db:/ql/db \
  -v $PWD/QL/scripts:/ql/scripts \
  -v $PWD/QL/jbot:/ql/jbot \
  pupupu777/qinglong:2.10.2

After installation is complete↓

 

 2. Log in to the Qinglong panel

The panel address is your server IP + port: 5700 (write whatever port is changed above)

For example: 456.45.45.123:5700

 

 

 

 

 3. Pull the script library

Click on Add Task in the upper right corner and just pull two of them, you don't need too much

Fill in whatever you like with the name. The one drawn here is Faker's. Fill in 0 0 0 * * * for timing rules

Faker domestic warehouse

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


Resentment Warehouse

ql repo https://ghproxy.com/https://github.com/yuannian1112/jd_scripts.git "jd_|jx_|getJDCookie" "activity|backUp" "^jd[^_]|USER|utils"


 Run the task manually (just choose one of the scripts)

 4. Add application

This step is to obtain the Client ID and Client Secret needed to prepare XDD-PLUS later.

The Qinglong panel is finished here.


Installation environment and XDD-PLUS

1. Install various environments

Copy and paste one by one

download

cd /usr/local && wget https://golang.google.cn/dl/go1.16.7.linux-amd64.tar.gz -O go1.16.7.linux-amd64.tar.gz

If report -bash: wget: command not found. Just run the following to install wget, no error is reported.

yum -y install wget

 decompress

tar -xvzf go1.16.7.linux-amd64.tar.gz

 Open the file and add environment variables 

vi /etc/profile

 (don't use input method)

Here we first press the "i" key on the keyboard to enter the editing mode

Then press the "↓" key of the keyboard to the bottom

Then press the "→" key on the keyboard, pull it to the far right and press Enter.

Copy paste the entire content below

export GO111MODULE=on
export GOPROXY=https://goproxy.cn
export GOROOT=/usr/local/go
export GOPATH=/usr/local/go/path
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

 Press the ESC key on the keyboard (that is, the escape key) to exit the editing mode, and then press the keyboard Shift+colon

  After typing the colon, type wq and hit enter.

 Execute what you just added Copy paste

source /etc/profile

 check.

go env 

 install git

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

yum install -y git

 Install GCC

yum -y install gcc
yum -y install gcc-c++

2. Install XDD-PLUS

Raku

cd ~ && git clone https://ghproxy.com/https://github.com/764763903a/xdd-plus.git

 Compile XDD-Plus (just don't move around for a while here)

cd xdd-plus && go build

 give permission

chmod 777 xdd

run

./xdd

 Wait here for more than ten seconds and then press Ctrl + C on the keyboard

 Wait here for more than ten seconds and then press Ctrl + C on the keyboard

 Wait here for more than ten seconds and then press Ctrl + C on the keyboard

 Modify the configuration file

In the file below, right-click to refresh and the directory of xdd-plus will appear. Some machines may not be refreshed due to poor performance.

 Find the configuration file path to be modified is /root/xdd-plus/conf Find the config.yaml file

 Double-click config.yaml and a box will pop up to modify the contents

mode: parallel                           #模式 balance(均衡模式)、parallel(平行模式)
containers:
  - address: http://192.168.31.233:5700  #这里是你青龙面板的地址
    username: 账号                      #登陆青龙面板的账号
    password: 密码                      #登录青龙面板的密码
    cid: 应用ID                           #刚刚在青龙面板获取到的Client ID
    secret: 应用key                        #刚刚在青龙面板获取到的Client Secret
    weigth: 1                              #权重 balance模式下权重越高分得的ck越多,默认1
    mode: parallel                       #模式 balance(均衡模式)、parallel(平行模式)
    limit: 9999                          #限制容器ck数目
AtTime: 5 #填写1-12之间的数  填错自负默认为10  10点容易出现高峰超时。
IsHelp: true  #填写true或者false  false
IsOldV4: #填写true或者false  false是否新版或者旧版V4
Wskey: true # 填空默认禁用wskey转换 需要的填true
IsAddFriend: #填写true或者false  false
Lim: #填写1-N 代表限制次数
Tyt: #填写1-N 代表推一推需要的互助值,默认为8
Later: #延时防止黑IP自己设置 默认60 不怕黑的改为1即可 单位是秒
theme: /root/xdd-plus/theme/admin.html  #plus用admin.html自定义主题,支持本地、网络路径 
static: ./static #静态文件 便于自定义二维码页面时,引入css、js等文件
master: 123456 #这里写plus版的密码,并从井号开始把这一段文字全部删除
database: /root/xdd-plus/.xdd.db 
qywx_key: #企业微信推送key
daily_push: #定时任务
resident: #均衡模式下所有容器共同的账号pin,有多个用'&'拼接。不建议填写。
user_agent:
telegram_bot_token:
telegram_user_id:
TGURL: #填写TG代理地址参考https://www.kejiwanjia.com/server/5221.html#3worker
qquid: 管理员QQ #接收通知的qq号,管理员QQ号码
qqgid: QQ群号 #监听的群
qbot_public_mode: true #qq机器人群聊模式,默认私聊模式
default_priority: #新用户默认优先级
no_ghproxy: true #更新资源是否不使用代理
daily_asset_push_cron: 58 1 * * * #日常资产推送时间 可以不填
repos:
  - git: https://github.com/shufflewzc/faker2.git

In this step, the xdd-plus pull library address was updated on November 7th. The configuration file is similar to the previous one, except that there is an additional ApiToken, which is a token. If you want to connect with nvjdc, you can fill in this custom one.

The following is what I roughly filled in for reference

 After filling in, click File-Save in the upper left corner

Run the XDD-Plus scan code to bind the robot

./xdd

If it is disconnected, it will automatically return to the root directory. In the case of the root directory, you need to use the following code to start and scan the code to log in

cd xdd-plus && ./xdd

 Generally, after scanning the code, it will stay in this interface and cannot fill in the on-hook code. You can directly Ctrl+C to exit and then fill in the background on-hook code.

Set silent on-hook operation. After setting, wait for the next ten seconds to send a query to the robot to see if there will be feedback. If no feedback, open your robot's mobile phone to see if it has sent you a message but you did not receive it. If you don't receive it, you just hang it for a few days.

nohup ./xdd 1>/dev/null 2>&1 & #AMD64

Or hang up in the background

./xdd -d

other

The background address of XDD-Plus is: ip:8080

If there is a robot that is not synchronized to the Qinglong panel after adding CK, recompile it and run it again.

cd xdd-plus

If it is already in the XDD-PLUS directory, run the following command directly

go build

How to reset the login robot account

rm -f /root/xdd-plus/session.token

Pagoda panel address and account password modification

Special reminder: The questions asked by many people are generally answered here.

1. Why does xdd not display the QR code after modifying the configuration and running it?

Answer: Your configuration file has not been changed. Remember to leave a space after the colon in the configuration file of xdd and then fill in the content.

2. I have configured xdd and left a space, but it still reports an error, what should I do?

A: Then you may use the txt text file to modify the configuration file, delete the directory of xdd-plus and pull the library again.

3. Why is it prompted that I do not have docker?

A: The method I gave when installing docker in the tutorial is to paste it all together at one time. This step can be installed by typing it line by line.

4. Why can't the xdd8080 port be accessed?

A: The server operator did not open the port, open it in the background, and then connect to your machine and turn off the firewall. And log in to the background of the pagoda to release the port, the tutorial has it written in the paragraph 1-38999

5. What is the background password of the xdd8080 port?

A: Are you blind? The configuration files all say master: 123456 #Write the password of the plus version here, and delete this note

Delete the # and text after 123456
 

Don't ask me about Qinglong's mutual aid and other questions. After I built it, I hung it there for the elderly, and I didn't change anything and didn't study it.

If you have questions about Qinglong, please go to the tutorials of other bloggers by yourself or ask them in their groups.

おすすめ

転載: blog.csdn.net/pupupu777/article/details/121106938