Linux界面都是命令行,也可以测试网速,用的是开源测试软件speedtest,linux上的版本是基于python的。
因为是下载githup版本库上的软件,linux上要安装git客户端,最简单的方法是yum来安装
yum -y install git
使用git下载测试软件
git clone https://github.com/sivel/speedtest-cli.git
进入软件目录 cd speedtest-cli/
运行speedtest_cli.py
能显示公网IP地址,又能显示上传下载的速度
[root@testserver-2 /data2/speedtest-cli]# ll
total 112
-rw-r--r-- 1 root root 1671 Dec 16 16:10 CONTRIBUTING.md
-rw-r--r-- 1 root root 11358 Dec 16 16:10 LICENSE
-rw-r--r-- 1 root root 35 Dec 16 16:10 MANIFEST.in
-rw-r--r-- 1 root root 5606 Dec 16 16:10 README.rst
-rw-r--r-- 1 root root 20 Dec 16 16:10 setup.cfg
-rw-r--r-- 1 root root 3272 Dec 16 16:10 setup.py
-rw-r--r-- 1 root root 3039 Dec 16 16:10 speedtest-cli.1
-rwxr-xr-x 1 root root 65018 Dec 16 16:10 speedtest.py
drwxr-xr-x 3 root root 4096 Dec 16 16:10 tests
-rw-r--r-- 1 root root 497 Dec 16 16:10 tox.ini