aiastia / note

笔记
17 stars 5 forks source link

linux下使用speedtest测速 #35

Open aiastia opened 5 years ago

aiastia commented 5 years ago

安装 speedtest

sudo apt install python-pip

sudo pip install speedtest-cli

speedtest-cli --bytes
usage: speedtest [-h] [--no-download] [--no-upload] [--single] [--bytes]
                 [--share] [--simple] [--csv] [--csv-delimiter CSV_DELIMITER]
                 [--csv-header] [--json] [--list] [--server SERVER]
                 [--exclude EXCLUDE] [--mini MINI] [--source SOURCE]
                 [--timeout TIMEOUT] [--secure] [--no-pre-allocate]
                 [--version]
speedtest --server 4515 --share
speedtest --share --server 4515

有时候我们并不满足于测试服务器的出入网带宽,还想测试下到中国的网络速度,那么我们可以使用 –server参数来指定节点。

节点的信息可以从下方网址找到: http://www.speedtest.net/speedtest-servers-static.php

aiastia commented 5 years ago

sudo apt-get install python-pip

aiastia commented 5 years ago

sudo apt-get update

sudo apt-get install python-pip

aiastia commented 5 years ago

speedtest-cli --bytes --share

aiastia commented 3 years ago

speedtest --list | grep China

aiastia commented 3 years ago

sudo apt-get --purge remove speedtest*

aiastia commented 3 years ago

apt list --installed

aiastia commented 3 years ago

指定ip 测速 speedtest-cli --bytes --share --source 1.1.1.1

aiastia commented 3 years ago

由于我们将能够以两种不同的方式来安装此实用程序,因此显然我们也可以以两种不同的方式来卸载它。 如果我们选择从官方存储库中安装它,则必须打开一个终端(Ctrl + Alt + T)并输入以下内容:

sudo apt remove speedtest-cli

另一方面,如果我们选择使用pip进行安装,则可以使用卸载选项消除该实用程序。 我们将必须打开一个终端(Ctrl + Alt + T)并输入以下内容:

sudo pip uninstall speedtest-cli

aiastia commented 3 years ago

apt install python3-pip -y pip3 install git+https://github.com/sivel/speedtest-cli.git