BBR,google出品的加速优化,与锐速类似。限KVM、XEN使用。 均在SSH下执行。
严重建议使用下面的安装包,支持CentOS 6+ , Debian 7+ , Ubuntu 12+
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh请使用上面的一键安装包,支持系统多。
一、CentOS 6/7 x86_64 下一键安装
1、安装
wget -O- https://本站.com/wp-content/uploads/2016/12/install_bbr_centos.sh | bash2、重启
reboot3、验证
sysctl -a|grep tcp_congestion_control结果显示,即成功
sysctl -a|grep tcp_congestion_control net.ipv4.tcp_congestion_control = bbr类似提示可以忽略:
reading key "net.ipv6.conf.all.stable_secret"二、centos6 32位和64位 下一键安装
wget https://本站.com/wp-content/uploads/2016/12/BBR.sh && sh BBR.sh建议使用centos6 32位。
三、centos7 下安装
1、安装
wget http://mirrors.kernel.org/debian/pool/main/l/linux/linux-image-4.9.0-rc8-amd64-un signed_4.9~rc8-1~exp1_amd64.deb ar x linux-image-4.9.0-rc8-amd64-unsigned_4.9~rc8-1~exp1_amd64.deb tar -Jxf data.tar.xz install -m644 boot/vmlinuz-4.9.0-rc8-amd64 /boot/vmlinuz-4.9.0-rc8-amd64 cp -Rav lib/modules/4.9.0-rc8-amd64 /lib/modules/ depmod -a 4.9.0-rc8-amd64 #centos >= 6 dracut -f -v --hostonly -k '/lib/modules/4.9.0-rc8-amd64' /boot/initramfs-4.9.0-rc8-a md64.img 4.9.0-rc8-amd64 grub2-mkconfig -o /boot/grub2/grub.cfg2、修改启动顺序 vi /boot/grub2/grub.cfg 把4.9.0的内核启动,放到第一位。
3、重启
4、开启BBR
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf sysctl -p sysctl net.ipv4.tcp_available_congestion_control四、Debian8/Ubuntu14 下安装
1、安装
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9-rc8/linux-image-4.9.0-040900rc8-generic_4.9.0-040900rc8.201612051443_amd64.deb dpkg -i linux-image-4.9.0*.deb2、删除其余内核
dpkg -l|grep linux-image apt-get remove 内核3、更新 grub 系统引导文件并重启
update-grub reboot4、开启BBR
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf5、保存,生效
sysctl -p6、查看成功否 执行sysctl net.ipv4.tcp_available_congestion_control 如果结果中有bbr, 则证明你的内核已开启bbr 执行lsmod | grep bbr, 看到有 tcp_bbr 模块即说明bbr已启动
vi:https://teddysun.com/489.html http://www.hostloc.com/thread-342622-1-1.html https://www.91yun.org/archives/4216
推荐站内搜索:国外vps服务器租用、服务器如何加防御、备案查询 工信部、域名 查询、国外服务器租用价格、asp主机、美国虚拟主机购买、国内代理服务器ip、网站备案域名查询、香港服务器租用99idc、