Rebbit_tcp tcp单边加速
tcp单边加速
卸载旧的版本
1root@vultr:~# sudo apt-get remove docker docker-engine docker.io containerd runc
2Reading package lists... Done
3Building dependency tree
4Reading state information... Done
5Package 'docker-engine' is not installed, so not removed
6Package 'containerd' is not installed, so not removed
7Package 'docker' is not installed, so not removed
8Package 'runc' is not installed, so not removed
9Package 'docker.io' is not installed, so not removed
100 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
11
更新
1
2root@vultr:~# sudo apt-get update
3Get:1 http://security.ubuntu.com/ubuntu disco-security In Release [97.5 kB]
4Hit:2 http://ppa.launchpad.net/certbot/certbot/ubuntu dis co InRelease
5Hit:3 http://archive.ubuntu.com/ubuntu disco InRelease
6Get:4 http://archive.ubuntu.com/ubuntu disco-updates InRe lease [97.5 kB]
7Get:5 http://archive.ubuntu.com/ubuntu disco-backports In Release [88.8 kB]
8Get:6 http://archive.ubuntu.com/ubuntu disco-updates/main i386 Packages [246 kB]
9Get:7 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 Packages [301 kB]
10Get:8 http://archive.ubuntu.com/ubuntu disco-updates/univ erse i386 Packages [310 kB]
11Get:9 http://archive.ubuntu.com/ubuntu disco-updates/univ erse amd64 Packages [316 kB]
12Fetched 1,457 kB in 3s (551 kB/s)
13Reading package lists... Done
14
15
允许apt通过https安装软件
1
2## apt install mono-devel
3
4root@vultr:~# sudo apt-get install \
5> apt-transport-https \
6> ca-certificates \
7> curl \
8> gnupg2 \
9> software-properties-common
10
11
12# Updating from such a repository can't be done securely, and is therefore disabled by default.
13# -- allow-unauthenticated
14Reading package lists... Done
15Building dependency tree
16Reading state information... Done
17ca-certificates is already the newest version (20190110).
18software-properties-common is already the newest version (0.97.11).
19The following additional packages will be installed:
20 libcurl4
21The following NEW packages will be installed:
22 apt-transport-https gnupg2
23The following packages will be upgraded:
24 curl libcurl4
252 upgraded, 2 newly installed, 0 to remove and 53 not upgraded.
26Need to get 405 kB of archives.
27After this operation, 205 kB of additional disk space will be used.
28Do you want to continue? [Y/n] y
29
30
安装docker官方GCP key
1root@vultr:~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
2OK
3
4

安装docker
1
2sudo apt-get install docker-ce docker-ce-cli containerd.io
3
安装dock-compose
1$ apt install docker-compose
2
3# docker-compose --version
4Reading package lists... Done
5Building dependency tree
6Reading state information..
下载yml
1
2root@vultr:~# wget https://raw.githubusercontent.com/ihciah/rabbit-tcp/master/docker-compose-server.yml
3--2019-10-18 09:57:48-- https://raw.githubusercontent.com/ihciah/rabbit-tcp/master/docker-compose-server.yml
4Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.232.36.133
5Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.232.36.133|:443... connected.
6HTTP request sent, awaiting response... 200 OK
7Length: 175 [text/plain]
8Saving to: ‘docker-compose-server.yml’
9
10docker-compose-server.yml 100%[===============================================>] 175 --.-KB/s in 0s
11
122019-10-18 09:57:48 (12.7 MB/s) - ‘docker-compose-server.yml’ saved [175/175]
13
14
nano docker-compose-server.yml
1rabbit-server:
2 image: ihciah/rabbit
3 ports:
4 - "9800:9891/tcp"
5 environment:
6 - MODE=s
7 - PASSWORD=password
8 - RABBITADDR=:9891
9 - VERBOSE=2
10 restart: always
运行
1root@vultr:~# docker-compose -f docker-compose-server.yml up -d
2Pulling rabbit-server (ihciah/rabbit:)...
3latest: Pulling from ihciah/rabbit
49d48c3bd43c5: Pull complete
50e415ec57a04: Pull complete
6Digest: sha256:43c5106f5ce8d3cdbf66b7204ebcfb53b5cfb358c2883c44778c891bb80f3d48
7Status: Downloaded newer image for ihciah/rabbit:latest
8Creating root_rabbit-server_1 ... done
9root@vultr:~# nano docker-compose-server.yml
10
客户端
1PS C:\Windows\system32> choco install docker-desktop docker-compose wget -y
2Chocolatey v0.10.15
3Installing the following packages:
4docker;docker-compose
5By installing you accept licenses for the packages.
6
7
8
下载客户端配置
1D:\rabbit-tcp>wget https://raw.githubusercontent.com/ihciah/rabbit-tcp/master/docker-compose-client.yml
2--2019-10-18 10:14:51-- https://raw.githubusercontent.com/ihciah/rabbit-tcp/master/docker-compose-client.yml
3Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.76.133
4Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.76.133|:443... connected.
5HTTP request sent, awaiting response... 200 OK
6Length: 257 [text/plain]
7Saving to: 'docker-compose-client.yml'
8
9docker-compose-client.yml 100%[=================================================>] 257 --.-KB/s in 0s
10
112019-10-18 10:14:53 (614 KB/s) - 'docker-compose-client.yml' saved [257/257]
12
13
14D:\rabbit-tcp>
15