{"id":252,"date":"2021-08-07T05:00:00","date_gmt":"2021-08-07T05:00:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=252"},"modified":"2021-08-07T05:00:00","modified_gmt":"2021-08-07T05:00:00","slug":"252","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/08\/07\/252\/","title":{"rendered":"\u56fd\u5185Linux\u4f7f\u7528http\u4ee3\u7406\uff0c\u6109\u5feb\u4f7f\u7528 docker wget curl git apt"},"content":{"rendered":"<h2>\u56fd\u5185<code>Linux<\/code> \u4f7f\u7528 <code>http<\/code> \u4ee3\u7406\uff0c\u6109\u5feb\u4f7f\u7528 <code>docker wget curl git apt<\/code><\/h2>\n<ul>\n<li>\n<p>\u5728\u4f7f\u7528 <code>docker build<\/code> \u6253\u5305\u955c\u50cf\u65f6\uff0c\u9047\u5230\u4e86\u9700\u8981\u4f7f\u7528\u4ee3\u7406\u8bbf\u95ee\u7f51\u7edc\u7684\u9700\u6c42\u3002\u4f7f\u7528\u5982\u4e0b\u7684 <code>Dockerfile<\/code> \u6765\u6a21\u62df\u8fd9\u4e2a\u573a\u666f\uff1a<\/p>\n<pre><code>FROM golang\nRUN curl www.google.com --max-time 3<\/code><\/pre>\n<\/li>\n<li>\u56fd\u5185\u4e00\u822c\u7f51\u7edc\u73af\u5883\u4e0b\uff0c<code>curl www.google.com<\/code> \u662f\u65e0\u6cd5\u6b63\u5e38\u8fd4\u56de\u7684\uff0c\u52a0\u5165 --max-time \u8ba9 curl \u7684\u8017\u65f6\u4e0d\u8981\u592a\u957f\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/3755565536.png\" alt=\"http.png\" title=\"http.png\"><\/p>\n<h2>\u6211\u4eec\u77e5\u9053Linux\u7cfb\u7edf\u6dfb\u52a0Http\u4ee3\u7406\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff0c\u4f7f\u7528http\u4ee3\u7406\u652f\u6301\u7684\u8f6f\u4ef6\u591a\u4e00\u4e9b<\/h2>\n<pre><code>export http_proxy=\"http:\/\/192.168.1.135:8010\"\nexport https_proxy=\"http:\/\/192.168.1.135:8010\"\n\ncurl google.com<\/code><\/pre>\n<h2>\u73b0\u5728\u628a\u547d\u4ee4\u884c\u6539\u5199\u6210 <code>http.sh<\/code> \u811a\u672c\uff0c\u4f7f\u7528: <code>. http.sh [ip:port]<\/code><\/h2>\n<pre><code># usage:  . http.sh [ip:port]\n\nhttp_proxy=http:\/\/192.168.1.135:8010\n\nif [[ $# &gt; 0 ]]; then\n  http_proxy=http:\/\/$1\nfi\necho \"export https_proxy=${http_proxy}\"\n\nexport http_proxy=$http_proxy\nexport https_proxy=$http_proxy\ncurl google.com\n<\/code><\/pre>\n<h2>\u600e\u4e48\u624d\u80fd\u6709\u8fd9\u4e2aIP\u5730\u5740\u5462\uff0c\u5982\u56fe <code>V2N<\/code> \u5ba2\u6237\u7aef <code>config.json<\/code><\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/3724918731.png\" alt=\"V2.png\" title=\"V2.png\"><\/p>\n<h2>\u6216\u8005\u4f7f\u7528 <code>socks5tohttp<\/code> \u8f6c\u6362\u6210 <code>http<\/code> \u4ee3\u7406<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/2171950373.png\" alt=\"brook.png\" title=\"brook.png\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56fd\u5185Linux \u4f7f\u7528 http \u4ee3\u7406\uff0c\u6109\u5feb\u4f7f\u7528 docker wget curl git apt \u5728 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[23],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}