开启BBR
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
# 然后重启一下系统。
# 检查 BBR 是否开启成功
sysctl -n net.ipv4.tcp_congestion_control
lsmod | grep bbr
#如果输出包含 BBR,说明启用成功。
一件安装docker
# 国外机
curl -sSL https://get.docker.com/ | sh
#国内机
curl -sSL https://get.daocloud.io/docker | sh
卸载docker
sudo apt-get remove docker docker-engine
rm -fr /var/lib/docker/
一件安装docker-compose
# 国外机
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
#国内机
curl -L https://get.daocloud.io/docker/compose/releases/download/v2.1.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
卸载docker
sudo apt-get remove docker docker-engine
rm -fr /var/lib/docker/
评论 (0)