VPS配置LotSpeed单边加速
侧边栏壁纸
  • 累计撰写 16 篇文章
  • 累计收到 0 条评论

VPS配置LotSpeed单边加速

admin
2026-02-01 / 0 评论 / 1 阅读 / 正在检测是否收录...

系统我使用的是Debian13,先更新系统、重启,确保系统当前运行的内核是最新版:

apt update
apt full-upgrade

安装需要用到的软件包:

apt install build-essential git
apt install linux-headers-$(uname -r)

克隆项目存储库、编译lotspeed内核模块:

git clone -b zeta-tcp https://github.com/uk0/lotspeed.git
cd lotspeed
make

安装lotspeed内核模块:

cp lotspeed.ko /lib/modules/$(uname -r)/kernel/net/ipv4/
depmod -a

加载lotspeed内核模块:

modprobe lotspeed

确保加载成功:

lsmod | grep lotspeed

[可选]配置开机自动加载lotspeed内核模块:

echo "lotspeed" >> /etc/modules-load.d/lotspeed.conf

设置拥塞控制算法为lotspeed:

nano /etc/sysctl.d/10-lotspeed.conf

写入下面的内容

net.ipv4.tcp_congestion_control = lotspeed
net.ipv4.tcp_no_metrics_save = 1

使其生效:

sysctl --system

查看拥塞控制算法是否生效:

sysctl net.ipv4.tcp_congestion_control
1

评论

博主关闭了所有页面的评论