VPS 常用命令、工具(更新中)
BlueSkyXN综合工具箱
集成了大量常用工具
项目地址:https://github.com/BlueSkyXN/SKY-BOX
wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
Linux命令
修改时间服务器
timedatectl set-timezone Asia/Shanghai
查看当前文件夹下子文件夹的大小
du -sh *
安装curl 和wget
apt update -y && apt install -y curl && apt install -y socat && apt install wget -y
一键DD
Debian:11
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p "自定义root密码" -port "自定义ssh端口"
Ubuntu 20.04
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -u 20.04 -v 64 -p "自定义root密码" -port "自定义ssh端口"
最简单的WARP脚本(真一键)
项目地址
https://github.com/P3TERX/warp.sh
# 自动配置 WARP WireGuard IPv4 网络
bash <(curl -fsSL git.io/warp.sh) 4
# 自动配置 WARP WireGuard IPv6 网络
bash <(curl -fsSL git.io/warp.sh) 6
# 自动配置 WARP WireGuard 双栈全局网络
bash <(curl -fsSL git.io/warp.sh) d
强力WARP脚本
wget -N https://gitlab.com/Misaka-blog/warp-script/-/raw/main/warp.sh && bash warp.sh
CentOS 关闭防火墙
systemctl start supervisord
systemctl disable firewalld
systemctl stop firewalld
vnstat
apt install vnstat
vnstat -d
vnstat -h
测试相关
四网测速+延迟、抖动
bash <(wget -qO- https://bench.im/hyperspeed)
媒体解锁测试
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
回程线路直接展示
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
简单测IO
bash <(wget -qO- git.io/ceshi)
综合测试
curl -sL yabs.sh | bash
geekbench6 跑分
curl -sL yabs.sh | bash -s -- -i -f -6
geekbench5 跑分
curl -sL yabs.sh | bash -s -- -i -f -5
Docker
更新、安装必备软件
apt-get update && apt-get install -y wget vim
海外服务器
wget -qO- get.docker.com | bash
Docker-compose安装
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
大陆服务器
curl -sSL https://get.daocloud.io/docker | sh
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
本文链接:
/archives/vps-scripts
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
ThinkIN!
喜欢就支持一下吧
打赏
微信
支付宝