这里使用Speedtest.net提供的命令行版本——speedtest-cli
1.下载speedtest-cli
命令:wget https://dl.dcip.top/speedtest.py
2.安装speedtest-cli
命令:chmod a+rx speedtest.py
命令:mv speedtest.py /usr/local/bin/speedtest-cli
命令:chown root:root /usr/local/bin/speedtest-cli
3.运行speedtest-cli
命令:speedtest-cli
测试结果说明:下行为 60.33 Mbit/s 上行为 8.40Mbit/s
注:也可以使用官方下载链接
命令:wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
一键命令:
wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py&&chmod a+rx speedtest.py&&mv speedtest.py /usr/local/bin/speedtest-cli&&chown root:root /usr/local/bin/speedtest-cli&&speedtest-cli
新版测速命令:
RPM:
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash
sudo yum install speedtest DEB:
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest MAC:
brew install speedtest --force
BSD:
# freeBSD 12 install
sudo pkg add "https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-freebsd12-x86_64.pkg"
# freeBSD 13 install
sudo pkg add "https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-freebsd13-x86_64.pkg"
分类:Ubuntu
标签:
评论已关闭!