Install GOOGLE BBR on openvz architecture vps to accelerate VPS

888u

Last update at :2024-05-17,Edit by888u

System requirements:

  • CentOS 6 x64 (recommended)
  • Requires glibc version 2.14 or above

Update glibc {Method 1}

CentOS 6 updates glibc, first download the following files:

wget http://ftp.redsleeve.org/pub/steam/glibc-2.15-60.el6.x86_64.rpm \ http://ftp.redsleeve.org/pub/steam/glibc-common-2.15-60.el6.x86_64.rpm \ http://ftp.redsleeve.org/pub/steam/glibc-devel-2.15-60.el6.x86_64.rpm \ http://ftp.redsleeve.org/pub/steam/glibc-headers-2.15-60.el6.x86_64.rpm \ http://ftp.redsleeve.org/pub/steam/nscd-2.15-60.el6.x86_64.rpm

Then install:

# rpm -Uvh glibc-2.15-60.el6.x86_64.rpm \ glibc-common-2.15-60.el6.x86_64.rpm \ glibc-devel-2.15-60.el6.x86_64.rpm \ glibc-headers-2.15-60.el6.x86_64.rpm \ nscd-2.15-60.el6.x86_64.rpm

Update glibc {Method 2}:

wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz tar -zxf glibc-2.15.tar.gz tar -zxf glibc-ports-2.15.tar.gz mv glibc-ports-2.15 glibc-2.15/ports mkdir glibc-build-2.15 cd glibc-build-2.15 ../glibc-2.15/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin make all && make install

Check it out:

# ldd --version ldd (GNU libc) 2.15 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.

Instructions have been upgraded to glibc 2.15.

Install google BBR script:

wget --no-check-certificate https://raw.githubusercontent.com/woyard/script/master/ovz-bbr/ovz-bbr-installer.sh chmod +x ovz-bbr-installer.sh ./ovz-bbr-installer.sh

Judge that BBR is working normally

To determine whether bbr starts normally, you can try ping 10.0.0.2 on the vps. If it works, it means bbr has started.

Then check the iptables rules:

iptables -t nat -nL Chain PREROUTING (policy ACCEPT) target prot opt ​​source destination LKL_IN all -- 0.0.0.0/0 0.0.0.0/0 Chain POSTROUTING (policy ACCEPT) target prot opt ​​source destination Chain OUTPUT (policy ACCEPT) target prot opt ​​source destination Chain LKL_IN (1 references) target prot opt ​​source destination DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8989 to:10.0.0.2

You will see an additional linked list LKL_IN inside, with corresponding port rules.

Source address: https://blog.kuoruan.com/116.html

https://www.v2ex.com/t/353778

Recommended site searches: Mainland China registration-free space, multi-IP station group server, free ftp space, IP online query, Korean cheap server, cheap cloud server 5 yuan a month, domain name and space, Ministry of Industry and Information Technology website registration System, foreign php space, asp host space,

Install GOOGLE BBR on openvz architecture vps to accelerate VPS

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码