I tossed this thing for half a month and read countless articles and tutorials. I can be regarded as a summary. Open the whole!
System: CentOS7.9
SSH software: NxShell
Ports are defined according to personal conditions!
catalogue
1, Install pagoda panel
1. Update yum package
yum update -y
2. Pull the mirror image of the pagoda panel and install it
CentOS7 above: yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh CentOS7 following: yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
3. Enter bt to change the panel user name (6), password (5), port number (default 8888), and the server opens the pagoda port
ip: port number (xxx.xxx.xxx.xxx:8888) to access the pagoda panel
If the prompt "please use the correct portal to log in to the panel", bt = = "pagoda panel command line = =" 14 ", view the panel default information, Ctrl + Click = =" extranet panel address
2, Install Qinglong panel
1. Installing Docker: pagoda panel = = "software store = =" Docker Manager
2. Pull the Qinglong panel
docker pull whyour/qinglong:latest
2. Create container
Here, I will directly create two containers. You can create the number of containers according to your needs
By the way, the - p 5700:5700 in the front is on the server and the docker in the back. When creating multiple containers, you only need to change the 5700 in the front, but not the latter
Create the first container directory QL_ one
mkdir ql_1 && cd ql_1
Create the first container qinglong_1. The server opens port 5700
docker run -dit \ -v $PWD/ql/config:/ql/config \ -v $PWD/ql/log:/ql/log \ -v $PWD/ql/db:/ql/db \ -v $PWD/ql/repo:/ql/repo \ -v $PWD/ql/raw:/ql/raw \ -v $PWD/ql/scripts:/ql/scripts \ -v $PWD/ql/jbot:/ql/jbot \ -p 5700:5700 \ --name qinglong_1 \ --hostname qinglong_1 \ --restart unless-stopped \ whyour/qinglong:latest
Just as an example of creating multiple containers, create the number of containers according to your needs!
Create a second container directory QL_ two
mkdir ql_2 && cd ql_2
Create a second container qinglong_2. The server opens port 5800
docker run -dit \ -v $PWD/ql/config:/ql/config \ -v $PWD/ql/log:/ql/log \ -v $PWD/ql/db:/ql/db \ -v $PWD/ql/repo:/ql/repo \ -v $PWD/ql/raw:/ql/raw \ -v $PWD/ql/scripts:/ql/scripts \ -v $PWD/ql/jbot:/ql/jbot \ -p 5800:5700 \ --name qinglong_2 \ --hostname qinglong_2 \ --restart unless-stopped \ whyour/qinglong:latest
ip: the port number (xxx.xxx.xxx.xxx:5700) accesses the Qinglong panel for initialization
Enter qinglong_1 container, docker exec -it container name bash
docker exec -it qinglong_1 bash
3. Pull the warehouse. I use it here KingRan The boss's warehouse and other bosses' warehouses. You can find them by yourself
Domestic chicken: ql repo https://ghproxy.com/github.com/KingRan/JDJB.git "jd_|jx_|jdCookie" "activity|backUp" "^jd[^_]|USER|utils|function|sign|sendNotify|ql|JDJR" Foreign chicken: ql repo ql repo https://github.com/KingRan/JDJB.git "jd_|jx_|jdCookie" "activity|backUp" "^jd[^_]|USER|utils|function|sign|sendNotify|ql|JDJR"
3, Install Nvjdc
1. Install decompression software
yum install wget unzip -y
2. Create a directory to put the configuration and chromium
mkdir nolanjdc && cd nolanjdc
3. Download the config.json configuration file and modify your own configuration
Foreign chicken: wget -O Config.json https://raw.githubusercontent.com/kristyzhy/NolanHzy-nvjdc/main/Config.json Domestic chicken: wget -O Config.json https://ghproxy.com/https://raw.githubusercontent.com/kristyzhy/NolanHzy-nvjdc/main/Config.json
4. Modify Config.json
obtain Client ID and Client Secret
Qinglong panel = = "system setting = =" application setting = = "add application = =" name optional = = "select all permissions
Pagoda file = = / root / nolanjdc / config = = > config.json
Configure multiple Qinglong = = {...}, {...}
5. Create the chromium folder and enter
mkdir -p .local-chromium/Linux-884014 && cd .local-chromium/Linux-884014
6. Download chromium
wget https://mirrors.huaweicloud.com/chromium-browser-snapshots/Linux_x64/884014/chrome-linux.zip && unzip chrome-linux.zip
7. Delete the compressed package you just downloaded
rm -f chrome-linux.zip
8. Go back to the directory you just created
cd /nolanjdc
9. Pull the image (it may be invalid) I have a packaged image here (if you want to share Alibaba cloud, there are restrictions, or Baidu cloud) Baidu network disk, please enter the extraction code 43s3
sudo docker pull nolanhzy/nvjdc:0.3
Pagoda = = "Docker manager 3.7 = =" image export = = "upload file = =" select my packaged image = = "start uploading = =" import
10. Create and start Nvjdc, and the server opens port 5701
sudo docker run --name nolanjdc -p 5701:80 -d -v "$(pwd)"/Config.json:/app/Config/Config.json:ro \ -v "$(pwd)"/.local-chromium:/app/.local-chromium \ -it --privileged=true nolanhzy/nvjdc:0.3
ip:5701 access Nvjdc
4, Push
Only wechat push, not one-to-one push (write one-to-one push later)
1,PushPlus+ pushplus push plus official website - message push platformhttp://www.pushplus.plus/ After logging in PushPlus +, you will get a token
Open Qinglong panel = = "environment variables = =" add variables
Name: PUSH_PLUS_TOKEN
Value: token
2. Server sauce
Login (ftqq.com)https://sct.ftqq.com/login After logging in to the Server, you will get a token
Open Qinglong panel = = "environment variables = =" add variables
Name: PUSH_KEY
Value: token
So far, the tutorial is over, and the writing is not very good. Later, write one-to-one push and robot