vps 常用脚本合集
AI-摘要
切换
GPT
AI初始化中...
介绍自己
生成本文简介
推荐相关文章
前往主页
前往tianli博客
Title Here
vps 体检脚本
bash <(curl -L -s https://bench.kangjw.me/kkb.sh)
bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)
wget -qO- bench.sh | bash
curl -sL yabs.sh | bash
wget -qO- benchy.pw | sh
bash <(curl -L -s check.unlock.media)
lscpu
Memory default via free -h --total
Storage default via df -hT --total
Default SWAP or partition via swapon --show
bash <(curl -sL https://raw.githubusercontent.com/LloydAsp/NodeBench/main/NodeBench.sh)
更换内核
/bin/bash <(wget -O - https://tinyurl.com/server-setup)
GB6 跑分脚本,附带宽测试:
curl -sL yabs.sh | bas6h
GB6 剔除带宽测试,因为都是国外节点测试,国内跑没多大意义:
curl -sL yabs.sh | bash -s -- -i
GB5 跑分脚本,附带宽测试:
curl -sL yabs.sh | bash -5
GB5 剔除带宽测试:
curl -sL yabs.sh | bash -s -- -i -5
流媒体测试:
bash <(curl -L -s media.ispvps.com)
bash <(curl -L -s check.unlock.media)
全面测试:
bash <(wget -qO- https://down.vpsaff.net/linux/speedtest/superbench.sh)
多线路网速测试:
bash <(wget -qO- https://raw.githubusercontent.com/chiron688/linux_jobs/main/speed.sh)
curl -sL bench.monster | bash -s -- -asia
dd if=/dev/zero of=256 bs=64K count=4K oflag=dsync
回程脚本
curl https://raw.githubusercontent.com/ludashi2020/backtrace/main/install.sh -sSf | sh
融合怪测试脚本
curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
Xray-core/sing-box 一键脚本
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
1panel 安装脚本
Redhat系:
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sh quick_start.sh
Debian系:
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh
使用 windows 的 wsl 子系统安装失败 [¶](https://1panel. cn/docs/faq/operating_system/#2-windows-wsl)
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
由于 wsl 子系统不能使用 systemd 导致的启动 docker 服务失败
- 更新 systemd 管理,支持 systemd 后问题即可解决
- 参考文档:Systemd support is now available in WSL!
docker 一键脚本(不支持 RedHat 系)
apt install wget curl sudo vim git -y
curl -fsSL https://get.docker.com | bash -s docker
dd 网络重装脚本(默认为 Debian12)
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 '密码'
Aria2 一键安装脚本
wget -N git.io/aria2.sh && chmod +x aria2.sh && bash aria2.sh
Warp 脚本
https://gitlab.com/fscarmen/warp.git
WARP好处
支持 chatGPT,解锁奈飞流媒体
避免 Google 验证码或是使用 Google 学术搜索
可调用 IPv4 接口,使青龙和V2P等项目能正常运行
由于可以双向转输数据,能做对方VPS的跳板和探针,替代 HE tunnelbroker
能让 IPv6 only VPS 上做的节点支持 Telegram
IPv6 建的节点能在只支持 IPv4 的 PassWall、ShadowSocksR Plus+ 上使用
warp 一键脚本
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh
warp-go 一键脚本
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/warp-go.sh && bash warp-go.sh
bbr 脚本
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh"
chmod +x tcp.sh
./tcp.sh
综合工具箱
wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
Node NVM 脚本
安装 nvm (可选)
nvm 可以用于管理 Node.js。
打开终端,使用一键脚本,可以便捷地安装 nvm:
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
重启终端即可生效
安装 Node.js 最新的 LTS 版本:
nvm install --lts
GPT 解锁测试
bash <(curl -Ls https://cdn.jsdelivr.net/gh/missuo/OpenAI-Checker/openai.sh)
流媒体测试
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
[Oracle](http://8. Oracle/) 修改 root 脚本
#!/bin/bash
echo root:11235879 |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart
回程多地区测试脚本
wget -qO- git.io/besttrace | bash
wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh
独立服务器检测硬盘通电时间
wget https://github.com/Aniverse/A/raw/i/a && bash a
一键检测超售
wget --no-check-certificate -O memoryCheck.sh https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh && chmod +x memoryCheck.sh && bash memoryCheck.sh
rmmod virtio_balloon
realm 转发
wget https://raw.githubusercontent.com/Jaydooooooo/Port-forwarding/main/RealmOneKey.sh && chmod +x RealmOneKey.sh && ./RealmOneKey.sh
刷流量脚本
wget https://cdn.jsdelivr.net/gh/maintell/webBenchmark@releases/download/0.6/webBenchmark_linux_x64
chmod +x webBenchmark_linux_x64
./webBenchmark_linux_x64 -c 64 -s http://链接.jpg
测试 25 端口是否开放
telnet smtp.aol.com 25
测试 IPv4 优先还是 IPv6 优先
curl ip.p3terx.com
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 随笔漫步
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果