KKCAT
684 字
3 分鐘
VPS常用腳本集合
2024-08-04

VPS常用腳本集合#

該文章基本匯集了VPS所需要的一切腳本。歡迎補充新增。
維護者:archives.vip
歡迎聯系 TG@hostlocc

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大佬的腳本(推薦)#

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

5k哥的腳本#

風險警告:此人在loc等論壇口碑不良,多次罵人。

服務器綜合測試腳本#

綜合測試腳本(推薦)#

GitHub開源地址

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

性能測試腳本#

YABS(推薦)#

GitHub開源地址

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 專測腳本#

GitHub開源地址
論壇大佬@Google 開發

bash <(curl -sL gb5.top)

LemonBench#

GitHub開源地址

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

超售測試腳本#

一鍵檢測超售#

LOC帖

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

ylx大佬的銳速/BBRPLUS/BBR2#

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

Swap與內存壓縮腳本#

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網絡#

wget -N https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh

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)

其他#

VPS剩余價值計算器#

https://feichong.net/tool/shengyujiazhi.php

VPS常用腳本集合
https://kkcat.blog/posts/vps-common-script-collection/
作者
KKCAT
發佈於
2024-08-04
許可協議
CC BY-NC-SA 4.0