CentOS-测网速(speedtest)

羊舌光赫
2023-12-01

方式一(需要python环境)

speedtest-cli是用Python编写的轻量级Linux命令行工具

$ wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

$ chmod +rx speedtest.py

1.调用测试网速

$ ./speedtest.py

配置全局调用

$ mv speedtest.py /usr/local/bin/speedtest

$ chown root:root /usr/local/bin/speedtest

2.调用测试网速

$ speedtest

方式二(需要pip环境)

$ yum -y install epel-release$ yum install python-pip
$ pip install --upgrade pip$ pip install speedtest-cli

$ yum install python-setuptools && easy_install pip
$ pip install speedtest-cli

调用测试网速

$ speedtest

 类似资料: