使用Google黑科技BBR加速服务器网络



  • 一键安装BBR:

    wget -N --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && bash bbr.sh
    

    检查BBR是否启动

    uname -r
    #查看内核版本,含有 4.9.0 就表示 OK 了
    # ==============================================
    sysctl net.ipv4.tcp_available_congestion_control
    # 返回值一般为:
    # net.ipv4.tcp_available_congestion_control = bbr cubic reno
    # ==============================================
    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已启动
    

Log in to reply