编辑
2023-08-18
笔记
0

目录

SPEEDTEST CLI 网速测试
macOS
Ubuntu/Debian
Fedora/Centos/Redhat
本地到服务器测试

SPEEDTEST CLI 网速测试

macOS

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

Ubuntu/Debian

bash
## 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 sudo apt-get update sudo apt-get install -y curl curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash sudo apt-get install -y speedtest

Fedora/Centos/Redhat

bash
## 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://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash sudo yum install speedtest

本地到服务器测试

bash
docker run -d --name looking-glass --restart always -p 8888:80 wikihostinc/looking-glass-server # 本地浏览器访问 http://IP:8888 # 测试结束后 docker stop looking-glass docker rm looking-glass

本文作者:菜鸟

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 许可协议。转载请注明出处!