当前位置:首页 > 计算机科学 > 网络技术 > 正文内容

centos7安装BBR后开启cake队列教程

fanglong2020-08-26网络技术5108

开启cake

vi /etc/sysctl.conf 

增加或修改为: net.core.default_qdisc = cake

判断是否开启cake

tc -s qdisc show

下图说明cake没开启成功:

捕获111.PNG

rpm -qa|grep iproute   显示为: iproute-4.11.0-25.el7_7.2.x86_64

yum update -y iproute 发稿时版本为4.11

Cake is functional, since tc (iproute >= 4.19.x) supports parameters of the new qdisc.
cake列队依赖iproute 大于4.19.x 现在ubuntu18 centos8 官方源都不能满足需要升级软件包版本

版本未达到需求的4.19,故需要编译安装iproute

最新的5.8版本,就安装最新的.

yum -y install libselinux-devel elfutils-libelf-devel libmnl-devel glibc* libdb-devel libcap-devel bison flex

wget https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/iproute2-5.8.0.tar.gz && tar -zxf iproute2-5.8.0.tar.gz && cd iproute2-5.8.0

./configure

捕获222.PNG

make && make install

查看现在iproute版本: ip -V

rpm -qa|grep iproute rpm并未改变.

查看队列是否正常: tc -s qdisc show

捕获333.PNG

cake运行正常了!


PS:此处为后来安装的一台主机出现的问题,故在yum命令后增加bison flex (kernel  5.8.4下)



ip命令参考资料: https://www.jianshu.com/p/d129238d3853 

扫描二维码推送至手机访问。

版权声明:本文由人从众的博客发布,如需转载请注明出处。

本文链接:https://loulin.bid/40.html

分享给朋友:

相关文章

CentOS等linux系统中_yum命令意外中断后解除锁定的方法

执行yum命令,情况如下:Another app is currently holding the yum lock; waiting for it to exit...  The...

Nginx+PHP-FPM运行机制

CGIcommon gateway interface (公共网关接口) 请求模式:     Web Browe...

nginx与php-fpm通信的两种方式

在linux中,nginx服务器和php-fpm可以通过tcp socket和unix socket两种方式实现。unix socket是一种终端,可以使同一台操作系统上的两个或多个进程进行数据通信。...

linux服务器上thinkphp等系统系统登录验证码一直提示不正确

用phpinfo函数找到相应的有效php.ini文件修改如下段落:session.save_path="/tmp"去掉;然后chmod -R 777 /tmp (赋予权限)重启相应...

Mysql 修改实例数据库下的所有表引擎

1. 修改单个表mysql> ALTER TABLE TABLENAME ENGINE=InnoDB2. 修改多表mysql>select ...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。