常用VPS脚本

内核更改-开启BBR,更换BBRplus等

卸载内核版本

wget -O tcp.sh "https://git.io/coolspeeda" && chmod +x tcp.sh && ./tcp.sh

镜像(国内机器或ipv6 only请使用这个)

wget -N --no-check-certificate "https://dl.233.mba/sh/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

不卸载内核版本

wget -O tcpx.sh "https://git.io/JYxKU" && chmod +x tcpx.sh && ./tcpx.sh

镜像(国内机器或ipv6 only请使用这个)

wget -N --no-check-certificate "https://dl.233.mba/sh/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh

老鬼大佬的SuperBench测试脚本

wget -qO- git.io/superbench.sh | bash
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

镜像(国内机器或ipv6 only请使用这个)

wget -qO- --no-check-certificate https://dl.233.mba/sh/superbench.sh | bash

秋水逸冰大佬的UnixBench.sh

wget -qO- bench.sh | bash
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh./unixbench.sh

Yet-Another-Bench-Script

特点:支持速度测试,硬盘测试,Geekbench

wget -qO- yabs.sh | bash

三网测速

bash <(curl -Lso- https://git.io/superspeed_uxh)

LemonBench.sh

特点:

服务器基础信息(CPU信息/内存信息/Swap信息/磁盘空间信息等)
流媒体解锁情况
Speedtest网速测试 (本地到最近源及国内各地域不同线路的网速)
磁盘测试(4K块/1M块 直接写入测试)
路由追踪测试(追踪到国内和海外不同线路的路由信息)
Spoofer测试(获取详细网络信息,快速判断服务器接入线路)

快速测试:

curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast

完整测试:

curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s full

流媒体解锁测试脚本

特点:支持超多个流媒体的ipv4与ipv6解锁情况
https://github.com/lmc999/RegionRestrictionCheck

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

Cloudflare warp一键脚本

脚本特点:

  • 支持 Warp+ 账户,附带第三方刷 Warp+ 流量和升级内核 BBR 脚本
  • 普通用户友好的菜单,进阶者通过后缀选项快速搭建
  • 智能判断vps操作系统:Ubuntu 18.04、Ubuntu 20.04、Debian 10、Debian 11、CentOS 7、CentOS 8,请务必选择 LTS 系统;
    智能判断硬件结构类型:AMD 或者 ARM
  • 结合 Linux 版本和虚拟化方式,自动优选三个 WireGuard 方案。
    网络性能方面:内核集成 WireGuard>安装内核模块>BoringTun>wireguard-go
  • 智能判断 WGCF 作者 github库的最新版本 (Latest release)
  • 智能分析内网和公网IP生成 WGCF 配置文件
  • 输出结果,提示是否使用 WARP IP ,IP 归属地

WARP好处

  • 解锁奈飞流媒体
  • 避免 Google 验证码或是使用 Google 学术搜索
  • 可调用 IPv4 接口,使青龙和V2P等项目能正常运行
  • 由于可以双向转输数据,能做对方VPS的跳板和探针,替代 HE tunnelbroker
  • 能让 IPv6 only VPS 上做的节点支持 Telegram

脚本:

bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh)
bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh) -C -A sg -4 -N n -M 1

带参数 (pass parameter)
paremeter 参数 value 值 describe 具体动作说明
-E English 英文
-C Chinese 中文
-U Uninstall 卸载
-4 Brush IPv4 IP 刷 IPv4
-6 Brush IPv6 IP 刷 IPv6
-S Brush Socks5 刷 Socks5
-M 1 Mode 1: detect every 5 minute 每5分钟检测
-M 2 Mode 2: run by screen 以 screen 方式运行
-M 3 Mode 2: run by nohup & 以 hup & 方式运行
-A ** region abbreviation,such as us. 地区简码,如 us
-N n Unlock Neflix 解锁奈飞
-N d Unlock Disney+ 解锁迪士尼
-N ud Unlock Neflix and Disney+ 解锁奈飞和迪士尼
-T Token@ID@Name Receive messages Bot 接收信息的 TG bot 信息

FunctionClub大佬的内存检测脚本

检测VPS真实可分配内存,适用于检测VPS超售情况

CentOS / RHEL:

yum install wget -y
yum groupinstall "Development Tools" -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

Ubuntu / Debian

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