justhost
aws
dotdot
iwebf

VPS服务器一键脚本大全,最全面Linux VPS服务器一键脚本

racknerd

一键 DD 网络重装脚本:系统默认为debian12

moeclub 脚本

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

leitbogioro 脚本(推荐)

https://hostloc.com/thread-1159839-1-1.html

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

beta.gs 脚本

wget --no-check-certificate -O NewReinstall.sh https://raw.githubusercontent.com/fcurrk/reinstall/master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

服务器综合测试脚本(融合怪)(推荐)

curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

性能测试脚本

YABS(推荐)

wget -qO- yabs.sh | bash

流量稀缺的服务器(不测试iperf网络)

curl -sL yabs.sh | bash -s -- -i

我更喜欢geekbench5(不测试geekbench6)

curl -sL yabs.sh | bash -s -- -5

我喜欢geekbench5,但服务器流量稀缺(不测试geekbench6、不测试iperf网络)

curl -sL yabs.sh | bash -s -- -5 -i

Geekbench 5 专测脚本 NS论坛大佬@google 开发

bash <(curl -sL gb5.top)

LemonBench

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

UnixBench.sh

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

网络测试脚本

hyperspeed 三网测速(推荐)(未开源)

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

AutoTrace 三网回程线路显示(推荐)

wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh

backtrace 三网回程线路直接显示(小白用这个)

curl https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh -sSf | sh

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

wget -qO- bench.sh | bash

SuperBench.sh 网络带宽及硬盘读写速率(国内三网+speedtest+fast)

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

超售测试脚本

wget --no-check-certificate -O memoryCheck.sh https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh && chmod +x memoryCheck.sh && bash memoryCheck.sh

移除virtio_balloon模块

rmmod virtio_balloon

内存填充测试

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

流媒体测试脚本

RegionRestrictionCheck(推荐)

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

openai解锁检测

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

BBR脚本

一键开启BBR(适用于较新的Debian、Ubuntu)

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

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

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

BBRPLUS lkl-haproxy

lkl-linux+haproxy hack 版本 bbrplus,在 OpenVZ 工作良好。需要开启 TUN/TAP 和至少 256M 空余内存。

将以下代码复制到终端中,支持 Debian / Ubuntu / CentOS 镜像。

wget --no-check-certificate --no-cache -O lkl-haproxy.sh https://github.com/mzz2017/lkl-haproxy/raw/master/lkl-haproxy.sh && bash lkl

执行后按提示输入对应的内容。

[Info] 选择你要使用的功能: 
1.安装 lkl bbrplus
2.检查 lkl bbrplus运行状态
3.卸载 lkl bbrplus
输入数字以选择:

NanQinLang

Debian

wget https://github.com/tcp-nanqinlang/lkl-haproxy/releases/download/1.1.1/tcp_nanqinlang-haproxy-debian.sh
bash tcp_nanqinlang-haproxy-debian.sh

CentOS

wget https://github.com/tcp-nanqinlang/lkl-haproxy/releases/download/1.1.1/tcp_nanqinlang-haproxy-centos.sh
bash tcp_nanqinlang-haproxy-centos.sh

NanQinLang/Rinetd

Debian 单网卡

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-debianorubuntu.sh
bash tcp_nanqinlang-rinetd-debianorubuntu.sh

多网卡

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-debianorubuntu-multiNIC.sh
bash tcp_nanqinlang-rinetd-debianorubuntu-multiNIC.sh

CentOS 单网卡

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-centos.sh
bash tcp_nanqinlang-rinetd-centos.sh

多网卡

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-centos-multiNIC.sh
bash tcp_nanqinlang-rinetd-centos-multiNIC.sh

脚本会自动检测系统是否安装了BBRv3,并支持自动安装,如果已经安装了将智能切换到管理内核界面,可以更新内核或者卸载内核。

科技 Lion BBR V3 一键脚本(Debian/Ubuntu)

apt update -y  && apt install -y curl

科技 Lion 官网一键脚本

curl -sS -O https://kejilion.pro/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh

GitHub 一键脚本

如果 crul 一键脚本出现大段乱码!就用GitHub版本。

curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh

ylx大佬的锐速/BBRPLUS/BBR2

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

moerats大佬的添加swap脚本

wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh

spiritlhl大佬的zram内存压缩脚本

curl -L https://raw.githubusercontent.com/spiritLHLS/addzram/main/addzram.sh -o addzram.sh && chmod +x addzram.sh && bash addzram.sh

cloudflare warp脚本 添加IPv4/IPv6网络(2023.12.10更新)

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh [option] [lisence/url/token]

fail2ban服务器ssh防爆破

wget https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/fail2ban.sh && bash fail2ban.sh 2>&1 | tee fail2ban.log

独立服务器硬盘时间

wget -q https://github.com/Aniverse/A/raw/i/a && bash a

常用软件脚本

Docker

curl -sSL https://get.docker.com/ | sh

Aria2一键安装脚本

wget -N git.io/aria2.sh && chmod +x aria2.sh && bash aria2.sh

XUI

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

qbittorrent 4.3.9

https://hostloc.com/thread-1024684-1-1.html

宝塔一键挂载硬盘脚本

wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

acme生成免费证书

curl https://get.acme.sh | sh

剑皇刷流量脚本

wget https://cdn.jsdelivr.net/gh/maintell/webBenchmark@releases/download/0.6/webBenchmark_linux_x64
chmod +x webBenchmark_linux_x64
./webBenchmark_linux_x64 -c 64 -s http://链接.jpg

腾讯云删除监控

sudo -i
systemctl stop tat_agent
systemctl disable tat_agent
/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh
rm -f /etc/systemd/system/tat_agent.service
rm -rf /usr/local/qcloud
rm -rf /usr/local/sa
rm -rf /usr/local/agenttools
rm -rf /usr/local/qcloud
process=(sap100 secu-tcs-agent sgagent64 barad_agent agent agentPlugInD pvdriver )
for i in ${process[@]}
do
  for A in $(ps aux | grep $i | grep -v grep | awk '{print $2}')
  do
    kill -9 $A
  done
done

测试 25 端口是否开放

telnet smtp.aol.com 25

测试 IPv4 优先还是 IPv6 优先

curl ip.p3terx.com
未经允许不得转载:老狗VPS测评 » VPS服务器一键脚本大全,最全面Linux VPS服务器一键脚本
标签: