-
使用的系统是CentOS 6 x64
wget https://raw.githubusercontent.com/kuoruan/shell-scripts/master/ovz-bbr/ovz-bbr-installer.sh chmod +x ovz-bbr-installer.sh ./ovz-bbr-installer.sh
会进行安装ovz-bbr但是由于cs6的 glibc 版本 是2.12,这里需要升级 glibc大于2.12.
CentOS 6 更新 glibc,首先下载如下几个文件:
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
yum install gcc
../glibc-2.15/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
make all && make install
-
ldd --version查看当前的glibc的版本
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.
然后后退到根目录下执行
./ovz-bbr-installer.sh选择需要加速的端口即可开启
-
判断 BBR 已正常工作
ping 10.0.0.2,如果能通,说明 bbr 已经启动。