{"id":4751,"date":"2019-08-24T23:40:49","date_gmt":"2019-08-24T15:40:49","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4751"},"modified":"2019-08-24T23:40:50","modified_gmt":"2019-08-24T15:40:50","slug":"speedtest-cli","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/speedtest-cli","title":{"rendered":"speedtest-cli\u547d\u4ee4 – \u6d4b\u8bd5\u670d\u52a1\u5668\u5916\u7f51\u901f\u5ea6"},"content":{"rendered":"\n
speedtest-cli \u662f\u4e00\u4e2a\u4f7f\u7528python\u7f16\u5199\u7684\u547d\u4ee4\u884c\u811a\u672c\uff0c\u901a\u8fc7\u8c03\u7528speedtest.net\u6d4b\u8bd5\u4e0a\u4e0b\u884c\u7684\u63a5\u53e3\u6765\u5b8c\u6210\u901f\u5ea6\u6d4b\u8bd5\uff0c\u6700\u540e\u6211\u4f1a\u6d4b\u8bd5\u8fd0\u7ef4\u751f\u5b58\u65f6\u95f4\u6240\u5728\u670d\u52a1\u5668\u7684\u5916\u7f51\u901f\u5ea6\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>speedtest-cli [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u5217\u51fa\u6240\u6709\u5728\u4e2d\u56fd\u7684\u6d4b\u8bd5\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n \u5c06\u901f\u5ea6\u6d4b\u8bd5\u7684\u7ed3\u679c\u751f\u6210\u4e00\u5f20\u56fe\u7247\u7684\u8fde\u63a5\uff0c\u4fbf\u4e8e\u4f60\u5206\u4eab \uff1a<\/p>\n\n\n\n \u4ee5\u5b57\u8282\u8ba1\u7b97\u7684\u65b9\u5f0f\u6765\u6d4b\u8bd5\u4e0a\u4e0b\u884c\u901f\u5ea6\uff1a<\/p>\n\n\n\n \u53ea\u663e\u793aping\u548c\u4e0a\u4e0b\u884c\u901f\u5ea6\uff1a<\/p>\n\n\n\n \u5217\u51faspeedtest.net\u6240\u6709\u7684\u670d\u52a1\u5668\u8ddd\u79bb\u4f60\u7684\u7269\u7406\u8ddd\u79bb\uff0c\u5355\u4f4d\u662f\u5343\u7c73(km):<\/p>\n\n\n\n speedtest-cli \u662f\u4e00\u4e2a\u4f7f\u7528python\u7f16\u5199\u7684\u547d\u4ee4\u884c\u811a\u672c\uff0c\u901a\u8fc7\u8c03\u7528speedtest.ne […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4751"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4751"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4751\/revisions"}],"predecessor-version":[{"id":4798,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4751\/revisions\/4798"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}--share <\/td> \u5206\u4eab\u4f60\u7684\u7f51\u901f\uff0c\u8be5\u547d\u4ee4\u4f1a\u5728speedtest\u7f51\u7ad9\u4e0a\u751f\u6210\u7f51\u901f\u6d4b\u8bd5\u7ed3\u679c\u7684\u56fe\u7247<\/td><\/tr> --list <\/td> \u6839\u636e\u8ddd\u79bb\u663e\u793aspeedtest.net\u7684\u6d4b\u8bd5\u670d\u52a1\u5668\u5217\u8868<\/td><\/tr> --server=SERVER <\/td> \u6307\u5b9a\u5217\u8868\u4e2did\u7684\u670d\u52a1\u5668\u6765\u505a\u6d4b\u8bd5<\/td><\/tr> --source=SOURCE <\/td> \u7ed1\u5b9a\u670d\u52a1\u5668\u7684\u6e90\u5730\u5740<\/td><\/tr> --simple <\/td> \u4ec5\u663e\u793a\u57fa\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# speedtest-cli --list | grep China<\/pre>\n\n\n\n
[root@linuxcool ~]# speedtest-cli --share <\/pre>\n\n\n\n
[root@linuxcool ~]# speedtest-cli --bytes<\/pre>\n\n\n\n
[root@linuxcool ~]# speedtest-cli --simple <\/pre>\n\n\n\n
[root@linuxcool ~]# speedtest-cli --list <\/pre>\n","protected":false},"excerpt":{"rendered":"