root@hdfs-master:/usr/local/src$ wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py --no-check-certificate
--2014-03-11 17:24:04-- 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... 已连接。
警告: 证书通用名 “www.github.com” 与所要求的主机名 “raw.github.com” 不符。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:20043 (20K) [text/plain]
正在保存至: “speedtest_cli.py”
100%[=======================================================================================================>] 20,043 81.7K/s in 0.2s
2014-03-11 17:24:11 (81.7 KB/s) - 已保存 “speedtest_cli.py” [20043/20043])
root@hdfs-master:/usr/local/src$ chmod a+rx speedtest_cli.py
root@hdfs-master:/usr/local/src$ mv speedtest_cli.py /usr/local/bin/speedtest
root@hdfs-master:/usr/local/src$ chown root.root /usr/local/bin/speedtest
root@hdfs-master:/usr/local/src$ speedtest
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Beijing Topnew Info&Tech co,.LTD. (12.52.21.92)...
Selecting best server based on ping...
Hosted by China Mobile Group GanSu Co.Ltd (Lanzhou) [158.10 km]: 22.968 ms
Testing download speed........................................
Download: 26.59 Mbit/s
Testing upload speed..................................................
Upload: 21.44 Mbit/s
转载于:https://blog.51cto.com/dadloveu/1373053