合集 服务器 下的文章

手动为IPv6-only境外服务器添加WARP IPv4出口(mihomo方案)

🔧 配置准备1. 生成WireGuard密钥对# 使用wgcf工具生成(需提前安装) git clone https://github.com/ViRb3/wgcf cd wgcf ./wgcf generate📌 注意:生成的 private-key 和 public-key 需妥善保存此工具非Cloudflare官方客户端,但兼容WARP协议2. 获取WARP服务器IPv6地址dig AAAA engage.cloudflareclient.com +short # 备用地址(示例): 2606:4700:d0::a29f:c001🛠️ 配置文件详解# config.yaml log: debug # 调试模式便于排查问题 dns: enable: true ipv6: true # 启用IPv6 DNS解析 nameserver: - 2001:4860:4860::8888 # Google IPv6 DNS - 2001:4860:4860::8844 tun: enable: true stack: system # 使用系统

Linux VPS服务器性能优化命令

1. 基础系统优化1.1 关闭不必要的服务检查并禁用不必要的后台服务,减少资源占用:# 查看正在运行的服务 systemctl list-units --type=service --state=running # 禁用并停止服务 systemctl disable --now <service-name>常见可关闭服务:cups - 打印服务bluetooth - 蓝牙服务avahi-daemon - Zeroconf/Bonjour服务rpcbind - 旧版NFS服务1.2 系统与软件包更新保持系统最新以确保安全性和性能:# Debian/Ubuntu apt update && apt upgrade -y && apt autoremove -y # CentOS/RHEL yum update -y && yum clean all1.3 启用BBR拥塞控制算法优化TCP网络传输性能:# 配置BBR cat >> /etc/sysctl.conf <<EOF net.core.defau

目录