计算机技术
OpenVZ架构VPS安装BBR的五种方法(UML/LKL/LKL_Rinetd)
一、UML
本方法来自:https://www.91yun.co/archives/5345
1、一键运行脚本:
Alpine linux 小内存版: UML 的系统是 Alpine linux ,需要 64M 内存启动,主机最低 128M 内存
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/uml/master/bbr/uml.sh && bash uml.sh
Centos 版: UML 的系统是 CentOS ,需要 256M 内存启动,主机建议最低 512M 内存
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/uml/master/bbr/uml-centos.sh && bash uml-centos.sh
装完 ssr 和 bbr 就已经运行了,如果你不想改密码和端口的话就可以直接用。。默认配置在下面。。
2、进入 uml
screen -x
或者在目录下运行
bash run.sh status
用户名: root
, 密码: root
具体可见原文地址。
LKL(91yun)
原文地址:https://www.91yun.co/archives/6281
安装 LKL 一键包命令
wget --no-check-certificate https://github.com/91yun/uml/raw/master/lkl/install.sh && bash install.sh
如何判断是否安装成功
ping 10.0.0.2
具体见原文地址
Rinetd
1、下载rintd二进制文件(原版bbr和修改版bbr二选一即可):
wget --no-check-certificate https://raw.githubusercontent.com/mixool/rinetd/master/rinetdwget --no-check-certificate https://raw.githubusercontent.com/mixool/rinetd/master/rinetd_bbr_powered -O /root/rinetd
2、修改权限:
chmod +x rinetd
3、修改rinetd的配置文件rinetd.conf,添加监听地址:
vi rinetd.conf# bindadress bindport connectaddress connectport0.0.0.0 443 0.0.0.0 4430.0.0.0 80 0.0.0.0 80
vi /etc/systemd/system/rinetd.service[Unit]Description=rinetd [Service]ExecStart=/root/rinetd -f -c /root/rinetd.conf raw venet0:0Restart=always [Install]WantedBy=multi-user.target
systemctl enable rinetd.service && systemctl start rinetd.service
NanQinLang
Debian
wget https://github.com/tcp-nanqinlang/lkl-haproxy/releases/download/1.1.1/tcp_nanqinlang-haproxy-debian.shbash tcp_nanqinlang-haproxy-debian.sh
Centos
wget https://github.com/tcp-nanqinlang/lkl-haproxy/releases/download/1.1.1/tcp_nanqinlang-haproxy-centos.shbash tcp_nanqinlang-haproxy-centos.sh
原文地址:https://sometimesnaive.org/article/linux/bash/tcp_nanqinlang-lkl
NanQinLang—Rinetd
Debian 单网卡(单IP)
wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-debianorubuntu.shbash tcp_nanqinlang-rinetd-debianorubuntu.sh
多IP
wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-debianorubuntu-multiNIC.shbash tcp_nanqinlang-rinetd-debianorubuntu-multiNIC.sh
CentOS 单网卡
# 单网卡wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-centos.shbash tcp_nanqinlang-rinetd-centos.sh # 多网卡wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-centos-multiNIC.shbash tcp_nanqinlang-rinetd-centos-multiNIC.sh