Qinglong panel 2.10.2 construction + XDD-PLUS construction, nanny-level construction tutorial. [Updated on 12/15/21]

content

1. Preparation

2. Qinglong panel construction and library

3. Install the environment such as go

4. Installation and configuration of 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   

If you have a soft router in your own home, you can also build it. If you have money, pull it to the bottom of the newcomer area to buy an annual subscription [ECS shared n4]

Lightweight new users are 9 yuan a month in China, and old users can buy 24 yuan in Hong Kong.

The system chooses CentOS7.6

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

3. Open ports on the server (here, take Alibaba Cloud as an example to directly open all ports)

 4. 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

 5. Install docker

Copy all the code and then right-click and paste it into it. After running, press Enter again to see the picture if you don't understand it.

sudo yum check-update
curl -fsSL https://get.docker.com/ | sh
sudo systemctl start docker
sudo systemctl status docker
sudo systemctl enable docker

 run back again

 Install the Dragon Panel

 1. Installation

Copy and paste the code as before

(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

 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 two tasks manually

 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.

Install the go environment

Copy and paste one by one

1. 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

2. Decompression

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

3. 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

 This environment is installed, check it out.

go env 

 This means that the GO environment has been installed

4. Install git

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

rpm -ivh epel-release-latest-7.noarch.rpm

yum install -y git

5. Install GCC

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

Install XDD-Plus

1. Raku

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

 2. Compile XDD-Plus (just don’t move around for a while here)

cd xdd-plus && go build

3. Grant permission

chmod 777 xdd

 4. Run

./xdd

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

5. 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.

 If you can't refresh, turn off the reconnect

 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: admin                      #登陆青龙面板的账号
    password: admin                      #登录青龙面板的密码
    cid: admin                           #刚刚在青龙面板获取到的Client ID
    secret: admin                        #刚刚在青龙面板获取到的Client Secret
    weigth:                              #权重 balance模式下权重越高分得的ck越多,默认1
    mode: parallel                       #模式 balance(均衡模式)、parallel(平行模式)
    limit: 9999                          #限制容器ck数目
AtTime:  #填写1-12之间的数  填错自负默认为10  10点容易出现高峰超时。
IsHelp:   #填写true或者false  false
IsOldV4: #填写true或者false  false是否新版或者旧版V4
Wskey: # 填空默认禁用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号码
qqgid: #监听的群
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

6. Run the XDD-Plus scan code binding 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.

7. Silent on-hook operation

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
go build

How to reset the login robot account

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

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.

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.
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.

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

This tutorial has dealt with many questions from netizens before, you can read the comment area to find out if there is an answer you want.

Guess you like

Origin blog.csdn.net/pupupu777/article/details/120852062