方式一(需要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 install python-setuptools && easy_install pip
$ pip install speedtest-cli
調用測試網速
$ speedtest