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
标签:127.0,http,0.1,代理,终端,设置,7890,proxy
From: https://www.cnblogs.com/Undefined443/p/18002347