VPS常用脚本汇集
系统更新
apt update -y
系统支持
apt install -y openssl cron socat curl unzip vim wget
系统中文化支持
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/LocaleCN/master/LocaleCN.sh && bash LocaleCN.sh
一键DD系统
DD后默认密码:cxthhhhh.com。
来源:https://www.cxthhhhh.com/network-reinstall-system-modify
wget --no-check-certificate -qO ~/Network-Reinstall-System-Modify.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/Network-Reinstall-System-Modify.sh' && chmod a+x ~/Network-Reinstall-System-Modify.sh && bash ~/Network-Reinstall-System-Modify.sh -UI_Options
系统优化
bbr+fq开启
wget -N --no-check-certificate "https://raw.githubusercontent.com/ylx2016/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
Linux内核4.9以上开启bbr+fq算法,可以使用三行命令解决问题
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
tcp通信优化
wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.sh
服务器测试
服务器简洁信息
wget -q https://github.com/Aniverse/A/raw/i/a && bash a
bench.sh
wget -qO- bench.sh | bash
cpu benchmark - yabs.sh
bash <(wget -qO- https://raw.githubusercontent.com/masonr/yet-another-bench-script/master/yabs.sh -o /dev/null) -id
curl -sL yabs.sh | bash
superbench.sh
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
LemonBench
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast
流媒体支持测试
新版本:
bash <(curl -L -s check.unlock.media)
老版本:
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
IP纯度测试
bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/qzcheck.sh)
#网站直接查询:https://scamalytics.com/
三网测速
bash <(curl -Lso- https://bench.im/hyperspeed)
回程路由测试
wget -qO- http://tutu.ovh/bash/returnroute/test.sh | bash
TCPING安装
apt install -y tcptraceroute bc && wget http://www.vdberg.org/~richard/tcpping -O /usr/bin/tcping && chmod +x /usr/bin/tcping
其他脚本
gost隧道
wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/KANIKIG/Multi-EasyGost/master/gost.sh && chmod +x gost.sh && ./gost.sh
Docker & Docker-Compose
curl -sSL https://get.daocloud.io/docker | sh
systemctl start docker
systemctl enable docker
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Arm架构构的docker-compose
curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh
#https://github.com/docker/compose/releases
curl -L "https://github.com/docker/compose/releases/download/v2.2.2/docker-compose-linux-armv7" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Docker-Compose安装测试
docker-compose --version
在线测速
https://github.com/Xun-X/Stair-Speedtest-Portable
文章目录
关闭
sds