Centos 7 開啟BBR


# 升級內核
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

yum --enablerepo=elrepo-kernel install kernel-ml -y

# 查看當前啟動順序
egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'

CentOS Linux (4.20.4-1.el7.elrepo.x86_64) 7 (Core)
CentOS Linux 7 Rescue 52576f5b3c2e410baf87b3c1f4bc78fb (3.10.0-957.1.3.el7.x86_64)
CentOS Linux (3.10.0-957.1.3.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-693.11.6.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)
CentOS Linux (0-rescue-00a62363617944e08db8db894ba6145e) 7 (Core)

# 設置更新后的內核為默認啟動
grub2-set-default 0   #(CentOS Linux (4.20.4-1.el7.elrepo.x86_64) 7 (Core))

# 重啟
reboot

# 開啟bbr
echo 'net.core.default_qdisc=fq' | sudo tee -a /etc/sysctl.conf
echo 'net.ipv4.tcp_congestion_control=bbr' | sudo tee -a /etc/sysctl.conf
sysctl -p

# 查看是否已經加載bbr模塊
lsmod | grep bbr


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM