说明:超级暴力版魔改BBR
源码由南琴浪大佬提供,具体有多暴力博主暂时没怎么测试,这里只说下安装教程。
安装
系统要求:Debian/Ubuntu
系统,内核版本v4.9.3
–v4.12.x
。得安装gcc
,Makefile
默认只支持gcc 6
,你可以修改它(例如)gcc-4.9
。
1、更换内核并开启BBR
这里手动安装,方法从BBR
刚出来时就在博客说过,这里再说一次。内核下载地址:http://kernel.ubuntu.com/~kernel-ppa/mainline/。且魔改BBR
需要3
个内核linux-image
、linux-headers-all
、linux-headers-$bit
,这里以v4.10.1
为例。
内核下载
#64位系统
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001_4.10.1-041001.201702260735_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_amd64.deb
#32位系统
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001_4.10.1-041001.201702260735_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb
内核安装,且安装顺序不要变,依次image
、headers_all
、headers
,不然会出错。
dpkg -i linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb
dpkg -i linux-headers-4.10.1-041001_4.10.1-041001.201702260735_all.deb
dpkg -i linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb
查看内核
dpkg -l|grep linux-image
dpkg -l|grep linux-headers
删除旧内核
apt-get purge (旧内核名称)
内核更新
update-grub
重启
reboot
保存生效
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
查看内核是否已开启BBR
sysctl net.ipv4.tcp_available_congestion_control
显示以下即启动成功
# lsmod | grep bbr
tcp_bbr 20480 14
2、安装超级暴力版魔改BBR
安装环境
apt install -y gcc git make
下载暴力魔改BBR
源码
git clone https://github.com/nanqinlang/tcp_nanqinlang-test.git
查看/usr/bin
文件夹gcc
文件。
find /usr/bin/gcc*
此时可以看到几个文件,找到gcc-5
,也可以是6
,具体自己看着办。如果没看到gcc-6
,则需要编辑Makefile
文件。
cd tcp_nanqinlang*
nano Makefile
将modules CC=/usr/bin/gcc-6
后面的gcc
修改成刚刚看到的gcc
版本文件,如gcc-5
。
安装暴力魔改BBR
make
make install
有问题请咨询大佬,南琴浪博客:https://sometimesnaive.org/。
未经允许不得转载:嘟嘟 » Debian/Ubuntu开启超级暴力版魔改BBR教程
最新评论
请问下,python3 tg_username_update.py都会提示下面这个是因为什么啊 Traceback (most recent call last): File "tg_username_update.py", line 21, in <module> cake = emojize(":cake:", use_aliases=True) TypeError: emojize() got an unexpected keyword argument 'use_aliases'
不可以了
# Install [Debian] [bullseye] [amd64] Downloading... grep: (standard input): binary file matches Error! grub.cfg. root@RRR2:~#
博主你好,请问cloudfront 上传收费这个是事实吧,已经找了几个贴子确认了。 那有什么好办法能够避开这个收费呢?如果不能避开感觉还是cloudflare 比较稳。
来看看
第5步添加自定义主机名进去后等txt验证提示custom hostname does not name to this zone
那没事了,我静态博客。谢谢
为什么缓存键和源请求那里不设置缓存?