分享一些常用的脚本
VPS 相关脚本
VPS 测试脚本
融合怪
https://github.com/oneclickvirt/ecs
国际用户无加速:
1
| 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 加速:
1
| 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 加速:
1
| 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
https://nodequality.com/
1
| bash <(curl -sL https://run.NodeQuality.com)
|
NWS-国际测速
https://nws.sh/
1
| bash <(curl -sSL https://nws.sh/main.sh)
|
网路 Ping/DNS 测试
https://github.com/Cd1s/network-latency-tester
1
| bash <(wget -qO- https://raw.githubusercontent.com/Cd1s/network-latency-tester/main/latency.sh)
|
VPS 线路测试
回程测试
1
| curl https://raw.githubusercontent.com/ludashi2020/backtrace/main/install.sh -sSf | sh
|
1
| wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh
|
VPS 常用脚本
Linux 换源
https://github.com/SuperManito/LinuxMirrors
1
| bash <(curl -sSL https://linuxmirrors.cn/main.sh)
|
Docker 安装
1
| bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
|
一键 DD/重装脚本
https://github.com/bin456789/reinstall
1
| curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O ${_##*/} $_
|
1
| curl -O https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.sh || wget -O ${_##*/} $_
|
重装Debian12
1
| bash reinstall.sh debian 12
|
具体使用见 Github
添加 SWAP
https://github.com/spiritLHLS/addswap
1
| curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh
|
1
| 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
|
一键开启BBR3
来源 柯南脚本站 因原脚本地址使用时经常530错误 这里提供自托管的脚本地址
1
| bash <(curl -fsSL https://list.yppp.net/d/cos/bash/bbr3.sh)
|
其他脚本/命令
禁用 Cloudflare IPV6
1 2 3 4 5 6 7
| 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" }'
|