终端设置代理
macOS / Linux
假设代理主机为 127.0.0.1
,HTTP 代理 / SOCKS5 代理监听端口为 7890
export http_proxy="http://127.0.0.1:7890" https_proxy="http://127.0.0.1:7890" all_proxy="socks5://127.0.0.1:7890"
Windows
PowerShell
$Env:http_proxy="http://127.0.0.1:7890"; $Env:https_proxy="http://127.0.0.1:7890"; $Env:all_proxy="socks5://127.0.0.1:7890"
CMD
set http_proxy=http://127.0.0.1:7890 & set https_proxy=http://127.0.0.1:7890 & set all_proxy=socks5://127.0.0.1:7890