Linux Terminal#
v2rayA 在 Linux 上
- 单次使用当前 shell 的代理
export http_proxy="http://127.0.0.1:20171"
export https_proxy="http://127.0.0.1:20171"
- 查看是否成功
echo $http_proxy
echo $https_proxy
- 其他常用命令
# 设置http/socks5
export http_proxy="http://127.0.0.1:12346/"
export https_proxy="https://127.0.0.1:12346/"
export http_proxy="socks5://127.0.0.1:12347/"
export https_proxy="socks5://127.0.0.1:12347/"
export all_proxy="socks5://127.0.0.1:22346/"
# 取消设置
unset http_proxy
unset https_proxy
unset ALL_PROXY
Windows Terminal#
Clash for Windows
- 当前 shell
$env:HTTP_PROXY="http://127.0.0.1:7890"
$env:HTTPS_PROXY="http://127.0.0.1:7890"
set http_proxy=http://127.0.0.1:7890
set https_proxy=http://127.0.0.1:7890