整理自日常 VPS 运维中的常用脚本,涵盖系统重装、性能测试、网络测速、流媒体检测、环境安装等场景。持续更新中。
一、系统重装
史上最强 DD 脚本(推荐)
支持重装多种 Linux 发行版和 Windows,功能最全面:
1 2 3
| 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'
|
萌咖 DD 脚本
经典脚本,稳定可靠:
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 DD 脚本
交互式菜单,可视化操作:
1 2 3
| 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 系统
使用最强 DD 脚本安装 Windows:
1 2
| bash <(curl -sSL https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh) \ -windows 10 -lang "cn"
|
默认账户:Administrator,密码:Teddysun.com
二、综合性能测试
LemonBench(快速版)
1
| wget -qO- https://raw.githubusercontent.com/LemonBench/LemonBench/main/LemonBench.sh | bash -s -- --fast
|
融合怪(推荐)
功能全面,包含 CPU、内存、磁盘、网络、流媒体等:
1
| bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)
|
NodeBench
轻量快速测试:
1
| bash <(curl -sL https://raw.githubusercontent.com/LloydAsp/NodeBench/main/NodeBench.sh)
|
YABS(Yet Another Bench Script)
1 2 3 4 5
| curl -sL yabs.sh | bash
curl -sL yabs.sh | bash -s -- -5
|
GB5 专项测试
1
| bash <(curl -sL bash.icu/gb5)
|
三、流媒体及 IP 质量检测
流媒体解锁检测
1 2 3 4 5 6 7 8
| bash <(curl -L -s check.unlock.media)
bash <(curl -sL Media.Check.Place)
bash <(curl -L -s https://github.com/1-stream/RegionRestrictionCheck/raw/main/check.sh)
|
IP 质量体检
1
| bash <(curl -sL IP.Check.Place)
|
四、网络测速
Speedtest
1
| bash <(curl -sL bash.icu/speedtest)
|
Taier
1
| bash <(curl -sL res.yserver.ink/taier.sh)
|
Hyperspeed
1
| curl -Lso- https://bench.im/hyperspeed | bash
|
全球测速
1
| curl -sL network-speed.xyz | bash
|
五、路由回程测试
一键回程测试(小白友好)
1
| 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
|
北京电信回程测试
1 2
| wget https://ghproxy.com/https://raw.githubusercontent.com/vpsxb/testrace/main/testrace.sh \ -O testrace.sh && bash testrace.sh
|
六、系统优化脚本
添加 SWAP
1
| 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 5
| echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf sysctl -p sysctl net.ipv4.tcp_available_congestion_control lsmod | grep bbr
|
多功能 BBR 安装脚本
1 2
| wget -N --no-check-certificate "https://gist.githubusercontent.com/zeruns/a0ec603f20d1b86de6a774a8ba27588f/raw/4f9957ae23f5efb2bb7c57a198ae2cffebfb1c56/tcp.sh" \ && chmod +x tcp.sh && ./tcp.sh
|
锐速 / 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
| wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.sh
|
25 端口开放测试
七、环境及软件一键安装
Docker
1
| 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
|
iperf3(带宽测试工具)
Realm(流量转发)
1
| bash <(curl -L https://raw.githubusercontent.com/zhouh047/realm-oneclick-install/main/realm.sh) -i
|
Gost(隧道代理)
1 2
| wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/qqrrooty/EZgost/main/gost.sh \ && chmod +x gost.sh && ./gost.sh
|
极光面板(Aurora Panel)
1
| 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
|
Cloudflare WARP
1
| wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh
|
Aria2(下载工具)
1
| wget -N git.io/aria2.sh && chmod +x aria2.sh && ./aria2.sh
|
宝塔面板(国产运维面板)
1
| wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh && sudo bash install.sh
|
PVE 虚拟化一键安装
1
| bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/oneclickvirt/pve/main/scripts/build_backend.sh)
|
八、综合工具箱
科技 lion 脚本
多功能 Linux 运维工具箱:
1
| curl -sS -O https://kejilion.pro/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh
|
SKY-BOX
蓝眼云工具箱,功能丰富:
1 2
| wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh \ && chmod +x box.sh && clear && ./box.sh
|
大部分脚本整理自网络,在此感谢各位大佬的贡献。本贴会持续更新和补充实用脚本。