[Usage record 1] Qinglong installation + docker operation

Record the problems and operations I encountered during use

docker container operation


1. Check the running container: docker ps


2. View all containers: docker ps -a

The following string d27bd3008ad9 is the container ID, in the red box above
3. Enter the container: docker exec -it d27bd3008ad9 /bin/bash
4. Stop the container: docker stop d27bd3008ad9 
5. Delete the container: docker rm d27bd3008ad9 

6. Restart the container: docker restart d27bd3008ad9 

Install Qinglong

Mine is Ali server, others should be similar

If you have failed to install, enter the server console and choose to replace the operating system CentOS version with 7.7 or 7.8 and reinstall

Enter the following in order 

First open port 5700 and 5701 in the server security group Server
Console - Security Group - Inbound Direction - Manually Add
Authorization Policy Priority Protocol Type Port Range Authorization Object
Allow 1 Custom TCP Purpose: 5701/5701 Source: 0.0.0.0/0
Allow 1 Custom TCP Destination: 5700/5700 Source: 0.0.0.0/0

Next, in the command window, enter commands one by one. After entering a command, you need to wait for the command operation to complete before entering another command. Enter the following in
order 


Section 1: JD Qinglong Control Panel

1 First install docker
yum update

2
curl -sSL https://get.docker.com/ | sh
3
sudo systemctl start docker
4
sudo systemctl status docker
5
sudo systemctl enable docker

6 After the installation is complete, configure the Qinglong panel
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 \
  whyyour/qinglong:latest

Then you can access the panel through http://ip:5700

After successful login, find auth.json in /root/QL/config and open the file to check the password and log in.
Can't find /root/QL/config? Just close the remote connection tool and open it again!


Section 2: Qinglong panel scan code to get cookie

 After this step is installed, I have been unable to scan the code successfully. . .  …

1. The first step to install depends on
yum install wget unzip -y

2. The third step is to install
wget on the backend https://ghproxy.com/https://github.com/shufflewzc/JDC/releases/download/2.0.0/linux_amd64.zip && unzip linux_amd64.zip

3. Give 777 permission to install
chmod 777 JDC
./JDC

4. Run for the first time, automatically generate configuration files and the program will automatically exit. Then type
nohup ./JDC &

5. First, cd to the public folder in the same level directory of JDC (usually root) (if not, please create a new one), and download and decompress the front-end file cd
public
wget https://ghproxy.com/https://github.com /shufflewzc/JDC-web/releases/download/2.0.0/dist.zip && unzip dist.zip


Then directly access the IP + port to see the panel
http://IP:5701/
http://IP:5700/

After executing the above steps, I still can’t access 5700, so I created a bunch of commands below and executed them step by step.

Section 3, add ports, turn off the firewall

systemctl status firewalld


systemctl start firewalld


systemctl status firewalld


firewall-cmd --permanent --zone=public --add-port=5700/tcp


systemctl stop firewalld

Section 4, manually setting cookies

If you can access 5700 normally, add an environment variable to the environment variable,

Name: JD_COOKIE

Value: &pt_key=your key;pt_pin=your pin;

Add & can set multiple

Section 5, Common Error Handling

If there is an error similar to the following

error: cannot find module 'jsdom'

Approach:

 Go to your own server to find the QL directory, enter the script folder and run the command (the 'jsdom' behind the install should be exactly the same as in the error report):

npm install jsdom

Solution to the white screen of the browser access page 1

docker exec -it qinglong bash                   Note: (qinglong is the name of your container, check it yourself, if it has not been changed, it is usually qinglong or QL)
cp dist/index.html dist/index.html.bak
sed -i "s/cdn. jsdelivr.net/cdn.ravi.cool/g" /ql/dist/index.html
sed -i "s/darkreader.min.js/darkreader.js/g" /ql/dist/index.html
sed -i " s/codemirror.min.js/codemirror.js/g" /ql/dist/index.html

Workaround source reference:

A white screen appears on the Qinglong panel after the 5.20 update——Solution_Jin Glittering Blog-CSDN Blog_Qinglong panel can’t be opened 5.20 Update Qinglong panel white screen solution, if you don’t solve the problem, please check it out~ https://blog .csdn.net/weixin_45314176/article/details/124851793 Qinglong panel white screen problem solution (fool solution) 22/5/27 update_Wild Team Wool Squad Blog-CSDN Blog_Qinglong Panel Cannot Open Qinglong Panel White Screen problem solution (fool solution) 22/5/27 update https://blog.csdn.net/m0_59992701/article/details/125006080

 Browser access page white screen processing method 2

docker exec -it qinglong bash           Note: (qinglong is the name of your container, check it yourself, if it has not been changed, it is usually qinglong or QL)
One-click modification command: [applicable to v2.9-v2.11.1 version] (the version is too low to recommend The first method used~)

bash <(curl -ls https://gitee.com/suiyuehq/ziyong/raw/master/ql_cdn/v2.10.13/bpxf.sh)

A white screen appeared on the Qinglong panel after the 5.20 update—— Solution /article/details/124851793?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-124851793-blog-122969880.pcay_relevant depth_1-utm_source=distribute.pc_relevant_t0.none -task-blog-2%7Edefault%7ECTRLIST%7ERate-1-124851793-blog-122969880.pc_relevant_paycolumn_v3&utm_relevant_index=1

Guess you like

Origin blog.csdn.net/wenhui6/article/details/119562377