常用的vps 测试工具和方法

1,266次阅读
没有评论
如果你已经拥有了自己的VPS。而又需要对vps进行资源相关测试,那么用一些网络测试工具如ping、tracert之类进行测试,用来测试VPS所经过的路线是否符合要求,而要测试VPS的性能就要用到其他工具。下面主要介绍一下常用的工具:

综合测试脚本:

1、unixbench.sh脚本:

wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh
chmod +x superspeed.sh
./superspeed.sh

特点:

  1. 显示当前测试的各种系统信息;
  2. 取自世界多处的知名数据中心的测试点,下载测试比较全面;
  3. 支持 IPv6 下载测速;
  4. IO 测试三次,并显示平均值

 

常用的vps 测试工具和方法

2。Zbench

脚本由漏水和kirito,基于Oldking大佬 的 SuperBench,然后加入Ping以及路由测试的功能,还能生成测评报告,分享给其他人查看测评数据

使用方法

#中文版
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

3.LemonBench

LemonBench工具.是一款针对Linux服务器设计的服务器性能测试工具。通过综合测试,可以快速评估服务器的综合性能,为使用者提供服务器硬件配置信息。

使用方法

curl -fsSL https://ilemonrain.com/download/shell/LemonBench.sh | bash
#或者
wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash

常用的vps 测试工具和方法

网络测试工具:

1、ping测试工具:

  • 一键测试回程Ping值工具:mPing
    wget https://raw.githubusercontent.com/helloxz/mping/master/mping.sh bash mping.sh
    

uPing-一个24小时监测VPS延迟的工具:

依赖安装

#Debian / Ubuntu
apt-get update
apt-get install python wget screen -y
#CentOS / RHEL
yum install screen wget python -y

使用方法

screen -S uping
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/uPing/master/uping.py
python uping.py

2、tracert工具:

下载测试:

本地测试从VPS上下载速度:下载测试主要依赖浏览器,最好使用单线程下载,如用IE,当然FTP、Winscp之类的进行测试也是可以的。

服务器上测试VPS上的下载速度:使用wget命令下载其他美国机房的文件。

linux 命令测试工具:

1。内存检测

free -m
#CentOS / RHEL
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

2. cpu查看:

#cat /proc/cpuinfo

3.磁盘和分区:

lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk 
├─sda1   8:1    0     1G  0 part /boot
├─sda2   8:2    0   9.3G  0 part [SWAP]
├─sda3   8:3    0  74.5G  0 part /
├─sda4   8:4    0     1K  0 part 
├─sda5   8:5    0 111.8G  0 part /home
└─sda6   8:6    0 269.2G  0 part

3.网卡

# lspci | grep -i 'eth'
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

查看系统的所有网络接口

# ifconfig -a
eth0      Link encap:以太网  硬件地址 b8:97:5a:17:b3:8f  
          .....

lo        Link encap:本地环回  
          .....

4.查看bios信息

# dmidecode -t bios
......
BIOS Information
Vendor: American Megatrends Inc.
Version: 4.6.5
Release Date: 04/25/2012
.......
BIOS Revision: 4.6
......

5.其他

如果要查看所有有用信息

dmidecode -q

里面包含了很多硬件信息。

正文完
 
评论(没有评论)