概述
导读
通过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"
最后
以上就是冷酷咖啡为你收集整理的Ubuntu、CentOS、macOS测试服务器上传和下载速度的全部内容,希望文章能够帮你解决Ubuntu、CentOS、macOS测试服务器上传和下载速度所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复