Speedtest是一個由Python語言編寫的一個網絡測速腳本,提供多個外網的測試站點,我們可以使用它測試網絡的IO速度。
如果由於網絡問題導致無法下載軟件包,則可以通過安裝模塊到Python的方式使用它,請參考"安裝Speedtest到Python"。
運行環境
系統版本:CentOS Linux release 7.3.1611 (Core)
軟件版本:無
硬件要求:無
安裝過程
1、安裝Git
Git是一個文件版本控制工具。
[root@localhost ~]# yum -y install git
2、使用Git下載Seppdtest
[root@localhost ~]# git clone https://github.com/sivel/speedtest-cli.git
3、使用Seepdtest測試網絡帶寬
[root@localhost ~]# cd speedtest-cli/
[root@localhost ~]# ./speedtest.py
Retrieving speedtest.net configuration...
Testing from China Telecom Guangdong (183.14.133.121)...測試站點
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Mobile,Guangdong (Shenzhen) [0.00 km]: 22.577 ms
Testing download
測試下載
speed................................................................................
Download: 22.36 Mbit/s = 2.7MB/S
Testing upload
測試上傳
speed................................................................................................
Upload: 17.72 Mbit/s = 2.2MB/S