VPS常用脚本

2020年8月14日

VPS常用脚本

BBR安装

BBR本站写过文章,这里直接贴上文章地址吧。

CentOS 6+ / 7+ ,Debian 7+,Ubuntu 12+
服务器安装BBR网络加速教程

CentOS 8
CentOS 8系统 开启 BBR加速/升级内核

宝塔Linux面板7.7破解版

7.7破解版博主实测2022年10月10日还可以使用。

宝塔Linux面板最新7.7专业版破解方式

系统重装

41合1的一键DD脚本

常用程序

aria2离线下载

宝塔linux面板搭建aria2离线下载服务器教程

Aria2一键安装管理脚本–CCAA

Rsync数据同步

centos系统安装Rsync进行数据增量同步,宝塔linux环境

服务器性能测试

VPS融合怪测评脚本

Github:https://github.com/spiritLHLS/ecs

这个脚本顾名思义,可以测试绝大多数的内容。内容过多,这里不放截图了,建议试试。

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

或者

bash <(wget -qO- --no-check-certificate https://github.com/spiritLHLS/ecs/raw/main/ecs.sh)

OpenAI检测

下面两个任选其一

OpenAI解锁检测脚本Lite版

bash <(curl -Ss "https://raw.githubusercontent.com/candyraws/OpenAI-Checker-lite/main/openai_check_lite.sh")

ChatGPT检测

bash <(curl -Ls https://cpp.li/openai)

Unix Bench

性能较为全面的跑分,跑分时间比较久(非常久)。

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

上面命令挨个执行即可。

A Bench.sh

较为简单的跑分,测试基本硬件配置信息、磁盘读写、网络测试等。

wget -qO- bench.sh | bash

回程路由

可测试 5 网回程路由(服务器到国内大陆的网络)。

电信、联通、移动、教育网、电信CN2(国内厦门)。

github:https://github.com/nanqinlang-script/testrace

wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
bash testrace.sh

上面2个命令挨个执行即可。

LemonBench

可测试基础配置信息、流媒体解锁、CPU跑分、内存/磁盘IO、和网络测试。

网络测试多数节点失效,结果可忽略。

快速测试:
wget -qO- http://ilemonra.in/LemonBenchIntl | bash -s fast
# 或者
curl -fsSL http://ilemonra.in/LemonBenchIntl | bash -s fast

完整测试:

wget -qO- http://ilemonra.in/LemonBenchIntl | bash -s full

# 或者

curl -fsSL http://ilemonra.in/LemonBenchIntl | bash -s full

分类测试:

# 磁盘测试(快速测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --dtfast
# 磁盘测试(完整测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --dtfull
# 宽带测试(快速测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --spfast
# 宽带测试(完整测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --spfull
# Traceroute测试(快速测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --trfast
# Traceroute测试(完整测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --trfull
# CPU基准测试(快速测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --sbcfast
# CPU基准测试(完整测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --sbcfull
# 内存基准测试(快速测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --sbmfast
# 内存基准测试(完整测试模式)
bash <(wget -qO- https://ilemonra.in/LemonBenchIntl) --sbmfull

Linux-NetSpeed

github:https://github.com/ylx2016/Linux-NetSpeed/

快速安装BBR原版内核(5.4.13/5.4.14/5.5.0)、BBRplus版内核(4.14.168)、多种Lotserver(锐速)内核、xanmod版内核(5.5.1)、BBR2测试版内核(5.4.0)、Zen版内核(5.5.2)

BBR+FQ加速、BBR+CAKE加速 、BBRplus+FQ版加速、Lotserver(锐速)加速、BBR2+FQ加速、BBR2+CAKE加速、BBR2+FQ+ECN加速、BBR2+CAKE+ECN加速

操作系统:CentOS 6/7/8,Debian 8/9/10,ubuntu 16/18/19

预先准备

centos:
yum install ca-certificates wget -y && update-ca-trust force-enable
debian / ubuntu:
apt-get install ca-certificates wget -y && update-ca-certificates

不卸载内核版本

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

卸载内核版本

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

 

Posted by 柴郡猫