VPS常用脚本合集
常用脚本
VPS常用脚本合集

1、BBR+锐速一键脚本

1、不卸载内核:

wget -N --no-check-certificate "https://github.000060000.xyz/tcpx.sh"; chmod +x tcpx.sh

2、卸载内核:

wget -N --no-check-certificate "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

二、测速脚本

1

wget -qO- bench.sh | bash 或 curl -Lso- bench.sh | bash

2

bash <(curl -Lso- https://git.io/superspeed)

3 三网

三、检测Netflix解锁脚本

1

bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")

2

bash <(curl -sL haoduck.com/sh/nf.sh)

3

wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.61/nf_2.61_linux_amd64 && chmod +x nf && clear && ./nf

4

bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

5

bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")

6

bash <(curl -Ls https://raw.githubusercontent.com/siemenstutorials/VPSNFCHECK/master/test.sh)

7

bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

 

四、VPS的CPU性能跑分

Geekbench 5

curl -sL yabs.sh | bash -s -- -fi

Geekbench 4

curl -sL yabs.sh | bash -s -- -fi4

老外比较爱用的

wget -qO- yabs.sh | bash

五、三网回程线路测试

1 mtr_trace

curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash

2、三网测速脚本

bash <(curl -Lso- http://yun.789888.xyz/speedtest.sh)

 

六、一键查看

1 一键查看独立服务器通电时间和硬盘型号

wget -q https://github.com/Aniverse/A/raw/i/a && bash a

2 一键测试25端口是否开放

telnet smtp.aol.com 25

3 一键测试IPv4优先还是IPv6优先

curl ip.p3terx.com

4 一键开启BBR(适用于较新的Debian、Ubuntu)

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr

5  一键修改默认SSH端口,自行替换2222

sed -i 's/#Port\ 22/Port\ 2222/' /etc/ssh/sshd_config && systemctl reload ssh

6 一键清理 /var/log/目录下的过期日志

find /var/log/ -name "*.1" -exec rm -rf {} \; && find /var/log/ -name "*.log.1" -exec rm -rf {} \; && find /var/log/ -name "*.gz" -exec rm -rf {} \;

7 目前用过的最好用,功能最全的套warp脚本

wget -N https://raw.githubusercontent.com/fscarmen/warp/main/warp-go.sh && bash warp-go.sh [option] [lisence]

 

七、安装docker

1 国外机

curl -sSL https://get.docker.com/ | sh

2 国内机

curl -sSL https://get.daocloud.io/docker | sh

卸载docker

sudo apt-get remove docker docker-engine
rm -fr /var/lib/docker/

安装docker-compose

1 国外机

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

2 国内机

curl -L https://get.daocloud.io/docker/compose/releases/download/v2.1.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

八、综合工具箱(强烈推荐,集成了很多脚本)

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh

 

 

数据来源

https://isedu.top/index.php/archives/35/

https://www.zhujizixun.com/shell

https://hostloc.com/forum.php?mod=viewthread&tid=921605&highlight=%E5%B8%B8%E7%94%A8%E8%84%9A%E6%9C%AC

https://hostloc.com/thread-1097221-1-1.html

 

相关导航