1. 程式人生 > >BBR一鍵指令碼(適用於CentOS6/7)

BBR一鍵指令碼(適用於CentOS6/7)

1.用root使用者登入,並輸入以下程式碼:

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

在這個指令碼執行完成後,你的系統會後會提示你輸入(n/y)來reboot,輸入y來進行reboot。

檢查一下BBR是否啟用。所以,再輸入以下程式碼來檢查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已啟動