RackNerd VPS 自部署记录
记录一下这台 RackNerd VPS 的完整部署过程,方便以后重装时参考。 配置 RackNerd 洛杉矶 DC03,1核 / 1GB / 20GB SSD / 3TB 流量,$21.99/年。系统 Ubuntu 24.04。 基础设置 换源 sed -i 's|archive.ubuntu.com|mirrors.ustc.edu.cn|g' /etc/apt/sources.list sed -i 's|security.ubuntu.com|mirrors.ustc.edu.cn|g' /etc/apt/sources.list apt update && apt upgrade -y BBR 加速 Ubuntu 24.04 默认内核已支持 BBR,确认开启: sysctl net.ipv4.tcp_congestion_control 输出应为 bbr。 防火墙 ufw 只开放必要端口: ufw allow 22/tcp ufw allow 80/tcp ufw allow 443/tcp ufw allow 443/udp ufw --force enable Hysteria2 代理 安装: bash <(curl -fsSL https://get.hy2.sh/) 配置 /etc/hysteria/config.yaml: listen: :443 tls: type: selfsigned cert: /etc/hysteria/cert.pem key: /etc/hysteria/key.pem auth: type: password password: <your_password> quic: initStreamReceiveWindow: 8388608 maxStreamReceiveWindow: 8388608 initConnReceiveWindow: 20971520 maxConnReceiveWindow: 20971520 masquerade: type: proxy proxy: url: https://bing.com rewriteHost: true 自签名证书: ...