VPS测速脚本 speedtest-cli 使用方法

Kevin 教程 1,610 次浏览 23条评论

开通 VPS 后如果希望测试下服务器的访问速度,可以使用 speedtest-cli 这个测速脚本。由知名 speedtest.net 测速网站提供,适用于各主流 Linux 发行版系统(需要 Python 组件支持,通常系统默认自带),使用方法如下。

1. 首先获取 speedtest-cli 脚本并赋予权限(如果运行不了,检查是否安装wget

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli

2. 之后运行./speedtest-cli命令即可测速,默认自动匹配附近服务器节点测速。

3. 如果要指定测速节点,先访问这个页面获取服务器ID(Ctrl+F 输入关键词快速查找,或者另存为网页内容为XML,然后转换为CSV表格使用)。例如我们找个“Shanghai”服务器测试,服务器ID为16719(可同时测试多个节点,以空格区分ID),测速命令则修改为如下。

./speedtest-cli --server 16719

4. 追加--share参数还可以生成测速结果图片外链,方便分享使用。


5. 如需了解更多测速参数,运行./speedtest-cli -h命令查看。


  1. #1

    hydroxychloroquine for arthritis reviews https://hydroxychloroquine.webbfenix.com/

  2. #2

    viagra with dapoxetine generic usa https://salemeds24.wixsite.com/dapoxetine

  3. #3

    ivermectin pills for humans https://ivermectin.webbfenix.com/

  4. #4

    stromectol dosage for scabies https://ivermectin.mlsmalta.com/

  5. #5

    generic tadalafil black vidalista https://vidalista.mlsmalta.com/

  6. #6

    clomid for infertility https://salemeds24.wixsite.com/clomid

  7. #7

    interactions for tadalafil http://www.lm360.us/

  8. #8

    sildenafil citrate pills http://droga5.net/

  9. #9

    hydroxychloroquine zinc and azithromycin https://hydroxychloroquine.mlsmalta.com/

  10. #10

    priligy for daily use dosage https://ddapoxetine.com/

  11. #11

    side effects of vidalista overdose https://vidalista40mg.mlsmalta.com/

  12. #12

    tamoxifen side effects forum https://tamoxifen.mrdgeography.com/

  13. #13

    directions for cialis 10mg https://wisig.org/

  14. #14

    amstyles.com https://amstyles.com/

  15. #15

    doxycycline prescription cost http://doxycycline.zolftgenwell.org/

  16. #16

    tadalafil cost 5mg https://tadalafil.cleckleyfloors.com/

  17. #17

    chloroquine adverse effects https://hydroxychloroquinee.com/

  18. #18

    I wanted to put you the very little remark to be able to thank you the moment again over the remarkable tactics you have provided on this page. This has been simply surprisingly generous of people like you giving easily all a few individuals could have advertised as an e-book in making some bucks for their own end, and in particular considering that you could have done it if you considered necessary. The basics additionally acted as a easy way to be aware that many people have a similar desire just as mine to figure out a great deal more concerning this condition. Certainly there are a lot more enjoyable instances ahead for folks who check out your blog. https://nujemznuedi.online/

  19. #19

    My spouse and i got quite glad that John could deal with his investigations through the ideas he grabbed out of your web page. It’s not at all simplistic to just continually be giving out methods that many other people have been selling. And we also fully understand we have got the website owner to be grateful to for that. The main explanations you have made, the simple site menu, the friendships you can help foster – it’s got many great, and it’s really helping our son and the family imagine that the matter is entertaining, and that is pretty indispensable. Thank you for everything! https://geodonziprasidone.com/

  20. #20

    Thank you for your entire labor on this web site. My mom really loves managing investigations and it is obvious why. My partner and i learn all regarding the lively tactic you present sensible things through your web site and in addition invigorate response from some other people on the issue so our favorite girl is in fact learning a lot of things. Take advantage of the rest of the year. You are always doing a really good job. https://venlorz.com/#

  21. #21

    I’m also commenting to let you be aware of of the brilliant discovery my child encountered checking the blog. She came to understand a lot of details, including how it is like to have a marvelous giving mood to have most people really easily know selected impossible subject areas. You really exceeded our own expectations. Many thanks for imparting the invaluable, safe, explanatory and even easy thoughts on the topic to Janet. https://wellbutrinbupropions.com/#

  22. #22

    my personal medication list https://edmeds.buszcentrum.com/

  23. #23

    my personal medication list https://buymeds.mlsmalta.com/


电邮地址用于 Gravatar 头像显示,不会被公开可见。