<!-- wp:paragraph -->
<p>因为个人平时喜欢折腾一些vps,所以将自己常用的脚本放出来,方便日后使用。</p>
<!-- /wp:paragraph -->
unixbench测试
wget --no-check-certificate https://github.com/zq/unixbench/raw/master/unixbench.sh && chmod +x unixbench.sh && ./unixbench.sh
<!-- wp:heading -->
<h2>综合类</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>该类脚本基本上都包括了vps的基本信息,io,还有网速等。可以应对一般测试</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3> 1、 bench.sh </h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>一键检测VPS的CPU、内存、负载、IO读写、机房带宽</p>
<!-- /wp:paragraph -->

<!-- wp:shortcode -->
wget -qO- bench.sh | bash
<!-- /wp:shortcode -->

<!-- wp:paragraph -->
<p>GitHub</p>
<!-- /wp:paragraph -->

<!-- wp:image -->
<figure class="wp-block-image"></figure>
<!-- /wp:image -->

<!-- wp:heading {"level":3} -->
<h3>2、SuperBench.sh</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p> 检测服务器类型参数常见 openvz,kvm,独服都能检测出来 ,也包含国内测速</p>
<!-- /wp:paragraph -->

<!-- wp:shortcode -->
wget -qO- https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
<!-- /wp:shortcode -->

<!-- wp:image -->
<figure class="wp-block-image"></figure>
<!-- /wp:image -->

<!-- wp:heading {"level":3} -->
<h3>3、 Zench </h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>以上两种的集合</p>
<!-- /wp:paragraph -->

<!-- wp:shortcode -->
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
<!-- /wp:shortcode -->

<!-- wp:image -->
<figure class="wp-block-image"></figure>
<!-- /wp:image -->

<!-- wp:heading -->
<h2>网速</h2>
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)
<!-- /wp:heading -->

<!-- wp:heading {"level":3} -->
<h3 id="ftoc-heading-2"> 1、Superspeed.sh </h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>一键测试服务器到国内的速度脚本Superspeed.sh</p>
<!-- /wp:paragraph -->

<!-- wp:shortcode -->
wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh
chmod +x superspeed.sh
./superspeed.sh
<!-- /wp:shortcode -->

<!-- wp:heading {"level":3} -->
<h3>2、 speedtest-cli </h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>一键测试带宽</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":4} -->
<h4>安装</h4>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Ubuntu|Debian</p>
<!-- /wp:paragraph -->

<!-- wp:shortcode -->
sudo apt-get update
apt-get install python-pip
sudo pip install speedtest-cli

<!-- /wp:shortcode -->

<!-- wp:paragraph -->
<p>Centos</p>
<!-- /wp:paragraph -->

<!-- wp:shortcode -->
yum update
yum -y install epel-release
yum install python-pip
pip install speedtest-cli
<!-- /wp:shortcode -->

<!-- wp:heading {"level":4} -->
<h4>使用</h4>
<!-- /wp:heading -->

<!-- wp:shortcode -->
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
<!-- /wp:shortcode -->

<!-- wp:image -->
<figure class="wp-block-image"></figure>
<!-- /wp:image -->

<!-- wp:heading {"level":3} -->
<h3>3、superspeed.sh</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>国内全方位测速</p>
<!-- /wp:paragraph -->

<!-- wp:shortcode -->
bash <(curl -Lso- https://git.io/superspeed)
<!-- /wp:shortcode -->

<!-- wp:image -->
<figure class="wp-block-image"></figure>
<!-- /wp:image -->

最后修改:2020 年 10 月 13 日 03 : 49 PM
如果觉得我的文章对你有用,请随意赞赏