Centos7开启BBR加速
文章目录
- 手动升级内核,开启BBR
sed -i '/net.core.default_qdisc/d' /etc/sysctl.conf
sed -i '/net.ipv4.tcp_congestion_control/d' /etc/sysctl.conf
echo "net.core.default_qdisc = fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control = bbr" >> /etc/sysctl.conf
sysctl -p
reboot
- 验证BBR是否已经可用
执行命令验证TCP控制算法: sysctl net.ipv4.tcp_available_congestion_control
返回值一般为:
net.ipv4.tcp_available_congestion_control = bbr cubic reno
或者为:
net.ipv4.tcp_available_congestion_control = reno cubic bbr
验证BBR是否已经启动 sysctl net.ipv4.tcp_congestion_control
返回值一般为:
net.ipv4.tcp_congestion_control = bbr
执行命令 : lsmod|grep bbr 如果有tcp_bbr则表示成功开启了
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论