{"id":439,"date":"2023-02-25T12:34:26","date_gmt":"2023-02-25T04:34:26","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=439"},"modified":"2023-04-29T21:04:42","modified_gmt":"2023-04-29T13:04:42","slug":"linux-common-commands-set-and-cancel-proxy","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/linux-common-commands-set-and-cancel-proxy\/","title":{"rendered":"Linux\u5e38\u7528\u547d\u4ee4\u8bbe\u7f6e\u548c\u53d6\u6d88\u4ee3\u7406"},"content":{"rendered":"<h2>yum<\/h2>\n<pre><code>vim \/etc\/yum.conf<\/code><\/pre>\n<p>\u5982\u679c\u4ee3\u7406\u4e0d\u9700\u8981\u7528\u6237\u540d\u5bc6\u7801\u8ba4\u8bc1\uff1a<\/p>\n<p><!-- more --><\/p>\n<pre><code>proxy=http:\/\/192.168.16.28:8118<\/code><\/pre>\n<p>\u5982\u679c\u9700\u8981\u8ba4\u8bc1\uff1a<\/p>\n<pre><code>proxy=http:\/\/192.168.16.28:8118\nproxy_username=yezhou<\/code><\/pre>\n<h2>wget<\/h2>\n<pre><code>export http_proxy=http:\/\/192.168.16.28:8118\nexport https_proxy=http:\/\/192.168.16.28:8118\n\nwget http:\/\/www.appblog.cn<\/code><\/pre>\n<p>\u6216<\/p>\n<pre><code>wget -Y on -e &quot;http_proxy=http:\/\/192.168.16.28:8118&quot; http:\/\/www.appblog.cn<\/code><\/pre>\n<p><code>-Y<\/code>\uff1a\u662f\u5426\u4f7f\u7528\u4ee3\u7406<br \/>\n<code>-e<\/code>\uff1a\u6267\u884c\u547d\u4ee4<\/p>\n<h2>curl<\/h2>\n<pre><code>export http_proxy=http:\/\/192.168.16.28:8118\nexport https_proxy=http:\/\/192.168.16.28:8118\n\ncurl http:\/\/www.appblog.cn\ncurl -I http:\/\/www.appblog.cn\ncurl -v -I http:\/\/www.appblog.cn<\/code><\/pre>\n<p>\u6216<\/p>\n<pre><code>curl -x 192.168.16.28:8118 http:\/\/www.appblog.cn<\/code><\/pre>\n<p><code>-x<\/code>\uff1a\u8bbe\u7f6e\u4ee3\u7406\uff0c\u683c\u5f0f\u4e3a<code>host[:port]<\/code>\uff0cport\u7684\u7f3a\u7701\u503c\u4e3a1080<\/p>\n<p>\u4f7f\u7528socks5\u4ee3\u7406\u65b9\u6cd5\uff1a<\/p>\n<pre><code>--socks5-hostname host:port<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>yum vim \/etc\/yum.conf \u5982\u679c\u4ee3\u7406\u4e0d\u9700\u8981\u7528\u6237\u540d\u5bc6\u7801\u8ba4\u8bc1\uff1a proxy=http:\/\/192. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[142],"class_list":["post-439","post","type-post","status-publish","format-standard","hentry","category-tools-skills","tag-142"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=439"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/439\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}