正文:
我以前写过关于 linux 和 docker 配置 http 代理的文章。其实 linux 工具如 yum、apt、curl、wget 默认只需要配置全局代理,但是 Docker 拉映像比较特殊,需要单独配置,所以这只是为了方便在Linux中配置代理。
临时代理
配置临时代理。如果端口没有更改,只需更改 ip 即可。
注意:默认情况下,代理关闭局域网连接。如果该计算机上没有安装代理,请记住打开安装代理的计算机,以允许局域网连接。
1. v2rayN
# linux
export http_proxy="http://127.0.0.1:10809"
export https_proxy="http://127.0.0.1:10809"
# windows
set http_proxy="http://127.0.0.1:10809"
set https_proxy="http://127.0.0.1:10809"
2. clash
# linux
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
# windows
set http_proxy="http://127.0.0.1:7890"
set https_proxy="http://127.0.0.1:7890"
本文章已结束,如转载请注明:汇站网 » Linux 和 Windows 配置临时全局代理