侧边栏壁纸
博主头像
xiaoming博主等级

累死自己,卷死别人,为了小刘而努力!!!

  • 累计撰写 24 篇文章
  • 累计创建 7 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

vps 常用测试脚本

Administrator
2023-09-03 / 0 评论 / 0 点赞 / 60 阅读 / 7306 字 / 正在检测是否收录...
  • 1. 综合工具箱(强烈推荐)
  • 2. ChatGPT测试
  • 3. 性能测试
    • 3.1 单线程测试
    • 3.2 最全测速脚本
    • 3.3 superbench
    • 3.4 Bench.sh
  • 4. 速度测试
    • 4.1 显示延迟、抖动
    • 4.2 直接显示回程线路
    • 4.3 四网测速
    • 4.4 三网测速
    • 4.5 快速四网测试版本
  • 5. 测试 25 端口是否开放
  • 6. 测试 IPv4 优先还是 IPv6 优先
  • 7. 流媒体测试
    • 7.1 全媒体测试
    • 7.2 奈飞测试
  • 8. WARP
  • 9. 服务器时间
    • CentOS 同步时间
  • 10. BBR
    • CentOS 7 BBR
    • 一键开启 BBR
  • 11. 防火墙
    • CentOS 关闭防火墙

1. 综合工具箱(强烈推荐)

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

2. ChatGPT测试

检测是否可以访问 ChatGPT 脚本 来源

bash <(curl -Ls https://raw.githubusercontent.com/missuo/OpenAI-Checker/main/openai.sh)

修改检测是否可以访问 ChatGPT 脚本

BASH
bash <(curl -Ls https://ourl.co/oaic)
BASH
bash <(curl -Ls https://cdn.jsdelivr.net/gh/missuo/OpenAI-Checker/openai.sh)

3. 性能测试

3.1 单线程测试

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

3.2 最全测速脚本

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

3.3 superbench

BASH
wget -qO- git.io/superbench.sh | bash

3.4 Bench.sh

BASH
wget -qO- bench.sh | bash

4. 速度测试

4.1 显示延迟、抖动

BASH
bash <(wget -qO- https://bench.im/hyperspeed)

4.2 直接显示回程线路

BASH
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
BASH
wget -q route.f2k.pub -O route && bash route
PLAINTEXT
# 第一个
wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
bash testrace.sh

# 第二个
wget -qO- git.io/besttrace | bash

4.3 四网测速

BASH
wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh

bash jcnf.sh

4.4 三网测速

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

4.5 快速四网测试版本

BASH
bash <(curl -Lso- https://dl.233.mba/d/sh/speedtest.sh)
BASH
bash <(curl -Lso- https://git.io/J1SEh)

5. 测试 25 端口是否开放

BASH
telnet smtp.aol.com 25

6. 测试 IPv4 优先还是 IPv6 优先

BASH
curl ip.p3terx.com

7. 流媒体测试

7.1 全媒体测试

BASH
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

7.2 奈飞测试

BASH
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.5/nf_2.5_linux_amd64 && chmod +x nf && clear && ./nf
PLAINTEXT
#第一个
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

# 第二个
bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")

8. WARP

BASH
wget -N --no-check-certificate https://cdn.jsdelivr.net/gh/YG-tsj/CFWarp-Pro/multi.sh && chmod +x multi.sh && ./multi.sh

之后进入脚本快捷方式为 `bash multi.sh`

9. 服务器时间

CentOS 同步时间

BASH
yum -y install ntpdate
timedatectl set-timezone Asia/Shanghai
ntpdate ntp1.aliyun.com

10. BBR

CentOS 7 BBR

BASH
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

一键开启 BBR

注意:需要 Linux Kernel 内核升级到 4.9 及以上版本可以实现 BBR 加速

BASH
uname -srm

输出结果:

PLAINTEXT
Linux 3.10.0-957.12.2.el7.x86_64 x86_64
3 - 内核版本.
10 - 主修订版本.
0-957 - 次要修订版本.
12 - 补丁版本.

一般来说,Ubuntu18.04 以上就可以 (默认的内核 4.15)

PLAINTEXT
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

11. 防火墙

CentOS 关闭防火墙

BASH
systemctl start supervisord
systemctl disable firewalld
systemctl stop firewalld
0

评论区