因为个人平时喜欢折腾一些vps,所以将自己常用的脚本放出来,方便日后使用。
unixbench测试
wget --no-check-certificate https://github.com/zq/unixbench/raw/master/unixbench.sh && chmod +x unixbench.sh && ./unixbench.sh
综合类
该类脚本基本上都包括了vps的基本信息,io,还有网速等。可以应对一般测试
1、 bench.sh
一键检测VPS的CPU、内存、负载、IO读写、机房带宽
wget -qO- bench.sh | bash

2、SuperBench.sh
检测服务器类型参数。常见 openvz,kvm,独服都能检测出来 ,也包含国内测速
wget -qO- https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

3、 Zench
以上两种的集合
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh

网速
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py && python speedtest.py
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s spfull
bash <(curl -Lso- https://git.io/superspeed)
1、Superspeed.sh
一键测试服务器到国内的速度脚本Superspeed.sh
wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh
chmod +x superspeed.sh
./superspeed.sh
2、 speedtest-cli
一键测试带宽
安装
Ubuntu|Debian
sudo apt-get update
apt-get install python-pip
sudo pip install speedtest-cli
Centos
yum update
yum -y install epel-release
yum install python-pip
pip install speedtest-cli
使用
speedtest-cli
#后面也可以接以下参数:
-h, --help show this help message and exit
--share 分享你的网速,该命令会在speedtest网站上生成网速测试结果的图片。
--simple Suppress verbose output, only show basic information
--list 根据距离显示speedtest.net的测试服务器列表。
--server=SERVER 指定列表中id的服务器来做测试。
--mini=MINI URL of the Speedtest Mini server
--source=SOURCE Source ip address to bind to
--version Show the version number and exit

3、superspeed.sh
国内全方位测速
bash <(curl -Lso- https://git.io/superspeed)
