如果小伙伴需要在linux测试自己的网速如何,都在找一个合适的脚本来测试。最新小编在网上发现了一个脚本,还是不错的。经过测试完全可以用。。在任意linux操作系统上检测自己的当下网速,如果您正需要马上下载体验吧。
speedtest目录需要自己手工创建
wget http://oss-hk.bookcms.com/speedtest-cli/speedtest.py
chmod a+rx speedtest.py
mv speedtest.py /usr/local/bin/speedtest
chown root:root /usr/local/bin/speedtest
./speedtest.py
[root@aWAyxaVUZj speedtest]# ./speedtest.py
Retrieving speedtest.net configuration...
Testing from White-Sand Cloud Computing(HK) Co., LIMITED (xxxxxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Grupo GTD (Miami, FL) [4.52 km]: 296.866 ms
Testing download speed................................................................................
Download: 9.02 Mbit/s
Testing upload speed................................................................................................
Upload: 1.43 Mbit/s
[root@aWAyxaVUZj speedtest]#