UbuntuCentOSmacOS测试服务器上传和下载速度

Posted 修炼之路

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了UbuntuCentOSmacOS测试服务器上传和下载速度相关的知识,希望对你有一定的参考价值。

导读

通过speedtest我们可以方便的电脑的上传和下载速度。除此之外,我们还可以通过speedtest-cli来测试网速。

macOS

brew tap teamookla/speedtest
brew update
# Example how to remove conflicting or old versions using brew
# brew uninstall speedtest --force
brew install speedtest --force

Ubuntu

## If migrating from prior bintray install instructions please first...
# sudo rm /etc/apt/sources.list.d/speedtest.list
# sudo apt-get update
# sudo apt-get remove speedtest
## Other non-official binaries will conflict with Speedtest CLI
# Example how to remove using apt-get
# sudo apt-get remove speedtest-cli
curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash
sudo apt-get install speedtest

centOS

## If migrating from prior bintray install instructions please first...
# sudo rm /etc/yum.repos.d/bintray-ookla-rhel.repo
# sudo yum remove speedtest
## Other non-official binaries will conflict with Speedtest CLI
# Example how to remove using yum
# rpm -qa | grep speedtest | xargs -I  sudo yum -y remove 
curl -s https://install.speedtest.net/app/cli/install.rpm.sh | sudo bash
sudo yum install speedtest

在centOS上测试的速度如下

speedtest
"""
     Server: Guangzhou Unicom 5G - Guangzhou (id = 26678)
        ISP: China Unicom Liaoning
    Latency:    24.34 ms   (0.09 ms jitter)
   Download:     4.87 Mbps (data used: 6.1 MB)                               
     Upload:     4.83 Mbps (data used: 6.8 MB)                               
Packet Loss:     0.0%
 Result URL: https://www.speedtest.net/result/c/2d77c089-ea36-4c26-9b2a-94981e9dae6d
"""

freeBSD

sudo pkg update && sudo pkg install -g libidn2 ca_root_nss
# Example how to remove conflicting or old versions using pkg
# sudo pkg remove speedtest
sudo pkg add "https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-freebsd.pkg"

以上是关于UbuntuCentOSmacOS测试服务器上传和下载速度的主要内容,如果未能解决你的问题,请参考以下文章

文章测试

上传下载文件接口测试

文章测试3

文章测试1

文章测试2

文章测试4