设置“Proxy(代理)权限”通常取决于你使用的系统、浏览器、应用或开发工具。下面我按常见场景给你说明,你可以对号入座:
export http_proxy=http://user:pass@host:port
export https_proxy=https://user:pass@host:port
~/.bashrc 或 /etc/environment常见方式:
示例(curl):
curl -x http://user:pass@proxy:8080 https://example.com
git config --global http.proxy http://user:pass@proxy:port
在 daemon.json 中:
{
"proxies": {
"http-proxy": "http://proxy:8080",
"https-proxy": "http://proxy:8080"
}
}
如果你能告诉我:
我可以给你更精确的操作步骤。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。