VPS 安装 Debian 13 安装 xanmod 内核并设置 bbr3
网络重装成 Debian 13.
curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_
# 密码 blog.hi.cn,端口2333
bash reinstall.sh debian 13 --password blog.hi.cn --ssh-port 2333
安装 xanmod 内核
添加源
wget -qO - https://dl.xanmod.org/archive.key | gpg --dearmor -o /usr/share/keyrings/xanmod-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org releases main' | tee /etc/apt/sources.list.d/xanmod-release.list
查看当前VPS适合的版本
apt-get install gnupg wget
wget -q https://dl.xanmod.org/check_x86-64_psabi.sh && chmod +x check_x86-64_psabi.sh && ./check_x86-64_psabi.sh
根据提示版本选择内核,比如提示 CPU supports x86-64-v3
就选择 linux-xanmod-x64v3
。
安装内核
sudo apt update && sudo apt install linux-xanmod-x64v3
开bbr3
cat > /etc/sysctl.d/bbr.conf << EOF
net.core.default_qdisc=fq_pie
net.ipv4.tcp_congestion_control=bbr
net.ipv4.icmp_echo_ignore_all=1
EOF
运行 sysctl --system
或直接重启,之后使用新内核。