2025 常用VPS脚本工具

收集整理的2024最新的常用VPS脚本工具,方便要使用的时候可以快速的找到,包含VPS测试脚本(一键测评,综合测试,IP质量/解锁,带宽测试,路由追踪,延迟/丢包测试),运维工具包等,DD重装系统脚本,科学工具,其他工具等等,会定期添加修改一些更新或者失效的脚本。

https://s.rmimg.com/2024-07-18/1721313796-566549-2024-vps-script.png

## Linux一键测评脚本

⏺Nlbench.sh 正式版本:

NodeLoc提供给各位用户的主机聚合测评脚本,可一键自动对主机进行Yabs、融合怪、IP质量、流媒体解锁,三网测速,iperf3,回程路由等测评,测评结束后将会保存结果为MarkDown文件,方便快速上传至NodeLoc论坛。 Github项目地址:[https://github.com/everett7623/nodeloc\_vps\_test](https://github.com/everett7623/nodeloc_vps_test)

</s><i> </i>curl -sSL abc.sd | bash<i> </i><e>

https://s.rmimg.com/2024-07-18/1721314221-720281-image.png

## VPS 综合测试

⏺融合怪:

</s><i> </i>curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh &amp;&amp; chmod +x ecs.sh &amp;&amp; bash ecs.sh<i> </i><e>

</s><i> </i>bash &lt;(wget -qO- bash.spiritlhl.net/ecs)<i> </i><e>

https://s.rmimg.com/2024-07-18/1721314352-425847-image.png

⏺融合怪GO 版本(Linux/FreeBSD/MacOS使用):
项目地址:https://github.com/oneclickvirt/ecs

</s><i> </i>curl -L https://raw.githubusercontent.com/oneclickvirt/ecs/master/goecs.sh -o goecs.sh &amp;&amp; chmod +x goecs.sh &amp;&amp; bash goecs.sh env &amp;&amp; bash goecs.sh install &amp;&amp; goecs<i> </i><e>

</s><i> </i>curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/ecs/master/goecs.sh -o goecs.sh &amp;&amp; chmod +x goecs.sh &amp;&amp; bash goecs.sh env &amp;&amp; bash goecs.sh install &amp;&amp; goecs<i> </i><e>

⏺LemonBench:
检查vps基本信息,网络,流媒体解锁,路由等。

</s><i> </i>wget -qO- https://raw.githubusercontent.com/LemonBench/LemonBench/main/LemonBench.sh | bash -s -- --fast<i> </i><e>

⏺UnixBench.sh: 秋水逸冰大佬的作品,Unixbench的主要测试项目有:系统调用、读写、进程、图形化测试、2D、3D、管道、运算、C库等系统基准性能提供测试数据。

</s><i> </i>wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh &amp;&amp; chmod +x unixbench.sh &amp;&amp; ./unixbench.sh<i> </i><e>

https://s.rmimg.com/2024-07-18/1721314574-592722-image.png

⏺Bench 网络带宽及硬盘读写速率: 国外部分+国内部分节点)

</s><i> </i>wget -qO- bench.sh | bash<i> </i><e>

⏺SuperBench.sh 网络带宽及硬盘读写速率: SuperBench脚本是老鬼(Oldking)大神在基于秋水逸冰(teddysun)脚本bench.sh的基础上,加入了独立服务器通电时间检测、服务器虚拟化架构、TCP拥塞控制等功能。

</s><i> </i>wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash<i> </i><e>

⏺YABS 性能测试脚本: 脚本比较全面,可用来测试vps多项性能,包括配置信息、磁盘IO测试、网络带宽测试和Geekbench测试。

</s><i> </i>curl -sL yabs.sh | bash<i> </i><e>

⏺Geekbench 5 专测脚本:

</s><i> </i>bash &lt;(curl -sL gb5.top)<i> </i><e>

## IP 质量/解锁

⏺IP 质量检测:

</s><i> </i>bash &lt;(curl -Ls IP.Check.Place)<i> </i><e>

</s><i> </i>bash &lt;(wget -qO- bash.spiritlhl.net/ecs-ipcheck)<i> </i><e>

⏺流媒体解锁:

</s><i> </i>bash &lt;(curl -L -s media.ispvps.com) <i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721314763-836123-image.png]

</s><i> </i>bash &lt;(curl -L -s check.unlock.media)<i> </i><e>

</s><i> </i>bash &lt;(curl -Ls unlock.icmp.ing/scripts/test.sh)<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721314817-725819-image.png]

⏺OpenAI 解锁检测:

</s><i> </i>bash &lt;(curl -Ls https://github.com/ludashi2020/OpenAI-Checker/raw/main/openai.sh)<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721314857-432236-image.png]

## 带宽测试

⏺Hyperspeed 三网测速:

</s><i> </i>bash &lt;(curl -Lso- https://bench.im/hyperspeed)<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721314877-384055-image.png]

⏺综合测速脚本 nws.sh:

</s><i> </i>curl -sL nws.sh | bash<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721314923-666821-image.png]

⏺多功能 自更新 测速脚本: 三网,含多线程,单线程等测速

</s><i> </i>bash &lt;(curl -sL bash.icu/speedtest)<i> </i><e>

⏺DD 磁盘测试 生成5G 文件,顺序

</s><i> </i>dd if=/dev/zero of=5gb bs=1M count=5120<i> </i><e>

生成 5G 文件,随机

</s><i> </i>dd if=/dev/urandom of=5gb bs=1M count=5120<i> </i><e>

⏺HTTP 单线程下载测试

##### 服务端

启动简易 http 服务

</s><i> </i>python3 -m http.server<i> </i><e>

##### 客户端

直接用浏览器下载或其他工具下载
建议用edge等浏览器
也可以试试IDM下载
替换下方yourip为你的ip地址

``` wget http://yourip:8000/5gb ```
##### 删除测试文件

服务端删除文件:

</s><i> </i>rm 5gb<i> </i><e>

## 路由追踪

⏺ AutoTrace 回程路由 :

</s><i> </i>wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh &amp;&amp; chmod +x AutoTrace.sh &amp;&amp; bash AutoTrace.sh<i> </i><e>

⏺ BestTrace 回程路由:
进入后一键测试,北上广三网

``` wget -qO- git.io/besttrace | bash ```

⏺ BackTrace 回程路由:

</s><i> </i>curl https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh -sSf | sh<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721315116-632702-image.png]

⏺ NextTrace 回程路由:

</s><i> </i>curl nxtrace.org/nt |bash<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721315148-921598-image.png]

⏺ OpenTrace 回程路由:
OpenTrace 是 NextTrace 的跨平台 GUI 界面,带来您熟悉但更强大的用户体验。
[https://github.com/Archeb/opentrace](https://github.com/Archeb/opentrace)
[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721315267-25389-image.png]

⏺ Pingsx MTR 回程路由:
[https://ping.sx/mtr](https://ping.sx/mtr)
[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721315397-718028-image.png]

⏺ 去程路由:
[https://www.itdog.cn/traceroute/](https://www.itdog.cn/traceroute/)
[https://tools.ipip.net/traceroute.php](https://tools.ipip.net/traceroute.php)

## 延迟/丢包测试

⏺ Google/Facebook/X/Youtube/Netflix/Chatgpt/Github延迟

``` bash <(curl -sL https://nodebench.mereith.com/scripts/curltime.sh) ```

⏺ Ping.pe
全球延迟,丢包
[https://ping.pe](https://ping.pe)

⏺ Pingsx Ping
在线Ping,Port,DNS,MTR等测试
[https://ping.sx](https://ping.sx)

⏺ Itdog Ping
[https://www.itdog.cn/ping/](https://www.itdog.cn/ping/)

## 运维工具

⏺vps_scripts:

</s><i> </i>wget -O vps.sh https://raw.githubusercontent.com/everett7623/vps_scripts/main/vps.sh &amp;&amp; chmod +x vps.sh &amp;&amp; ./vps.sh<i> </i><e>

⏺科技 lion 一键脚本工具:

</s><i> </i>curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh &amp;&amp; chmod +x kejilion.sh &amp;&amp; ./kejilion.sh<i> </i><e>

⏺VPS 一键脚本工具箱:

</s><i> </i>curl -fsSL https://raw.githubusercontent.com/eooce/ssh_tool/main/ssh_tool.sh -o ssh_tool.sh &amp;&amp; chmod +x ssh_tool.sh &amp;&amp; ./ssh_tool.sh<i> </i><e>

⏺BlueSkyXN 综合工具箱:

</s><i> </i>wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh &amp;&amp; chmod +x box.sh &amp;&amp; clear &amp;&amp; ./box.sh<i> </i><e>

⏺jcnf 常用脚本工具包:

</s><i> </i>wget -O jcnfbox.sh https://raw.githubusercontent.com/Netflixxp/jcnf-box/main/jcnfbox.sh &amp;&amp; chmod +x jcnfbox.sh &amp;&amp; clear &amp;&amp; ./jcnfbox.sh<i> </i><e>

⏺Sm1rkBoy's 一键脚本:

</s><i> </i>bash &lt;(curl -Ls https://raw.githubusercontent.com/Sm1rkBoy/monitor_config/main/install.sh)<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721315450-885177-image.png]

⏺轻量VPS测试集合:

</s><i> </i>bash &lt;(curl -Ls resource.yserver.ink/all.sh) --custom<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721315478-409728-image.png]

⏺ one-click-installation-script 一键修复与安装脚本(各种脚本), 去GitHub寻找需要的 [https://github.com/spiritLHLS/one-click-installation-script](https://github.com/spiritLHLS/one-click-installation-script)

⏺VPS ToolBox:

``` bash <(curl -Lso- https://sh.vps.dance/toolbox.sh) ```

[upl-image-preview url=https://s.rmimg.com/2024-08-01/1722479623-886381-image.png]

⏺Nekoneko - Linux网络优化:

``` bash <(curl -Lso- http://sh.nekoneko.cloud/tools.sh) ```

[upl-image-preview url=https://s.rmimg.com/2024-08-01/1722479649-213046-image.png]

## DD重装脚本

系统默认为debian12

⏺leitbogioro大佬的脚本(推荐) :

</s><i> </i>wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' &amp;&amp; chmod a+x InstallNET.sh &amp;&amp; bash InstallNET.sh -debian 12 -pwd '密码'<i> </i><e>

⏺beta.gs大佬的脚本 :

</s><i> </i>bash &lt;(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 12 -v 64 -p 密码 -port 端口 -a -firmware<i> </i><e>

⏺beta.gs:

</s><i> </i>wget --no-check-certificate -O NewReinstall.sh https://raw.githubusercontent.com/fcurrk/reinstall/master/NewReinstall.sh &amp;&amp; chmod a+x NewReinstall.sh &amp;&amp; bash NewReinstall.sh<i> </i><e>

⏺Nekoneko - DD一键脚本:

</s><i> </i>bash &lt;(curl -Lso- http://sh.nekoneko.cloud/DD/AutoReinstall.sh)<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-08-01/1722479698-389896-image.png]

## 科学工具

### WARP

⏺WARP 集合(5warp版本集合): Cloudflare warp脚本 添加IPv4/IPv6网络,

</s><i> </i>bash &lt;(curl -sSL https://gitlab.com/fscarmen/warp_unlock/-/raw/main/unlock.sh)<i> </i><e>

日常维护 warp

⏺FSCARMEN Warp: Cloudflare warp脚本 添加IPv4/IPv6网络

</s><i> </i>wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh &amp;&amp; bash menu.sh<i> </i><e>

日常维护 warp

⏺FSCARMEN WARP-GO: Cloudflare warp脚本 添加IPv4/IPv6网络

</s><i> </i>wget -N https://raw.githubusercontent.com/fscarmen/warp/main/warp-go.sh &amp;&amp; bash warp-go.sh<i> </i><e>

日常维护 warp-go

⏺P3TERX Warp: Cloudflare warp脚本 添加IPv4/IPv6网络

</s><i> </i>bash &lt;(curl -fsSL git.io/warp.sh) menu<i> </i><e>

日常维护 bash warp.sh

⏺勇哥 Warp: Cloudflare warp脚本 添加IPv4/IPv6网络

</s><i> </i>bash &lt;(curl -Ls https://gitlab.com/rwkgyg/CFwarp/raw/main/CFwarp.sh)<i> </i><e>

### BBR

⏺BBR 脚本:

</s><i> </i>echo "net.core.default_qdisc=fq" &gt;&gt; /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" &gt;&gt; /etc/sysctl.conf sysctl -p sysctl net.ipv4.tcp_available_congestion_control lsmod | grep bbr<i> </i><e>

⏺Linux-NetSpeed(锐速/bbrplus/bbr 魔改版):

</s><i> </i>wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" &amp;&amp; chmod +x tcp.sh &amp;&amp; ./tcp.sh<i> </i><e>

⏺ylx 大佬的锐速/BBRPLUS/BBR2:

</s><i> </i>wget -O tcpx.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh" &amp;&amp; chmod +x tcpx.sh &amp;&amp; ./tcpx.sh<i> </i><e>

⏺Nekoneko - BBR一键安装:

``` bash <(curl -Lso- http://sh.nekoneko.cloud/bbr/bbr.sh) ```

### 常用科学

⏺Sing-box 全家桶:

</s><i> </i>bash &lt;(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-box.sh)<i> </i><e>

⏺勇哥 Sing-box:

</s><i> </i>bash &lt;(curl -Ls https://gitlab.com/rwkgyg/sing-box-yg/raw/main/sb.sh)<i> </i><e>

⏺Mack-a 8合1:

</s><i> </i>wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" &amp;&amp; chmod 700 /root/install.sh &amp;&amp; /root/install.sh<i> </i><e>

⏺新版 X-UI:

</s><i> </i>bash &lt;(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)<i> </i><e>

</s><i> </i>bash &lt;(wget -qO- https://raw.githubusercontent.com/sing-web/x-ui/main/install_CN.sh)<i> </i><e>

⏺3X-UI:

``` bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) ```

⏺勇哥 x-ui:

</s><i> </i>bash &lt;(curl -Ls https://gitlab.com/rwkgyg/x-ui-yg/raw/main/install.sh)<i> </i><e>

### 中转

⏺Realm 转发: 脚本添加在中转鸡上

</s><i> </i>wget https://raw.githubusercontent.com/Jaydooooooo/Port-forwarding/main/RealmOneKey.sh &amp;&amp; chmod +x RealmOneKey.sh &amp;&amp; ./RealmOneKey.sh<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721315506-186646-image.png]

⏺Nekoneko - 一键Brook转发:

``` bash <(curl -Lso- http://sh.nekoneko.cloud/brook-pf/brook-pf.sh) ```

[upl-image-preview url=https://s.rmimg.com/2024-08-01/1722479772-305033-image.png]

### IPV6

⏺IPV6小鸡科学三步曲

dns64

``` cp /etc/resolv.conf{,.bak}; echo -e "nameserver 2a00:1098:2b::1\nnameserver 2a01:4f9:c010:3f02::1\nnameserver 2a01:4f8:c2c:123f::1\nnameserver 2a00:1098:2c::1" > /etc/resolv.conf ```

warp IPv4

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

argox (xray + argo) 或者 sba( sing-box + argo)

argox (xray + argo)

</s><i> </i>bash &lt;(wget -qO- https://raw.githubusercontent.com/fscarmen/argox/main/argox.sh) -C<i> </i><e>

sba( sing-box + argo)

</s><i> </i>bash &lt;(wget -qO- https://raw.githubusercontent.com/fscarmen/sba/main/sba.sh) -C<i> </i><e>

## 其他工具

⏺超售测试脚本:

</s><i> </i>wget --no-check-certificate -O memoryCheck.sh https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh &amp;&amp; chmod +x memoryCheck.sh &amp;&amp; bash memoryCheck.sh<i> </i><e>

[upl-image-preview url=https://s.rmimg.com/2024-07-18/1721315542-626505-image.png]

⏺移除virtio_balloon模块:

</s><i> </i>rmmod virtio_balloon<i> </i><e>

⏺内存填充测试: FunctionClub大佬作品,检测VPS真实可分配内存,适用于检测VPS超售情况

</s><i> </i>apt-get update apt-get install wget build-essential -y wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp gcc -l stdc++ memtester.cpp ./a.out<i> </i><e>

⏺spiritlhl 大佬的 zram 内存压缩脚本:

</s><i> </i>curl -L https://raw.githubusercontent.com/spiritLHLS/addzram/main/addzram.sh -o addzram.sh &amp;&amp; chmod +x addzram.sh &amp;&amp; bash addzram.sh<i> </i><e>

⏺moerats 大佬的添加 swap 脚本:

</s><i> </i>wget https://www.moerats.com/usr/shell/swap.sh &amp;&amp; bash swap.sh<i> </i><e>

⏺fail2ban 服务器 ssh 防爆破:

</s><i> </i>wget https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/fail2ban.sh &amp;&amp; bash fail2ban.sh 2&gt;&amp;1 | tee fail2ban.log<i> </i><e>

⏺独服硬盘测试: 独立服务器硬盘时间

</s><i> </i>wget -q https://github.com/Aniverse/A/raw/i/a &amp;&amp; bash a<i> </i><e>

⏺25端口:

</s><i> </i>telnet smtp.aol.com 25<i> </i><e>

⏺测试 IPv4 / IPv6 优先:

</s><i> </i>curl ip.p3terx.com<i> </i><e>

⏺PagerMaid-Pyro机器人 Docker安装 TG自走机器人(需要VPS)

</s><i> </i>wget https://raw.githubusercontent.com/TeamPGM/PagerMaid-Pyro/development/utils/docker.sh -O docker.sh &amp;&amp; chmod +x docker.sh &amp;&amp; bash docker.sh<i> </i><e>

⏺一键删除平台监控 一键移除大多数云服务器监控 涵盖阿里云、腾讯云、华为云、UCLOUD、甲骨文云、京东云

</s><i> </i>curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/install_scripts/dlm.sh -o dlm.sh &amp;&amp; chmod +x dlm.sh &amp;&amp; bash dlm.sh<i> </i><e>

⏺Nekoneko - Gost一键脚本:

``` bash <(curl -Lso- http://sh.nekoneko.cloud/EasyGost/gost.sh) ```

⏺Nekoneko - Ehco一键脚本:

``` bash <(curl -Lso- http://sh.nekoneko.cloud/ehco.sh/ehco.sh) ```

## 常用推荐

⏺哪吒探针 安装:

</s><i> </i>curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh &amp;&amp; chmod +x nezha.sh &amp;&amp; sudo ./nezha.sh<i> </i><e>

⏺Alist 一键安装:

</s><i> </i>curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install<i> </i><e>

⏺Xiao Alist 一键安装:

``` bash -c "$(curl --insecure -fsSL https://ddsrem.com/xiaoya_install.sh)" ```

⏺一键安装filebrowser平台

端口设置为3030了,其他登陆信息详见提示 filebrowser平台支持下载上传文件到服务器, 批量下载多个文件(自定义压缩格式),构建文件分享链接,设置分享时长 如果本地有启用IPV6优先级可能绑定到V6去了,使用lsof -i:3030查看绑定情况,切换优先级后再安装就正常了

</s><i> </i>curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/install_scripts/filebrowser.sh -o filebrowser.sh &amp;&amp; chmod +x filebrowser.sh &amp;&amp; bash filebrowser.sh<i> </i><e>

{“sticky”:true}

很好收藏起来慢慢看:xhj06:

来学习啦

太强辣

是否有检查过所有脚本是否有后门,害怕被拿来当矿机

点赞绑定收藏一键三连

@“Linux”#p50590 应该是 点赞、关注、书签 一键三连:huaji08:

感谢分享支持绑定

占楼,感谢费心整理

@“proe”#p50633 记得一键三连

点赞、关注、书签 一键三连

@“Jerome”#p50587 除了勇哥的被人说过,不过我一直用他的,其他的不知,自己测试吧,都是开源的

感谢分享

66666

</s>wget -O tcpx.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh" &amp;&amp; chmod +x tcpx.sh &amp;&amp; ./tcpx.sh<e>

这个脚本常用

@“wenliu”#p51809 有好用的可以分享分享

@“削除禁止”#p50634 能量已奉上

@“proe”#p52027 别给我啊:ac01: 给楼主

@“proe”#p52027 帮你转达了