OPENVZ低版本centos6.5安装BBR加速手记
玩VPS,开机第一件事就是安装BBR,至于效果怎么样还真不好说,依据不同的线路质量而定,但有总比没有好。
因为这次用的是openvz平台,所以找了一个网上的ovz专用的BBR一键安装代码。
先安装这个脚本,如果可以安装成功,后面就可以不看了。
wget https://raw.githubusercontent.com/nanqinlang-tcp/tcp_nanqinlang/master/Rinetd/bash/tcp_nanqinlang-rinetd-centos.sh bash tcp_nanqinlang-rinetd-centos.sh
ldd –version
在使用以下代码前先要检查你VPS的glibc版本。如果低于2.14,要先进行升级。
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
下载完成以后进行安装
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
在确定glibc大于2.14后,下载一键脚本安装BBR加速。
wget https://raw.githubusercontent.com/nanqinlang-tcp/tcp_nanqinlang/master/Rinetd/bash/tcp_nanqinlang-rinetd-centos.sh bash tcp_nanqinlang-rinetd-centos.sh
运行如下:
安装过程中,会提示输入端口号。多个端口号用空格隔开。不支持端口段。
安装完成后,会开启rinetd-bbr。以后重启机器也会随开机自启。