vps常用脚本
vps常用脚本
Linux VPS一键添加/删除Swap虚拟内存
提示:脚本不支持OpenVZ架构,安装会自动退出。
运行命令:
1 | wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh |
然后根据选项进行操作,记得添加swap的时候填写纯数字,默认单位为M。
测试脚本:
1 | wget -qO- bench.sh | bash |
开启bbr:
原文地址:https://v2rayssr.com/bbr.html
1 | wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh |
流媒体检测脚本
对于amd64(x86_64),请使用如下命令下载运行
1 | wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/v3.1.0/nf_linux_amd64 && chmod +x nf && ./nf |
对于arm64,请使用如下命令下载运行
1 | wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/v3.1.0/nf_linux_arm64 && chmod +x nf && ./nf |
对于部分路由器,其SoC使用了mips架构,请使用如下命令下载运行
1 | wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/v3.1.0/nf_linux_mips && chmod +x nf && ./nf |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 𝓬𝓪𝓵𝓰‘𝓼 𝓫𝓵𝓸𝓰!