If the system’s built-in kernel is higher than 4.9, BBR is already included by default.
Steps:
Use the root privilege to run the following code
uname -r // The kernel version needs to be higher than 4.9.
Turn on BBR
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
Make changes effective
sysctl -p
Execute the following command, if the result contains bbr, it means that your kernel has been enabled bbr.
sysctl net.ipv4.tcp_available_congestion_control
Note: You can also execute the following command, if the result contains bbr, it also proves that your kernel has been enabled bbr.
lsmod | grep bbr