linux 测速 speedtest

Speedtest CLI: Internet speed test for the command line

ubuntu、debian

非root加sudo
sudo apt-get install curl -y
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest -y

root用户不加sudo
apt-get install curl -y
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash
apt-get install speedtest -y

Fedora/centos/Redhat

curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash
sudo yum install speedtest -y

curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | bash
yum install speedtest -y

speedtest
=========================================================================

You may only use this Speedtest software and information generated
from it for personal, non-commercial use, through a command line
interface on a personal computer. Your use of this software is subject
to the End User License Agreement, Terms of Use and Privacy Policy at
these URLs:

        https://www.speedtest.net/about/eula
        https://www.speedtest.net/about/terms
        https://www.speedtest.net/about/privacy

=========================================================================

Do you accept the license? [type YES to accept]: yes
License acceptance recorded. Continuing.


   Speedtest by Ookla

[error] Error: [111] Connection refused
[error] Error: [0] Timeout occurred in connect.
[error] Error: [0] Cannot open socket
      Server: China Unicom HeNan 5G - Zhengzhou (id: 36646)
         ISP: China Unicom
Idle Latency:    17.18 ms   (jitter: 0.66ms, low: 16.83ms, high: 18.94ms)
    Download:   465.75 Mbps (data used: 646.1 MB)
                 28.90 ms   (jitter: 23.37ms, low: 20.76ms, high: 305.62ms)
      Upload:    33.45 Mbps (data used: 58.8 MB)
                 23.30 ms   (jitter: 24.11ms, low: 16.71ms, high: 478.35ms)
 Packet Loss: Not available.
  Result URL: 这里会有网址,可以复制到浏览器查看

你可能感兴趣的:(linux,服务器,前端)