搬瓦工 VPS 安装并开启 Google BBR 教程(KVM / OpenVZ)

原创 wzccxx  2017-12-24 14:05:47  阅读 748 次 评论 0 条

from:http://www.bandwagonhost.net/


为了方便大家复制,把一些命令贴在这儿。更多详情,请参考文章:

KVM

安装:

 wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.shchmod +x bbr.sh./bbr.sh

验证:

 uname -rsysctl net.ipv4.tcp_available_congestion_controlsysctl net.ipv4.tcp_congestion_controlsysctl net.core.default_qdisclsmod | grep bbr

OpenVZ

安装:

 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

firewalld:

 systemctl disable firewalld systemctl stop firewalld

卸载:

 ./ovz-bbr-installer.sh uninstall

多端口:

 vim /usr/local/haproxy-lkl/etc/port-rules

启动、停止、重启:

 systemctl {start|stop|restart} haproxy-lklservice haproxy-lkl {start|stop|restart}

更新 glibc:

 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.rpmrpm -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.gzwget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gztar -zxf glibc-2.15.tar.gztar -zxf glibc-ports-2.15.tar.gzmv glibc-ports-2.15 glibc-2.15/portsmkdir glibc-build-2.15cd glibc-build-2.15../glibc-2.15/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/binmake all && make install

检查 glibc:

 ldd --version


本文地址:https://www.tstsj.cn/post/9.html
版权声明:本文为原创文章,版权归 wzccxx 所有,欢迎分享本文,转载请保留出处!
离心脱水机平板脱水机生产商

专业脱水设备生产商

发表评论


表情

还没有留言,还不快点抢沙发?