主机测评常用的工具、软件、脚本大全安装和使用方法
该网页汇总了VPSTOP在测评VPS主机、国内和国外独立服务器时常用的脚本、程序、软件和工具,方便用户查找和使用。
常用工具安装和相关命令
1. wget下载工具安装
如提示wget: command not found,使用以下命令安装:
yum install wget
apt-get install wget
2. 解压工具安装
如提示bash: unzip: command not found,安装unzip命令:
yum -y install zip unzip
Debian安装命令:
apt-get install unzip
3. 远程会话管理工具 - screen
执行以下命令创建screen会话:
screen -S vpstop
如果提示screen: command not found,可执行以下命令安装:
yum install screen
apt-get install screen
网络掉线后,重新连接SSH,执行以下命令查看进程:
screen -r vpstop
screen异常退出提示状态为Attached时,执行以下命令恢复:
screen -D -r vpstop
创建多个同名screen会话时,执行以下命令查看session id:
screen -ls
然后使用以下命令恢复:
screen -D -r sessionid
一、VPS配置测试
1. 柠檬脚本
可测试配置、IO、CPU、内存、路由,命令如下:
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast
第二个用法:
wget -qO- https://ilemonra.in/LemonBenchIntl | bash -s full
其中包含多种测试模式,如-f, --fast, fast(快速测试)、-F, --full, full(完整测试)等。
2. 专业测硬盘脚本
测IO和网速(可直接测IPv6的网速,国外节点),命令如下:
curl -sL yabs.sh | bash
wget -qO- yabs.sh | bash
3. 磁盘通电时间和健康度检测
wget -c https://www.hdsentinel.com/hdslin/hdsentinel-019c-x64.gz
gunzip hdsentinel-019c-x64.gz
chmod 755 hdsentinel-019c-x64
./hdsentinel-019c-x64
4. UnixBench跑分测试
安装相关依赖:
yum install perl-Time-HiRes libx11-dev libgl1-mesa-dev libxext-dev perl perl-modules make gcc
下载安装包并操作:
wget http://codingpy-1252715393.cosgz.myqcloud.com/archive/UnixBench5.1.3.tgz
tar xvf UnixBench5.1.3.tgz
cd UnixBench
make
运行make之前,需注释Makefile文件中GRAPHICS_TEST = defined行,最后执行:
./Run
或使用UnixBench一键脚本:
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh
5. 宝塔面板跑分插件
宝塔面板有一个跑分插件,可作为参考,官网可点击直达。
二、速度和网络测试
1. SuperBench.sh
使用命令如下:
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
2. bench.sh
检测硬件信息和上下行速度,命令如下:
curl -Lso- bench.sh | bash
3. superspeed
三网测速,可单独测试,命令如下:
bash <(curl -Lso- https://raw.githubusercontent.com/opear2008/superspeed/master/superspeed.sh)
或
bash <(curl -Lso- https://git.io/J1SEh)
4. superbenchpro
可测试配置、IO、跑分、网速,命令如下:
bash <(wget --no-check-certificate -O- https://dl.233.mba/sh/superbenchpro.sh)
三、路由跟踪
1. besttrace4linux
使用方法:
wget https://cdn.ipip.net/17mon/besttrace4linux.zip
unzip besttrace4linux.zip
chmod +x besttrace
./besttrace -q 1 IP
测试电信回程:
./besttrace -q 1 gd.189.cn
测试联通回程:
./besttrace -q 1 www.cd10010.cn
测试移动回程:
./besttrace -q 1 bj.10086.cn
2. 柠檬脚本
以下脚本可以直接测试三网路由,每个网络有三个节点:
wget -qO- git.io/fphX1 | bash
wget -qO- git.io/besttrace | bash
3. 丢包率测试
测试全球节点的丢包率,工具地址:http://ping.pe。国内用户主要关注国内节点的丢包情况(China开头)。
4. ZBench
中文版使用方法:
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
英文版使用方法:
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh
5. backtrace
一键回程测试脚本,命令如下:
curl https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh -sSf | sh
6. 去程路由
很多在线站长工具都有提供去程路由追踪,例如卡卡网、站长工具、爱站等等。
四、流媒体检测脚本
1. 检测VPS是否能解锁奈飞
脚本一主下载链接:
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.01/nf_2.01_linux_amd64 && chmod +x nf && clear && ./nf
备用下载链接(支持IPV6):
wget -O nf https://cdn.jsdelivr.net/gh/sjlleo/netflix-verify/CDNRelease/nf_2.01_linux_amd64 && chmod +x nf && clear && ./nf
脚本二检测命令:
bash <(curl -sSL "https://github.com/CoiaPrant/Netflix_Unlock_Information/raw/main/netflix.sh")
备用命令:
bash <(curl -sSL "https://www.zeroteam.top/files/netflix.sh")
2. 流媒体综合检测脚本
bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")
主要测试IP能否解锁多个流媒体网站,如Netflix、YouTube Region等。
流媒体测试代码合集二:
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
流媒体测试代码合集三:
bash <(curl -L -s check.unlock.media)
3. TikTok检测脚本(需centos8以上)
bash <(curl -s https://raw.githubusercontent.com/lmc999/TikTokCheck/main/tiktok.sh)
五、其他测试命令/脚本
1. 查看CPU信息
cat /proc/cpuinfo
2. 内存检测脚本
CentOS系统:
yum install wget -y
yum groupinstall "Development Tools" -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out
Ubuntu / Debian系统:
apt-get update
apt-get install wget build-essential -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out
六、一键安装脚本
http://d.locbb.com/shell/shadowsocks-all.sh
七、Linux系统TCP BBR加速一键安装管理脚本
不卸载内核版本:
wget -O tcpx.sh "https://git.io/JYxKU" && chmod +x tcpx.sh && ./tcpx.sh
卸载内核版本:
wget -O tcp.sh "https://git.io/coolspeeda" && chmod +x tcp.sh && ./tcp.sh
该脚本支持多种内核和加速方案,适用于多个Linux系统。