﻿{"id":148,"date":"2018-06-12T15:24:30","date_gmt":"2018-06-12T07:24:30","guid":{"rendered":"http:\/\/www.cloudy.pub\/?p=148"},"modified":"2018-06-30T23:44:54","modified_gmt":"2018-06-30T15:44:54","slug":"centos7-%e5%ae%89%e8%a3%85speedtest%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%b5%8b%e9%80%9f","status":"publish","type":"post","link":"https:\/\/www.0moon.com\/?p=148","title":{"rendered":"Linux\u5b89\u88c5speedtest\u547d\u4ee4\u884c\u6d4b\u901f"},"content":{"rendered":"<ol class=\"linenums\">\n<li class=\"L0\"><code><span class=\"kwd\">apt-get\/yum<\/span><span class=\"pln\"> install python<\/span><span class=\"pun\">-<\/span><span class=\"pln\">pip\u00a0\u6216\u8005\u00a0wget\u00a0https:\/\/bootstrap.pypa.io\/get-pip.py &amp;&amp;\u00a0python get-pip.py<\/span><\/code><\/li>\n<li class=\"L1\"><code><span class=\"pln\">pip install speedtest<\/span><span class=\"pun\">-<\/span><span class=\"pln\">cli<\/span><\/code><\/li>\n<li><code><span class=\"pln\">pip install <\/span><span class=\"pun\">--<\/span><span class=\"pln\">upgrade pip<\/span><\/code><\/li>\n<li class=\"L0\"><code><span class=\"pln\">pip install speedtest<\/span><span class=\"pun\">-<\/span><span class=\"pln\">cli <\/span><span class=\"pun\">--<\/span><span class=\"pln\">upgrade<\/span><\/code><\/li>\n<li>chmod 777 \/usr\/lib\/python2.7\/site-packages\/<span class=\"pln\">speedtest<\/span><span class=\"pun\">.<\/span><span class=\"pln\">py<\/span><\/li>\n<li>\/usr\/lib\/python2.7\/site-packages\/<span class=\"pln\">speedtest<\/span><span class=\"pun\">.<\/span><span class=\"pln\">py<\/span><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>apt-get\/yum install python-pip\u00a0\u6216\u8005\u00a0wget\u00a0https:\/\/bootstra [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,13],"tags":[],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-linux","category-study"],"_links":{"self":[{"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.0moon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":6,"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":172,"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions\/172"}],"wp:attachment":[{"href":"https:\/\/www.0moon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.0moon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.0moon.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}