安装ss-libev

因为机器比较多,于是一直是用teddysun的脚本装ss-libev

1
2
wget https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev-debian.sh
bash shadowsocks-libev-debian.sh

按照提示来,填写密码、端口,加密方式建议chacha20

魔改bbr

1
2
3
git clone https://github.com/FunctionClub/YankeeBBR.git
cd YankeeBBR
bash bbr.sh install

会弹出喜感的蓝底背景提示框

1
2
3
4
5
6
7
8
9
10
11
12
13
14
┌────────────────────────────────────────┤ Configuring linux-image-3.16.0-4-amd64 ├────────────────────────────────────────┐
│ │
│ You are running a kernel (version 3.16.0-4-amd64) and attempting to remove the same version. │
│ │
│ This can make the system unbootable as it will remove /boot/vmlinuz-3.16.0-4-amd64 and all modules under the directory │
│ /lib/modules/3.16.0-4-amd64. This can only be fixed with a copy of the kernel image and the corresponding modules. │
│ │
│ It is highly recommended to abort the kernel removal unless you are prepared to fix the system after removal. │
│ │
│ Abort kernel removal? │
│ │
│ <Yes> <No> │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

问你要不要放弃移除旧的内核
选no

检测到 3 个其余内核,开始卸载…
开始卸载 linux-image-3.16.0-4-amd64 内核…

然后就会移除多余的内核

重启完成后
再运行

1
bash bbr.sh start

就可以启动魔改bbr了

验证bbr是否开启

运行

1
sysctl net.ipv4.tcp_available_congestion_control

返回:

1
net.ipv4.tcp_available_congestion_control = bbr cubic reno

运行:

1
sysctl net.ipv4.tcp_congestion_control

返回:

1
net.ipv4.tcp_congestion_control = bbr

运行:

1
lsmod | grep bbr

返回值有tcp_bbr则说明bbr已启动

(完)