伺服器使用bbr加速配置

來源:互聯網
上載者:User

標籤:tee   tps   下載   set   開機   color   應該   版本   nbsp   

伺服器核心升級:

    以centos7為例,配置之前可使用以下命令查看核心版本,若是4.0以上則無需對核心升級;

uname -r

    對核心升級的方法:

  直接使用以下命令進行核心版本的下載:

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.orgrpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpmyum --enablerepo=elrepo-kernel install kernel-ml -y

    這個時候核心應該已經安裝,但是需要對開機預設啟動的核心進行設定,否則無效;

對預設啟動進行核心設定:

 查看可用的核心有哪些:

cat /boot/grub2/grub.cfg |grep menuentry

   設定為可以使用bbr加速的核心版本:

grub2-set-default ‘CentOS Linux (4.12.3-1.el7.elrepo.x86_64) 7 (Core)‘

    設定成功後則使用命令reboot重啟;

重啟之後進行bbr安裝:

    查看核心是否已經支援(4.0以上),如下資訊所示:

4.18.11-1.el7.elrepo.x86_64

 使用以下命令安裝bbr:

uname -r echo ‘net.core.default_qdisc=fq‘ | sudo tee -a /etc/sysctl.confecho ‘net.ipv4.tcp_congestion_control=bbr‘ | sudo tee -a /etc/sysctl.confsysctl -psysctl net.ipv4.tcp_available_congestion_controlsysctl -n net.ipv4.tcp_congestion_controllsmod | grep bbr

    最後提示安裝成功(出現tcp_bbr資訊):

tcp_bbr                20480  1 

 

伺服器使用bbr加速配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.