操作系统:CentOS 6.7
[BEGIN] 2015-9-11 14:44:40
#安装speedtest-cli
[root@sky9896 ~]# wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
--2015-09-11 14:55:13-- https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
正在解析主机 raw.github.com... 103.245.222.133
正在连接 raw.github.com|103.245.222.133|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 301 Moved Permanently
位置:https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py [跟随至新的 URL]
--2015-09-11 14:55:19-- https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py
正在解析主机 raw.githubusercontent.com... 103.245.222.133
正在连接 raw.githubusercontent.com|103.245.222.133|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:24314 (24K) [text/plain]
正在保存至: “speedtest_cli.py”
100%[===================================================================================================>] 24,314 --.-K/s in 0s
2015-09-11 14:55:19 (176 MB/s) - 已保存 “speedtest_cli.py” [24314/24314])
[root@sky9896 ~]# chmod a+rx speedtest_cli.py
[root@sky9896 ~]# sudo chown root:root /usr/local/bin/speedtest-cli
#使用speedtest-cli测试网速
[root@sky9896 ~]# speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from China Telecom Jiangxi (117.40.239.9)...
Selecting best server based on latency...
Hosted by jxtelecom (NanChang) [15.59 km]: 6.172 ms
Testing download speed........................................
Download: 92.56 Mbit/s.
Upload: 45.83 Mbit/s
#自动生成并上传到Speedtest.net的测试结果:
[root@sky9896 ~]# speedtest-cli --share #以图形的方式分享
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from China Telecom Jiangxi (117.40.239.9)...
Selecting best server based on latency...
Hosted by jxtelecom (NanChang) [15.59 km]: 6.125 ms
Testing download speed........................................
Download: 94.08 Mbit/s #下载速度
Testing upload speed..................................................
Upload: 22.67 Mbit/s #上传速度
Share results: https://www.speedtest.net/result/4654350874.png #生成结果
学院电信服务器专线网速
[root@sky9896 ~]# speedtest-cli --list
#打印出所有的Speedtest.net服务器(按照离你的地理距离由近及远排序)。
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
6345) ChinaTelecom.JiangXi (NanChang, China) [15.59 km]
5097) Chinaunicom.jx (NanChang, China) [15.59 km]
6473) jxtelecom (NanChang, China) [15.59 km]
5553) jxunicom (JiangXi, China) [139.15 km]
5485) China Unicom,Hubei Branch (Wuhan, China) [276.73 km]
4870) Changsha, Hunan Unicom (Changsha, China) [292.36 km]
5700) Nanping (Nanping, China) [306.24 km]
4616) China Mobile Group Anhui Co.,Ltd (Wuhu, China) [387.28 km]
5724) ChinaUnicom (Hefei, China) [390.94 km]
4433) China Telecom Anhui Co.,Ltd (Hefei, China) [390.94 km]
4377) China Mobile Group Anhui Co.,Ltd (Hefei, China) [390.94 km]
5805) China Telecom Fujian Branch (Fuzhou, China) [432.08 km]
4884) fuzhou_unicom (Fuzhou, China) [432.08 km]
5300) Hangzhou , Zhejiang Unicom (Hangzhou, China) [451.53 km]
4647) China Mobile Group Zhejiang Co.,Ltd (Hangzhou, China) [451.53 km]
5316) China Telecom JiangSu Branch (Nanjing, China) [474.77 km]
5446) CHINA UNICOM JIANGSU COMPANY (Nanjing, China) [474.77 km]
5506) china unicom (Xiamen, China) [502.37 km]
1628) FUJIAN BTNG-XM (Xiamen, China) [502.37 km]
6435) china Telecom hubei branch (Xiangyang, China) [530.74 km]
5122) China Mobile Group Jiangsu Co.,Ltd. (Wuxi, China) [537.62 km]
5274) Suzhou China Telecom (Suzhou, China) [544.76 km]
3927) China Mobile Jiangsu Co., Ltd. (Suzhou, China) [544.76 km]
6245) ningbo unicom (Ningbo, China) [564.38 km]
6715) China Mobile Group Zhejiang Co., Ltd. (Ningbo, China) [564.38 km]
3633) China Telecom (Shanghai, China) [612.17 km]
5083) Shanghai Branch, China Unicom (Shanghai, China) [612.17 km]
4939) Chief Telecom (Hsinchu, Taiwan) [651.06 km]
2590) Far EasTone Telecommunications Co., Ltd (Hsinchu, Taiwan) [651.06 km]
2182) kbro Co., Ltd. (Hsinchu, Taiwan) [651.06 km]
5195) Taiwan Fixed Network (Hsinchu, Taiwan) [651.06 km]
2589) Far EasTone Telecommunications Co., Ltd (Taoyuan, Taiwan) [651.66 km]
3921) Taiwan Fixed Network (Taoyuan, Taiwan) [651.66 km]
4938) Chief Telecom (Taoyuan, Taiwan) [651.66 km]
6611) GZ-CMCC (Guangzhou, China) [658.71 km]
4672) ChinaTelecom (Guangzhou, China) [658.71 km]
3891) Unicom-GZ (Guangzhou, China) [658.71 km]
5334) Taiwan Star Telecom Co., Ltd. (New Taipei, Taiwan) [673.85 km]
5219) Taiwan Fixed Network (New Taipei, Taiwan) [673.85 km]
5067) Far Eastone Telecommunications Co., Ltd. (New Taipei, Taiwan) [673.85 km]
5660) NCIC Telcom (New Taipei, Taiwan) [673.85 km]
4505) Chief Telecom (New Taipei, Taiwan) [673.85 km]
3841) Taiwan Fixed Network (Taichung, Taiwan) [679.42 km]
6597) Tunghai University (Taichung, Taiwan) [679.42 km]
4940) Chief Telecom (Taichung, Taiwan) [679.42 km]
2591) Far EasTone Telecommunications Co., Ltd (Taichung, Taiwan) [679.42 km]
6391) Asia University, Taiwan (Taichung, Taiwan) [679.42 km]
2192) kbro Co., Ltd. (Taichung, Taiwan) [679.42 km]
5854) Taiwan Star Telecom Co., Ltd. (Taichung, Taiwan) [679.42 km]
2188) TFN Media Co., Ltd. (Taipei, Taiwan) [679.45 km]
5056) Taipei Fiber (Taipei, Taiwan) [679.45 km]
2327) Far Eastone Telecommunications Co., Ltd. (Taipei, Taiwan) [679.45 km]
3967) Chief Telecom (Taipei, Taiwan) [679.45 km]
5315) Taiwan Star Telecom Co., Ltd. (Taipei, Taiwan) [679.45 km]
2133) Taiwan Fixed Network (Taipei, Taiwan) [679.45 km]
5008) Asia Pacific Telecom (Taipei, Taiwan) [679.45 km]
2181) kbro Co., Ltd. (Taipei, Taiwan) [679.45 km]
5661) NCIC Telcom (Taipei, Taiwan) [679.45 km]
5204) Taiwan Fixed Network (Changhua, Taiwan) [688.33 km]
5069) Far Eastone Telecommunications Co., Ltd. (Changhua, Taiwan) [688.33 km]
5164) Chief Telecom (Changhua, Taiwan) [688.33 km]
4924) SZUNICOM (Shenzhen, China) [692.02 km]
3871) SZWCDMA (Shenzhen, China) [692.02 km]
5081) ShenZhen Telecom (Shenzhen, China) [692.02 km]
4515) China Mobile Group GuangDong (Shenzhen, China) [692.93 km]
6854) FPT Telecom (Tsuen Wan, Hong Kong) [711.18 km]
5120) HKIX1 (Hong Kong, China) [716.40 km]
6852) FPT Telecom (Chai Wan, Hong Kong) [718.68 km]
1536) STC (Hong Kong, China) [719.76 km]
4947) Chief Telecom (Yilan, Taiwan) [721.66 km]
2187) TFN Media Co., Ltd. (Yilan, Taiwan) [721.66 km]
5068) Far Eastone Telecommunications Co., Ltd. (Yilan, Taiwan) [721.66 km]
5194) Taiwan Fixed Network (Yilan, Taiwan) [721.66 km]
2993) Website Solution Limited (Hong Kong, S.A.R.) [722.62 km]
5131) China unicom henan branch (Zhengzhou, China) [724.19 km]
4486) China Mobile Group Henan Co.,Ltd. (Zhengzhou, China) [724.19 km]
4595) China Telecom HeNan Branch (Zhengzhou, China) [724.19 km]
......