最简单的安装Google BBR一键加速VPS教程

2020年12月4日19:45:00VPS教程评论1,6983阅读模式

BBR是Google的一套网络拥塞控制算法,用在VPS服务器上,可以有效减少拥堵丢包,明显提高网络连接和某些不可描述的上网速度。文章源自评测啦-https://www.ovz.cc/9.html

因此,不再需要第三方的安装脚本了。直接修改系统配置即可。文章源自评测啦-https://www.ovz.cc/9.html

本文的系统要求为Debian 9或更高版本的Debian Linux,其他操作系统所知不详,不知是否适合本文的方法。文章源自评测啦-https://www.ovz.cc/9.html

请注意,本文的配置参数可以启用Google BBR,还包括多种网络参数的优化,具体的不解释了,直接复制执行使用即可。文章源自评测啦-https://www.ovz.cc/9.html

Google BBR一键加速VPS服务器很简单,SSH登录VPS后,分别执行以下2个命令即可(鼠标单击高亮后,点鼠标右键复制粘贴到根用户的#后面,然后回车)。文章源自评测啦-https://www.ovz.cc/9.html

命令1(比较长,有折行,请完整拷贝):文章源自评测啦-https://www.ovz.cc/9.html

wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/hj/master/hj.sh && chmod +x hj.sh && bash hj.sh

如果提示wget:命令未找到的错误,这是你的系统精简的太干净了,wget都没有安装,所以需要安先装wget:文章源自评测啦-https://www.ovz.cc/9.html

    apt-get install -y wgetapt-get install -y wget

命令2:文章源自评测啦-https://www.ovz.cc/9.html

sysctl -p

执行成功后大致会输出:
fs.file-max = 51200
net.ipv4.conf.lo.accept_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.ip_local_port_range = 10000 65000
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_rmem = 32768 436600 873200
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 2
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_max_tw_buckets = 9000
net.ipv4.tcp_max_syn_backlog = 65536
net.ipv4.tcp_mem = 94500000 91500000 92700000
net.ipv4.tcp_max_orphans = 3276800
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_wmem = 8192 436600 873200
net.core.netdev_max_backlog = 250000
net.core.somaxconn = 32768
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr文章源自评测啦-https://www.ovz.cc/9.html

  • 本文由 发表于 2020年12月4日19:45:00
  • 转载请务必保留本文链接:https://www.ovz.cc/9.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: