收藏一些VPS相关脚本
收藏一些VPS相关脚本
分享一些常用的脚本
VPS 相关脚本#
VPS 测试脚本#
融合怪#
https://github.com/oneclickvirt/ecs
-
国际用户无加速:
export noninteractive=true && curl -L https://raw.githubusercontent.com/oneclickvirt/ecs/master/goecs.sh -o goecs.sh && chmod +x goecs.sh && ./goecs.sh env && ./goecs.sh install && goecs -
国际/国内使用 CDN 加速:
export noninteractive=true && curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/ecs/master/goecs.sh -o goecs.sh && chmod +x goecs.sh && ./goecs.sh env && ./goecs.sh install && goecs -
国内用户使用 CNB 加速:
export noninteractive=true && curl -L https://cnb.cool/oneclickvirt/ecs/-/git/raw/main/goecs.sh -o goecs.sh && chmod +x goecs.sh && ./goecs.sh env && ./goecs.sh install && goecs
NodeQuality#
bash <(curl -sL https://run.NodeQuality.com)
NWS-国际测速#
bash <(curl -sSL https://nws.sh/main.sh)
网络 Ping/DNS 测试#
https://github.com/Cd1s/network-latency-tester
bash <(wget -qO- https://raw.githubusercontent.com/Cd1s/network-latency-tester/main/latency.sh)
VPS 线路测试#
回程测试
curl https://raw.githubusercontent.com/ludashi2020/backtrace/main/install.sh -sSf | sh
wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh
网络质量检测#
https://github.com/xykt/NetQuality
bash <(curl -Ls https://Net.Check.Place)
流媒体#
bash <(curl -L -s check.unlock.media)
VPS 常用脚本#
Linux 换源#
https://github.com/SuperManito/LinuxMirrors
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
Docker 安装#
bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
一键 DD/重装脚本#
https://github.com/bin456789/reinstall
- 国际用户无加速:
curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O ${_##*/} $_
- 国内用户使用 CNB 加速:
curl -O https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.sh || wget -O ${_##*/} $_
重装 Debian12
bash reinstall.sh debian 12
具体使用见 Github
添加 SWAP#
https://github.com/spiritLHLS/addswap
- 国际用户无加速:
curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh
- 国内用户使用 CNB 加速:
curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh
BBR 优化#
Eric86777/vps-tcp-tune#
# 安装别名
bash <(curl -fsSL "https://raw.githubusercontent.com/Eric86777/vps-tcp-tune/main/install-alias.sh?$(date +%s)")
# 重新加载配置
source ~/.bashrc # 或 source ~/.zshrc
# 以后直接使用
bbr
超萌 BBRV3#
https://www.nodeseek.com/post-215252-1
wget https://raw.githubusercontent.com/byJoey/Actions-bbr-v3/refs/heads/main/install.sh
chmod +x install.sh
sudo ./install.sh
其他脚本/命令#
禁用 Cloudflare IPv6#
curl -X PATCH "https://api.cloudflare.com/client/v4/zones/替换成你的zone id/settings/ipv6" \
-H "X-Auth-Email: 登录邮箱" \
-H "X-Auth-Key: 替换成你的key" \
-H "Content-Type: application/json" \
-d '{
"value": "off"
}'
暂未开放评论区, 欢迎加入 QQ 群交流讨论:
QQ 群 959731247