-
-
Save jingmian/9958e6e6ba7273ec7468c04da7e3159e to your computer and use it in GitHub Desktop.
ovz安装BBR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
需要配置的有如下几个选项: | |
1.需要加速的端口,即 SS 端口。加速开启之后,流量会先经过 BBR 处理,之后再发送给后端的 SS。 | |
2.可能需要配置 “公网接口名称”,即你服务器上具有公网 IP 的接口名称。搬瓦工 OpenVZ 上默认都是 venet0,但是有朋友可能需要安装在其他服务器上,所以我加入了此选项。 | |
需要注意的是,在有 firewalld 的服务器上安装的时候,firewalld 会干扰 iptables 的规则,造成网络不通(现在具体原因未知,谁有解决方案可以提示一下)。所以在装有 firewalld 的服务器上需要先退出 firewalld: | |
这个步骤搬瓦工不需要配置 | |
systemctl stop firewalld | |
如需卸载,请使用: | |
./ovz-bbr-installer.sh uninstall | |
//更新 glibc | |
yum -y install gcc | |
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 | |
//如果以上步骤无法更新,可以手动编译更新(来自网友的方法) | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment