{"id":908,"date":"2021-03-05T18:46:40","date_gmt":"2021-03-05T10:46:40","guid":{"rendered":"https:\/\/blog.humh.cn\/?p=908"},"modified":"2021-03-26T11:49:02","modified_gmt":"2021-03-26T03:49:02","slug":"%e7%bb%99%e5%a4%9a%e6%95%b0shell%e5%91%bd%e4%bb%a4%e5%90%af%e7%94%a8%e4%bb%a3%e7%90%86","status":"publish","type":"post","link":"https:\/\/blog.humh.cn\/?p=908","title":{"rendered":"\u7ed9\u591a\u6570Shell\u547d\u4ee4\u542f\u7528\u4ee3\u7406"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>\u4e00\u884c\u7b80\u5355\u7684\u547d\u4ee4\u6216\u4e00\u884c\u7b80\u5355\u7684\u914d\u7f6e\uff0c\u5373\u53ef\u652f\u6301wget\u3001curl\u53cahomebrew\u7b49\u547d\u4ee4\u4f7f\u7528\u4ee3\u7406\uff01<\/p><\/blockquote>\n\n\n\n<p>\u65e0\u610f\u95f4\u53d1\u73b0\u4e00\u4e2a\u4e0d\u9519\u7684\u5c0f\u6280\u5de7\uff0c\u53ef\u4ee5\u5feb\u901f\u4f7f\u90e8\u5206\u4e0b\u8f7d\u6216\u7f51\u7edc\u8fde\u63a5\u8d44\u6e90\u8bbf\u95ee\u7684\u547d\u4ee4\u6302\u4ee3\u7406\u3002\u5982homebrew\u3001wget\u7b49<\/p>\n\n\n\n<h4>\u9700\u6c42<\/h4>\n\n\n\n<p>\u5728Mac\u7ec8\u7aef\u4e2d\u4f7f\u7528<strong>homebrew<\/strong>\u5b89\u88c5\u8d44\u6e90\u65f6\uff0c\u5927\u591a\u6570\u60c5\u51b5\uff0c\u603b\u662f\u56e0\u7f51\u7edc\u95ee\u9898\uff0c\u4e0b\u8f7d\u7279\u522b\u6162\uff0c\u5982\u6211\u5728\u5b89\u88c5<strong>Github Desktop<\/strong>\uff0c\u8fd0\u884c<code>brew install --cask github<\/code>\u540e\uff0c\u4f1a\u53bb\u4e0b\u8f7d<a href=\"https:\/\/desktop.githubusercontent.com\/releases\/2.6.1-afb56263\/GitHubDesktop.zip\">https:\/\/desktop.githubusercontent.com\/releases\/2.6.1-afb56263\/GitHubDesktop.zip<\/a>\uff0c\u660e\u663egithub\u5185\u5bb9\u5f88\u5bb9\u6613\u88ab\u5899\u3002\u6211\u60f3brew install\u65f6\u4f7f\u7528\u4ee3\u7406\uff01<\/p>\n\n\n\n<h4>\u89e3\u51b3\u65b9\u6cd5<\/h4>\n\n\n\n<p>\u5728\u5f53\u524d\u7ec8\u7aef\u4f1a\u8bdd\u4e2d\uff0c\u8fd0\u884c\u547d\u4ee4<code>export ALL_PROXY=socks5:\/\/127.0.0.1:6666<\/code>\uff0c\u5373\u53ef\u5f00\u542f\u5168\u5c40\u4ee3\u7406\u3002<br><strong>\u6ce8\u610f<\/strong>\uff1a\u8fd9\u91cc\u6211\u672c\u5730\u5f00\u4e86\u4e00\u4e2asocket\u4ee3\u7406\uff0c\u7aef\u53e3\u53f76666\uff0c\u6240\u4ee5\u547d\u4ee4\u5982\u4e0a\uff0c\u8fd9\u91cc\u914d\u7f6e\u6210\u4f60\u7684\u4ee3\u7406\u5730\u5740\u53ca\u7aef\u53e3\u5373\u53ef\uff0c\u5f53\u7136\u4e5f\u652f\u6301http\u3002<\/p>\n\n\n\n<p>\u7136\u540e\u5728\u5f53\u524d\u7ec8\u7aef\u4e2d\uff0c\u518d\u6b21\u8fd0\u884c<code>brew install --cask github<\/code>\uff0c\u53d1\u73b0\u901f\u5ea6\u6760\u6760\u7684\uff0c\u5f88\u660e\u663e\u4ee3\u7406\u751f\u6548\u3002<\/p>\n\n\n\n<h4>\u8bf4\u660e<\/h4>\n\n\n\n<p>\u4e0a\u9762\u8fd9\u4e2a\u8fc7\u7a0b\u4ec5\u4fdd\u8bc1\u5728\u4e00\u4e2a\u4f1a\u8bdd\u5185\u6709\u6548\uff0c\u56e0\u4e3a\u662f\u5728\u67d0\u4e2a\u7ec8\u7aef\u4f1a\u8bdd\u4e2d\u8bbe\u7f6e\u7684<strong>ALL_PROXY<\/strong>\u73af\u5883\u53d8\u91cf\uff0c\u5728\u5176\u4ed6\u4f1a\u8bdd\uff0c\u662f\u6ca1\u6709\u8be5\u73af\u5883\u53d8\u91cf\u7684\u3002\u5982\u679c\u60f3\u5168\u5c40\u4f5c\u7528\uff0c\u53ef\u4ee5\u5c06\u5176\u914d\u7f6e\u4e3a\u5f53\u524d\u7528\u6237\u7684\u5168\u5c40\u73af\u5883\u53d8\u91cf\uff0c\u5982bash\uff0c\u5219~\/.bashrc\uff0czsh\uff0c\u5219~\/.zshrc\u4e2d\u3002<\/p>\n\n\n\n<p>\u53e6\u5916\uff0c\u5982\u679chttp\u4ee3\u7406\u7684\u8bdd\uff0c\u4e5f\u53ef\u4ee5\u4e0d\u914d\u7f6e<strong>ALL_PROXY<\/strong>\uff0c\u800c\u914d\u7f6e<strong>HTTP_PROXY<\/strong>\u3001<strong>HTTPS_PROXY<\/strong>\uff0c\u4e5f\u662f\u652f\u6301\u7684\u3002<\/p>\n\n\n\n<p>\u9700\u6ce8\u610f\uff0c\u8fd9\u79cd\u914d\u7f6e\u4ee3\u7406\u73af\u5883\u53d8\u91cf\u7684\u65b9\u5f0f\uff0c\u4ec5\u652f\u6301\u90e8\u5206\u547d\u4ee4\uff0c\u5982wget\u3001curl\u53cahomebrew\u7b49\u7b49\uff0c\u4e0d\u662f\u6240\u6709\u90fd\u652f\u6301\u3002\u5177\u4f53\u652f\u6301\u540d\u5355\u4f1a\u5728\u4e0b\u65b9\u5217\u51fa\uff08\u6839\u636e\u672c\u4eba\u5b9e\u8df5\uff0c\u6301\u7eed\u66f4\u65b0\u3002\u3002\uff09\u53d8\u91cf\u540d\u5927\u5c0f\u5199\u4e5f\u9700\u8981\u6ce8\u610f\uff0c\u6709\u4e9b\u5c0f\u5199\u5c31\u884c\uff0c\u6709\u4e9b\u53ea\u8bc6\u522b\u5927\u5199\uff0c\u6240\u4ee5\u8fd9\u91cc\u5efa\u8bae\uff0c\u76f4\u63a5\u5927\u5c0f\u5199\u5747\u914d\u7f6e\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u652f\u6301\u901a\u8fc7PROXY\u73af\u5883\u53d8\u91cf\u7684\u5de5\u5177\u6709\uff1a<\/p>\n\n\n\n<ul><li>wget<\/li><li>curl<\/li><li>homebrew<\/li><li>pyenv<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p><strong>\u672c\u6587\u53c2\u8003<\/strong><\/p>\n\n\n\n<ul><li>Proxy server (\u7b80\u4f53\u4e2d\u6587)\uff1a<a href=\"https:\/\/wiki.archlinux.org\/index.php\/Proxy_server_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)\">https:\/\/wiki.archlinux.org\/index.php\/Proxy_server_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u884c\u7b80\u5355\u7684\u547d\u4ee4\u6216\u4e00\u884c\u7b80\u5355\u7684\u914d\u7f6e\uff0c\u5373\u53ef\u652f\u6301wget\u3001curl\u53cahomebrew\u7b49\u547d\u4ee4\u4f7f\u7528\u4ee3\u7406\uff01 \u65e0\u610f\u95f4\u53d1\u73b0\u4e00\u4e2a\u4e0d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":909,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[53],"tags":[31,113,115],"_links":{"self":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/908"}],"collection":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=908"}],"version-history":[{"count":2,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/908\/revisions"}],"predecessor-version":[{"id":924,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/908\/revisions\/924"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/media\/909"}],"wp:attachment":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}