VPS常用脚本之汇总
标签搜索
侧边栏壁纸
  • 累计撰写 22 篇文章
  • 累计收到 3 条评论
Vps

VPS常用脚本之汇总

admin
2023-09-25 / 0 评论 / 125 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2023年09月25日,已超过576天没有更新,若内容或图片失效,请留言反馈。

ac7kz-n0xmq.webp

综合类一键工具箱

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

网络测试

  1. 回程线路

    #第一个
    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
  2. 三网测速

    bash <(curl -Lso- https://git.io/superspeed_uxh)
  3. 测试IPv4优先还是IPv6优先

    curl ip.p3terx.com
  4. 测试25端口是否开放

    telnet smtp.aol.com 25

媒体测试

  1. 全媒体测试

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

    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

工具类

  1. 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
  2. X-ui

    bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
  3. 哪吒监控面板

    #国外:
    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
  4. 极光转发面板

    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
  5. 宝塔面板

    #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
  6. 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,修改配置,成功
    
0

评论 (0)

取消