欢迎来到好人卡资源网,专注网络技术资源收集,我们不仅是网络资源的搬运工,也生产原创资源。寻找资源请留言或关注公众号:烈日下的男人

mjj们的小鸡VPS常用脚本合集

linux sky995 3年前 (2020-12-11) 979次浏览 0个评论

本文及资源最后更新时间 2020-12-11 by sky995

VPS常用脚本

LemonBench

快速测试:
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

 

SuperSpeed

多节点国内三网上传下载测试

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

SuperBench

github:https://github.com/oooldking/script

基础配置检测,硬盘IO和网络检测

wget -qO- –no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
#或
curl -Lso- -no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

Zbench

github:https://github.com/FunctionClub/ZBench

基础配置检测,硬盘IO和网络检测

#中文版
wget -N –no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
#英文版
wget -N –no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh

 

UnixBench

github:https://github.com/kdlucas/byte-unixbench

Unixbench性能测试,测试项目有:系统调用、读写、进程、图形化测试、2D、3D、管道、运算、C库等系统基准性能提供测试数据。此脚本测试耗时较长!

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

回程路由

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

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

安装BBR

CentOS 6+/7+,Debian 8+,Ubuntu 16+

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

CentOS 8安装BBR

echo “net.core.default_qdisc=fq” >> /etc/sysctl.conf
echo “net.ipv4.tcp_congestion_control=bbr” >> /etc/sysctl.conf
sysctl -p
reboot重启服务器
#查看BBR是否开启成功
sysctl -n net.ipv4.tcp_congestion_control
返回bbr
lsmod | grep bbr
返回tcp_bbr

OpenVZ架构安装BBR

适用于CentOS/RHEL7+,Ubuntu15+,Debian8+

github:https://github.com/mixool/rinetd

#原版
wget –no-check-certificate https://raw.githubusercontent.com/mixool/rinetd/master/rinetd
#修改版
wget –no-check-certificate https://raw.githubusercontent.com/mixool/rinetd/master/rinetd_bbr_powered -O /root/rinetd
#修改权限
chmod +x rinetd
#修改rinetd的配置文件rinetd.conf,添加监听地址
vi rinetd.conf
# bindadress bindport connectaddress connectport
0.0.0.0 443 0.0.0.0 443
0.0.0.0 80 0.0.0.0 80
#设置开机启动
vi /etc/systemd/system/rinetd.service
[Unit]
Description=rinetd
[Service]
ExecStart=/root/rinetd -f -c /root/rinetd.conf raw venet0:0
Restart=always
[Install]
WantedBy=multi-user.target
#执行
systemctl enable rinetd.service && systemctl start rinetd.service

 

Linux-NetSpeed

github文档:https://github.com/ylx2016/Linux-NetSpeed/releases

快速安装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

不卸载内核版本
wget -N https://github.000060000.xyz/tcpx.sh&#8221; && chmod +x tcpx.sh && ./tcpx.sh
卸载内核版本
wget -N https://github.000060000.xyz/tcp.sh&#8221; && chmod +x tcp.sh && ./tcp.sh
支持 Focal Ubuntu 20.04 的一键重装脚本
from https://www.hostloc.com/thread-696865-1-1.html
wget https://github.000060000.xyz/InstallNET.sh && chmod a+x InstallNET.sh && bash InstallNET.sh -u focal -v 64 -a

 


好人卡资源网 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:mjj们的小鸡VPS常用脚本合集
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址