debian/ubuntu开启bbr加速
2018/8/21...小于 1 分钟
debian/ubuntu开启bbr加速
并升级内核
bbr 加速需要Linux kernel 4.9及以上,debian 9已经是4.9内核了,不需要升级。
开启bbr
直接修改文件: /etc/sysctl.confcat >> /etc/sysctl.conf << EOF
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
EOF执行:sysctl -p 输出:
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr检测是否成功开启:
执行:
sysctl net.ipv4.tcp_available_congestion_control输出:
net.ipv4.tcp_available_congestion_control = bbr cubic reno执行:
lsmod | grep bbr输出:
tcp_bbr 20480 1则表明成功开启bbr加速。