简单几步 对Liunx服务器的宽带进行测速

第一步,下载脚本:

wget -O cs https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

第二步:移动脚步到/bin/方便全局执行

mv cs /bin/

给个小权限

chmod 0777 /bin/cs

然后直接执行cs就能测速啦:

cs

结果大致如下:

Retrieving speedtest.net configuration...
Testing from Tencent (xxxxxxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Beijing Telecom (Beijing) [1.69 km]: 25.098 ms
Testing download speed................................................................................
Download: 219.28 Mbit/s
Testing upload speed................................................................................................
Upload: 113.03 Mbit/s


猜你喜欢

转载自blog.csdn.net/qq_28347599/article/details/72863300