VPS常用脚本汇总

综合类

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

测试类

综合测试

LemonBench

curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast

superbench

wget -qO- git.io/superbench.sh | bash

bench

wget -qO- bench.sh | bash

网络测试

回程线路

#第一个
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash

#第二个
wget -q route.f2k.pub -O route && bash route

#第三个
wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
bash testrace.sh

#第四个
wget -qO- git.io/besttrace | bash

三网测速

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

测试IPv4优先还是IPv6优先

curl ip.p3terx.com

测试25端口是否开放

telnet smtp.aol.com 25

媒体测试

#全媒体测试
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

#奈飞测试
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.5/nf_2.5_linux_amd64 && chmod +x nf && clear && ./nf

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

优化类

网络优化

BBR网络优化

#1、开启系统自带BBR + fq :(适用于高版本的 Debian、Ubuntu、CentOS)
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

#2、一键 BBR 脚本,包括 BBR / BBR PLUS /魔改 BBR 等:
wget -N --no-check-certificate "https://raw.githubusercontent.com/ylx2016/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

#3、BBR 参数调优
wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.sh

WARP添加IPv4和IPv6地址

#添加ipv4地址
wget -N https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh 4

#添加ipv6地址
wget -N https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh 6

#添加双栈地址
wget -N https://cdn.jsdelivr.net/gh/fscarmen/warp/menu.sh && bash menu.sh d

#面板
warp

工具类

Docker

#更新必备软件
apt-get update && apt-get install -y wget vim

#安装
##国外:
curl -sSL https://get.docker.com/ | sh

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

#启动
systemctl start docker

#查看容器
docker system df -v
docker stats --no-stream

#容器添加自动重启
docker container update --restart=always 容器名字

#停止
service docker stop
systemctl stop docker

#卸载
sudo apt-get purge docker-ce docker-ce-cli containerd.io
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
#或
sudo apt-get remove docker docker-engine
rm -fr /var/lib/docker/

#Docker-compose安装
##国外:
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

##国内:
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

X-ui

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

哪吒监控面板

#国外:
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && ./nezha.sh

#国内:
curl -L https://raw.sevencdn.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && ./nezha.sh

极光转发面板

bash <(curl -fsSL https://raw.githubusercontent.com/Aurora-Admin-Panel/deploy/main/install.sh)
# 国内机器安装可以选择使用 fastgit 镜像
# 但由于拉取 docker 镜像时候默认服务器仍在国外,可能拉取速度较慢
# 可自行搜索如何配置 Docker Hub 国内镜像加速
# bash <(curl -fsSL https://raw.fastgit.org/Aurora-Admin-Panel/deploy/main/install.sh) --mirror

宝塔面板

#Centos安装脚本
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec

#Ubuntu/Deepin安装脚本
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec

#Debian安装脚本
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh ed8484bec

#卸载
wget http://download.bt.cn/install/bt-uninstall.sh
sh bt-uninstall.sh

aaPanel

#安装
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh

#卸载
sudo bt stop &&sudo update-rc.d -f bt remove &&sudo rm -f /etc/init.d/bt &&sudo rm -rf /www/server/panel

DDNS

# host模式, 同时支持IPv4/IPv6, Liunx系统推荐
docker run -d --name ddns-go --restart=always --net=host jeessy/ddns-go

# 桥接模式, 只支持IPv4, Mac/Windows系统推荐
docker run -d --name ddns-go --restart=always -p 9876:9876 jeessy/ddns-go

# [可选] 支持启动带参数 -l监听地址 -f间隔时间(秒)
docker run -d --name ddns-go --restart=always --net=host jeessy/ddns-go -l :9877 -f 600

# 在浏览器中打开http://主机IP:9876,修改配置,成功

评论

  1. 浪子
    2年前
    2022-6-27 20:19:09

    666

发送评论 编辑评论


|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇