Linux Terminal#
v2rayA on Linux
- 单次使用 Proxy for the current 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
- the current 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