1. 修改系统变量
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
2. 保存生效
sysctl -p
3. 查看是否开启成功
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
sysctl net.ipv4.tcp_congestion_control
#返回值为 net.ipv4.tcp_congestion_control = bbr
sysctl net.core.default_qdisc
#返回值为 net.core.default_qdisc = fq
lsmod | grep bbr
#返回值为 tcp_bbr
#此值也可能没有