CentOS-測網速(speedtest)

方式一(需要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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章