1、新建一个项目
cd /root && mkdir -p Rabbit && cd Rabbit
2、创建一个目录放配置
cd /root/Rabbit && mkdir -p Config
3、下载config.json 配置文件 不要修改配置,先确保能访问gitee,能正常打开网页,否则会跑enen
cd /root/Rabbit/Config && wget -O Config.json https://raw.githubusercontent.com/shidahuilang/QL-/main/Config.json
国内用
cd /root/Rabbit/Config && wget -O Config.json https://ghproxy.com/https://raw.githubusercontent.com/shidahuilang/QL-/main/Config.json
4、配置完后
cd /root/Rabbit
bash -c "$(curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/shidahuilang/QL-/main/rabbit.sh)"
docker build -t rabbit .
cd /root/Rabbit && docker run --name rabbit -d -v "$(pwd)"/Config:/usr/src/Project/Config -p 5701:1234 shidahuilang/rabbit:latest
docker pull shidahuilang/rabbit:latest
cd /root/Rabbit && docker run --name rabbit -d -v "$(pwd)"/Config:/usr/src/Project/Config -p 5701:1234 shidahuilang/rabbit:latest
格式为:http://xxx.xxx.xxx.xxx:xxxx或socks://xxx.xxx.xxx.xxx:xxxx 设置配置文件中的proxy即可
docker pull shidahuilang/rabbit:latest && cd /root/Rabbit && docker run --name rabbit -d -v "$(pwd)"/Config:/usr/src/Project/Config -p 5701:1234 shidahuilang/rabbit:latest
Content type
Image
Digest
Size
542.6 MB
Last updated
over 4 years ago
docker pull shidahuilang/rabbit