首先按照这篇教程把系统内核升级到最新版本
https://cloud.tencent.com/developer/article/1171599
升级完成后
安装kernel-devel kernel-headers
代码语言:javascript复制yum -y install kernel-ml-headers kernel-ml-devel
然后按照原文上的命令执行即可
代码语言:javascript复制yum install -y make gcc wget
wget -O ./tcp_tsunami.c https://gist.github.com/anonymous/ba338038e799eafbba173215153a7f3a/raw/55ff1e45c97b46f12261e07ca07633a9922ad55d/tcp_tsunami.c
echo "obj-m:=tcp_tsunami.o" > Makefile
make -C /lib/modules/$(uname -r)/build M=`pwd` modules CC=/usr/bin/gcc
chmod x ./tcp_tsunami.ko
cp -rf ./tcp_tsunami.ko /lib/modules/$(uname -r)/kernel/net/ipv4
insmod tcp_tsunami.ko
depmod -a
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=tsunami" >> /etc/sysctl.conf
sysctl -p
安装完成后执行
代码语言:javascript复制lsmod | grep tsunami
如果出现
代码语言:javascript复制tcp_tsunami 6053 5
即为安装成功
原文来自:http://51.ruyo.net/p/4415.html#6