mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6
448 字
1 分钟
VPS常用命令与初始环境配置
2026-07-04

VPS常备小命令【非脚本】#


【合集】常用VPS脚本#


DD系统#

项目地址

GitHub源:

apt update
apt install -y wget curl
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh
bash InstallNET.sh -debian 12 -pwd 'GmYFprTAdpLqS6@' -port '22' -timezone 'Asia/Shanghai' --bbr

国内源:

apt update
apt install -y wget curl
wget --no-check-certificate -qO InstallNET.sh 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh
bash InstallNET.sh -debian 12 -pwd 'GmYFprTAdpLqS6@' -port '22' -timezone 'Asia/Shanghai' --bbr

基础工具#

  • bash:兼容大量常见脚本
  • sudo:普通用户提权用
  • curl / wget:下载文件、请求接口
  • ca-certificates:让 HTTPS 证书校验正常
  • nano :文本编辑器,至少留一个也行
  • htop:查看进程、CPU、内存
  • unzip :压缩解压
  • git:拉代码、版本管理

更新 Alpine 系统的软件包索引

apk update -y

Alpine 安装基础工具( bash sudo curl wget nano htop unzip git ):

apk update && apk add bash sudo curl wget nano htop unzip git

更新 Debian/Ubuntu 系统的软件包索引

apt update -y

Debian 安装基础工具( bash curl wget unzip openssl nano):

apt update && apt add bash curl wget unzip openssl nano

BBR v3 优化脚本#

**项目地址

如果是新机器(未安装 curl),先手动执行:

apt update -y && apt install curl -y

安装脚本(安装后只需输入 bbr 即可运行):

# 安装别名
bash <(curl -q -fsSL "https://raw.githubusercontent.com/Eric86777/vps-tcp-tune/refs/heads/main/install-alias.sh?$(date +%s)")
# 重新加载配置
source ~/.bashrc # 或 source ~/.zshrc
# 以后直接使用
bbr

网络质量测试工具(服务器综合性能与网络质量测评脚本)#

NodeQuality 测试脚本

bash <(curl -sL https://run.NodeQuality.com)

TcpQuality

bash <(curl -fsSL https://raw.githubusercontent.com/ibsgss/TcpQuality/main/runTcpQuality.sh)

IP Quality Check Script (EN) IP质量检测

bash <(curl -Ls https://Check.Place) -I

ITDOG 去程路由追踪#

官网:ITDOG


MTR 进行去程路由与延迟测试#

MTR安装

apt update && apt install mtr-tiny

去程路由与延迟测试

mtr -c 100 目标IP

NextTrace 回程路由追踪#

NextTrace 安装

curl nxtrace.org/nt | bash

NextTrace 内置的批量测试模式(默认ICMP)

nexttrace --fast-trace

NextTrace 内置的批量测试模式(TCP)

nexttrace --fast-trace --tcp

NextTrace 测试目标 IP

nexttrace 目标IP

NextTrace 测试目标 IP的网页访问

nexttrace --tcp --port 443 目标IP

协议选择:

用途推荐协议
发图、和别人结果对比、看回程线路ICMP
模拟网页/代理实际访问TCP

BGP 上游关系图 / AS Path 拓扑测试#

bgp.tools


常用环境及软件#

Docker#

安装

bash <(curl -sL 'https://get.docker.com')

查看当前正在运行的 Docker 容器

docker ps

3X-UI 面板#

一键脚本

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

指定版本

bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) v3.3.0

综合功能脚本#

科技lion:

bash <(curl -sL kejilion.sh)
分享

如果这篇文章对你有帮助,欢迎分享给更多人!

VPS常用命令与初始环境配置
bk90.333797.xyz
作者
瓶子
发布于
2026-07-04
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时