搜索论坛
显示结果为标签'CentOS'。
-
开启BBR可以对网站访问速度起到一定的优化。BBR是Google开源的一种TCP网络拥塞优化算法。 TCP BBR 致力于解决两个问题:在有一定丢包率的网络链路上充分利用带宽。降低网络链路上的 buffer 占用率,从而降低延迟。 TCP 拥塞控制的目标是最大化利用网络上瓶颈链路的带宽。 CentOS 7 一键安装最新内核并开启BBR ------------------------------------------------------------------------- BBR一键安装脚本 KVM架构使用 https://teddysun.com/489.html 内核检查输入命令: uname -r 看到是 3.10 内核 输入指令: wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh 会看到你的系统信息: ---------- System Information ---------- OS : CentOS 7.7.1908 Arch : x86_64 (64 Bit) Kernel : 3.10.0-1062.18.1.el7.x86_64 ---------------------------------------- Auto install latest kernel for TCP BBR URL: https://teddysun.com/489.html ---------------------------------------- Press any key to start...or Press Ctrl+C to cancel 敲任意键 自动安装 Complete! Info: The system needs to reboot. Do you want to restart system? [y/n] 安裝完成 重开机输入 y SSH登入 验证是否已安装并开启BBR uname -r 显示结果为 5.6.8-1.el7.elrepo.x86_64 內核版本已更新到5.6 敲入: sysctl net.ipv4.tcp_available_congestion_control 返回值一般为: net.ipv4.tcp_available_congestion_control = reno cubic bbr 敲入: sysctl net.ipv4.tcp_congestion_control 返回值一般为: net.ipv4.tcp_congestion_control = bbr 敲入: sysctl net.core.default_qdisc 返回值一般为: net.core.default_qdisc = fq 敲入: lsmod | grep bbr 返回值有出现: tcp_bbr 说明BBR已启动