需要 Python 2.4-2.7 / 3
Python 2:
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest-cli --no-check-certificate -O speedtest-cli.py
Python 3:
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest-cli-3 --no-check-certificate -O speedtest-cli.py
下载完成后,将其设置为可执行:
chmod +x speedtest-cli.py
测试速度,运行以下指令:
python speedtest-cli.py
测试并生成图片:
python speedtest-cli.py --share
之后会自动贴出速度图片地址,如下所示:
转载请注明:观测者 » 用speedtest测试VPS宽带速度