-
使用的系統(tǒng)是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 會進(jìn)行安裝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查看當(dāng)前的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. 然后后退到根目錄下執(zhí)行
./ovz-bbr-installer.sh選擇需要加速的端口即可開啟
-
判斷 BBR 已正常工作
ping 10.0.0.2,如果能通,說明 bbr 已經(jīng)啟動。