内外网同时访问阿里rds数据库
梅林固件设置虚拟内存

centos7开启bbr加速黑科技

妙音 posted @ 2018年11月23日 23:29 in network with tags bbr vps , 2620 阅读

BBR是来自Google的黑科技,通过优化和控制TCP的拥塞,充分利用带宽并降低延迟,起到神奇的加速效果。


测试环境

centos7.5
加速效果,没有那么跨张,但是下载从50K加速到400K

 

下载更换内核
 

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml -y



查看内核是否安装成功
 

rpm -qa | grep kernel



更新 grub 系统引导文件并重启
 

egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'
grub2-set-default 0  # default 0 表示第一个内核设置为默认运行, 选择最新内核就对了
reboot



开机后看看是不是内核 >= 4.9
 

uname -r



执行 lsmod | grep bbr,如果结果中没有 tcp_bbr 的话就先执行
 

modprobe tcp_bbr
echo "tcp_bbr" | sudo tee --append /etc/modules-load.d/modules.conf



配置内和bbr
 

echo "net.core.default_qdisc=fq" | sudo tee --append /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee --append /etc/sysctl.conf
sysctl -p



查看内和是否启动bbr
 

sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control



如果结果都有 bbr, 则证明你的内核已开启 bbr

查看tcp_bbr是否启动
 

执行 lsmod | grep bbr, 看到有 tcp_bbr 模块即说明 bbr 已启动


参考资料


https://github.com/iMeiji/shadowsocks_install/wiki/%E5%BC%80%E5%90%AFTCP-BBR%E6%8B%A5%E5%A1%9E%E6%8E%A7%E5%88%B6%E7%AE%97%E6%B3%95

 

Avatar_small
dark web/deep web/d 说:
2022年8月09日 15:08

Pay per click advertising is one of the easiest ways to make money on the Internet. By purchasing targeted ad space, you can place targeted links on other sites and make money.  dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月09日 15:46

Link farms mainly gather links from web directories which are not related to the content of the website. This is a common problem on most farms.  deep web

Avatar_small
dark web/deep web/d 说:
2022年8月09日 16:55

There are several ways to use these dark web websites to check out anyone using credit cards. The first way is to look up the social networking accounts of the person.  dark web sites

Avatar_small
dark web/deep web/d 说:
2022年8月09日 19:28

You might have heard about the dark web. The internet that is hidden from plain sight.  dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月09日 22:33

The first thing you should do is research the internet about the company to see what other users have said about their experience using their services.  dark web

Avatar_small
dark web/deep web/d 说:
2022年8月09日 23:19

Well that's what you want, but it's not going to happen. If you want to be successful with affiliate marketing you need a website. work from home jobs

Avatar_small
dark web/deep web/d 说:
2022年8月09日 23:45

You then put a link back to your ClickBank website. People will click on this link because it is free and because it looks cool. affiliate marketing success


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter