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 |
| 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 '密码' |
| 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 等论坛口碑不良,多次骂人。
| curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh |
性能测试脚本
流量稀缺的服务器(不测试 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 |
| 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.shchmod +x unixbench.sh./unixbench.sh |
网络测试脚本
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 模块
内存填充测试
| apt-get updateapt-get install wget build-essential -ywget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cppgcc -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.confecho "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.confsysctl -psysctl net.ipv4.tcp_available_congestion_controllsmod | 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 |
| 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 网络
| 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 |
独立服务器硬盘时间
常用软件脚本
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
安装教程
其他
VPS 剩余价值计算器
宝塔一键挂载硬盘脚本
| 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_x64chmod +x webBenchmark_linux_x64./webBenchmark_linux_x64 -c 64 -s http://链接.jpg |
腾讯云删除监控
| sudo -isystemctl stop tat_agentsystemctl disable tat_agent/usr/local/qcloud/stargate/admin/uninstall.sh/usr/local/qcloud/YunJing/uninst.sh/usr/local/qcloud/monitor/barad/admin/uninstall.shrm -f /etc/systemd/system/tat_agent.servicerm -rf /usr/local/qcloudrm -rf /usr/local/sarm -rf /usr/local/agenttoolsrm -rf /usr/local/qcloudprocess=(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 donedone |
测试 25 端口是否开放
测试 IPv4 优先还是 IPv6 优先