Linux-VPS-玩机必备一键脚本合集-收藏备用

🚀 Linux VPS 玩机必备一键脚本合集(收藏备用)

无论是玩纯净系统、测速、跑分还是部署环境,有这一篇就够了!建议 Mark 收藏。


1️⃣ DD 重装系统脚本

⚠️ 注意:DD 重装会抹除所有数据,请提前备份!

  • leitbogioro 大佬脚本(支持 Debian 12)

    1
    2
    wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 12 -pwd 'password'

  • 萌咖大佬经典脚本(Debian 11)

    1
    2
    bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 密码 -port 端口 -a -firmware

  • beta.gs 大佬脚本

    1
    2
    wget --no-check-certificate -O NewReinstall.sh https://raw.githubusercontent.com/fcurrk/reinstall/master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

  • 一键 DD Windows 10

    1
    2
    bash <(curl -sSL https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh) -windows 10 -lang "cn"

🔑 默认账户Administrator | 默认密码Teddysun.com

2️⃣ 综合测试脚本(全家桶)

  • 融合怪测速(最全面,推荐)

    1
    2
    bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)

  • LemonBench(经典综合测试)

    1
    2
    wget -qO- https://raw.githubusercontent.com/LemonBench/LemonBench/main/LemonBench.sh | bash -s -- --fast

  • NodeBench

    1
    2
    bash <(curl -sL https://raw.githubusercontent.com/LloydAsp/NodeBench/main/NodeBench.sh)

3️⃣ CPU 性能跑分 (Geekbench)

  • Geekbench 6 (带网络带宽测试)

    1
    2
    curl -sL yabs.sh | bash

  • Geekbench 6 (纯性能测试,跳过国内无意义的国外节点测速)

    1
    2
    curl -sL yabs.sh | bash -s -- -i

  • Geekbench 5 (带网络带宽测试)

    1
    2
    curl -sL yabs.sh | bash -5

  • Geekbench 5 (纯性能测试)

    1
    2
    curl -sL yabs.sh | bash -s -- -i -5

4️⃣ 流媒体解锁及 IP 质量检测

  • 常用流媒体解锁测试

    1
    2
    bash <(curl -L -s check.unlock.media)

  • 原生检测脚本

    1
    2
    bash <(curl -sL Media.Check.Place)

  • RegionRestrictionCheck(准确度最高)

    1
    2
    bash <(curl -L -s https://github.com/1-stream/RegionRestrictionCheck/raw/main/check.sh)

  • IP 质量体检(欺诈分/原生IP查询)

    1
    2
    bash <(curl -sL IP.Check.Place)

5️⃣ 三网网速测试

  • Speedtest 测速

    1
    2
    bash <(curl -sL bash.icu/speedtest)

  • Taier 测速

    1
    2
    bash <(curl -sL res.yserver.ink/taier.sh)

  • Hyperspeed(三网测速)

    1
    2
    bash <(curl -Lso- https://bench.im/hyperspeed)

  • 全球节点测速

    1
    2
    curl -sL network-speed.xyz | bash

6️⃣ 回程路由轨迹测试

  • 简易回程测试(小白推荐)

    1
    2
    curl https://raw.githubusercontent.com/ludashi2020/backtrace/main/install.sh -sSf | sh

  • 详细回程测试(推荐)

    1
    2
    wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh

  • Testrace 测试

    1
    2
    wget https://ghproxy.com/https://raw.githubusercontent.com/vpsxb/testrace/main/testrace.sh -O testrace.sh && bash testrace.sh

7️⃣ 网络优化与 VPS 功能脚本

  • 一键添加 SWAP 虚拟内存

    1
    2
    wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh

  • 安装 Fail2ban(防暴力破解)

    1
    2
    wget --no-check-certificate https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/fail2ban.sh && bash fail2ban.sh 2>&1 | tee fail2ban.log

  • 内核自带 BBR 开启(适用于较新系统)

    1
    2
    3
    4
    echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
    echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
    sysctl -p

  • 多功能 BBR 安装脚本

    1
    2
    wget -N --no-check-certificate "https://gist.github.com/zeruns/a0ec603f20d1b86de6a774a8ba27588f/raw/4f9957ae23f5efb2bb7c57a198ae2cffebfb1c56/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

  • ylx2016 锐速/BBRPLUS/BBR2/BBR3 脚本

    1
    2
    wget -O tcpx.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh

  • TCP 窗口网络调优

    1
    2
    wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.sh

  • Cloudflare WARP 一键配置

    1
    2
    wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh

  • 测试 25 端口是否开放(发邮件必备)

    1
    2
    telnet smtp.aol.com 25

8️⃣ 常用环境及软件一键安装

  • 1panel vps控制面板一键安装

    1
    2
    bash -c "$(curl -sSL https://resource.1panel.pro/v2/quick_start.sh)"

  • Docker 官方一键安装

    1
    2
    curl -sSL https://get.daocloud.io/docker | sh

  • Python 环境安装

    1
    2
    curl -O https://raw.githubusercontent.com/lx969788249/lxspacepy/master/pyinstall.sh && chmod +x pyinstall.sh && ./pyinstall.sh

  • Realm 端口转发

    1
    2
    bash <(curl -L https://raw.githubusercontent.com/zhouh047/realm-oneclick-install/main/realm.sh) -i

  • EZgost 脚本

    1
    2
    wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/qqrrooty/EZgost/main/gost.sh && chmod +x gost.sh && ./gost.sh

  • 极光面板部署

    1
    2
    bash <(curl -fsSL https://raw.githubusercontent.com/Aurora-Admin-Panel/deploy/main/install.sh)

  • 哪吒监控(服务器探针)

    1
    2
    curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh

  • Aria2 下载一键脚本

    1
    2
    wget -N git.io/aria2.sh && chmod +x aria2.sh && ./aria2.sh

  • 宝塔面板安装(Ubuntu 示例)

    1
    2
    wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh && sudo bash install.sh

  • PVE 自动化虚拟化

    1
    2
    bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/oneclickvirt/pve/main/scripts/build_backend.sh)

  • Argox 配置

    1
    2
    bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/argox/main/argox.sh)

9️⃣ 多功能综合工具箱(强烈推荐)

  • 科技lion 综合箱

    1
    2
    apt update -y && apt install -y curl && bash <(curl -sL kejilion.sh)

  • SKY-BOX 工具箱

    1
    2
    wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && bash box.sh