{"id":23852,"date":"2022-11-07T08:52:22","date_gmt":"2022-11-07T00:52:22","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=23852"},"modified":"2022-11-07T08:52:27","modified_gmt":"2022-11-07T00:52:27","slug":"speedtest-network-in-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/speedtest-network-in-linux.html","title":{"rendered":"Linux\u4e0b\u4f7f\u7528Speedtest\u6d4b\u8bd5\u7f51\u901f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nSpeedtest\u662f\u7528\u6765\u6d4b\u8bd5\u7f51\u7edc\u6027\u80fd\u7684\u5f00\u6e90\u8f6f\u4ef6\uff0c\u5728Linux\u4e0b\u9762\u5b89\u88c5Speedtest\u53ef\u4ee5\u7528\u6765\u6d4b\u8bd5\u7f51\u7edc\u51fa\u53e3\u7684\u4e0a\u4f20\u548c\u4e0b\u8f7d\u901f\u5ea6\uff0c\u5e2e\u52a9\u6392\u67e5\u7f51\u7edc\u65b9\u9762\u5bfc\u81f4\u7684\u6545\u969c\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"linuxprobe\"<\/a><\/p>\n

Speedtest\u4ecb\u7ecd<\/strong><\/div>\n

\u7531\u4e8e\u516c\u53f8\u51e0\u4e2a\u9879\u76ee\u7528\u6237\u8bbf\u95ee\u7684\u65f6\u5019\u54cd\u5e94\u8f83\u6162\uff0c\u9879\u76ee\u672c\u8eab\u6ca1\u95ee\u9898\uff0c\u670d\u52a1\u53ca\u8c03\u7528\u7684\u63a5\u53e3\u8fd4\u56de\u4fe1\u606f\u90fd\u6bd4\u8f83\u6b63\u5e38\uff0c\u731c\u60f3\u662f\u7f51\u7edc\u65b9\u9762\u9020\u6210\u7684\u74f6\u9888\uff0c\u5bfc\u81f4\u7528\u6237\u8bf7\u6c42\u7684\u65f6\u5019\u7f51\u7edc\u54cd\u5e94\u5835\u585e\uff0c\u62c9\u957f\u4e86\u54cd\u5e94\u65f6\u95f4\u3002<\/p>\n

Speedtest.net\u662f\u6bd4\u8f83\u5e7f\u6cdb\u7684\u7528\u6765\u6d4b\u8bd5\u5bbd\u5e26\u901f\u5ea6\u7684\u7f51\u7ad9\uff0cSpeedtest.net\u7684\u5de5\u4f5c\u539f\u7406\u5e76\u4e0d\u590d\u6742\uff1a\u5b83\u5728\u4f60\u7684\u6d4f\u89c8\u5668\u4e2d\u52a0\u8f7dJavaScript\u4ee3\u7801\u5e76\u81ea\u52a8\u68c0\u6d4b\u79bb\u4f60\u6700\u8fd1\u7684Speedtest.net\u670d\u52a1\u5668\uff0c\u7136\u540e\u5411\u670d\u52a1\u5668\u53d1\u9001HTTP GET and POST\u8bf7\u6c42\u6765\u6d4b\u8bd5\u4e0a\u884c\/\u4e0b\u884c\u7f51\u901f\u3002<\/p>\n

\u4f46\u5728\u6ca1\u6709\u56fe\u5f62\u5316\u684c\u9762\u65f6\uff08\u4f8b\u5982\uff0c\u5f53\u4f60\u901a\u8fc7\u547d\u4ee4\u884c\u8fdc\u7a0b\u767b\u9646\u670d\u52a1\u5668\u6216\u4f7f\u7528\u6ca1\u6709\u56fe\u5f62\u754c\u9762\u7684\u64cd\u4f5c\u7cfb\u7edf\uff09\uff0c\u57fa\u4e8eflash\u3001\u754c\u9762\u53cb\u597d\u7684Speedtest.net\u5c06\u65e0\u6cd5\u5de5\u4f5c\u3002\u5e78\u8fd0\u7684\u662f\uff0cSpeedtest.net\u63d0\u4f9b\u4e86\u4e00\u4e2a\u547d\u4ee4\u884c\u7248\u672c\u2014\u2014speedtest-cli\u3002\u4e0b\u9762\u6211\u5c06\u5411\u4f60\u6f14\u793a\u5982\u4f55\u5728Linux\u7684\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528speedtest-cli\u6765\u6d4b\u8bd5\u5bbd\u5e26\u8fde\u63a5\u901f\u5ea6\u3002<\/p>\n

\u5b89\u88c5speedtest-cli<\/strong><\/div>\n

Github\u94fe\u63a5\uff1ahttps:\/\/github.com\/sivel\/speedtest-cli
\nSpeendtest.net\u5b98\u7f51\uff1ahttp:\/\/www.speedtest.net\/
\n\u6d4b\u8bd5\u672c\u673a\u6240\u5728\u7f51\u7edc\u51fa\u53e3\u7684\u5e26\u5bbd,\u8bbf\u95eeSpeendtest.net\uff0c\u70b9\u51fb\u9996\u9875\u7684Begin\u5f00\u59cb\u6d4b\u8bd5\uff0c\u7b49\u5f85\u51e0\u79d2\uff0c\u67e5\u770b\u6d4b\u8bd5\u7ed3\u679c\uff1a<\/p>\n

\"7-30-1\"<\/a><\/p>\n

pip\u5b89\u88c5<\/strong><\/span><\/div>\n

speedtest\u662f\u7528python\u5199\u7684\uff0c\u6ca1\u4f7f\u7528\u8fc7pip\u7684\u9700\u8981\u5148\u5b89\u88c5pip\uff0c<\/p>\n

pip\u5b89\u88c5\uff1ahttps:\/\/pip.pypa.io\/en\/stable\/installing\/
\n#\u5f00\u542fepel\u6e90<\/p>\n

yum install python-pip \u2013y<\/pre>\n
\u5b89\u88c5speedtest-cli<\/strong><\/span><\/div>\n
pip install speedtest-cli<\/pre>\n

\u5b89\u88c5\u5b8c\u6210\u6d4b\u8bd5<\/p>\n

which speedtest-cli | bash \u2013<\/pre>\n

\"7-30-2\"<\/a><\/p>\n

github\u5b89\u88c5<\/strong><\/span><\/div>\n
pip install git+https:\/\/github.com\/sivel\/speedtest-cli.git<\/pre>\n

\u6216\u8005<\/p>\n

git clone https:\/\/github.com\/sivel\/speedtest-cli.git\r\npython speedtest-cli\/setup.py install<\/pre>\n
shell\u5b89\u88c5<\/strong><\/span><\/div>\n
wget -O speedtest-cli https:\/\/raw.githubusercontent.com\/sivel\/speedtest-cli\/master\/speedtest_cli.py\r\nchmod +x speedtest-cli\r\n.\/speedtest-cli<\/pre>\n
speedtest-cli\u4f7f\u7528<\/strong><\/span><\/div>\n
speedtest-cli \u2013h\r\n\/usr\/bin\/speedtest-cli \u2013share\r\n\/usr\/bin\/speedtest-cli \u2013list<\/pre>\n

\"7-30-3\"<\/a> \"7-30-4\"<\/p>\n

 <\/p>\n

\u672c\u6587\u539f\u521b\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/speedtest-network-in-linux.html<\/a>\u4f5c\u8005\uff1a\u738b\u8f89\uff0c\u5ba1\u6838\u5458\uff1a\u9676\u6b66\u6770<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb Speedtest\u662f\u7528\u6765\u6d4b\u8bd5\u7f51\u7edc\u6027\u80fd\u7684\u5f00\u6e90\u8f6f\u4ef6\uff0c\u5728Linux\u4e0b\u9762\u5b89\u88c5Speedtest\u53ef\u4ee5\u7528\u6765\u6d4b\u8bd5\u7f51\u7edc\u51fa […]<\/p>\n","protected":false},"author":63,"featured_media":23858,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-23852","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/23852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=23852"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/23852\/revisions"}],"predecessor-version":[{"id":257076,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/23852\/revisions\/257076"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/23858"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=23852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=23852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=23852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}