ideallove

ideallove

github

在終端中使用代理網絡

Linux Terminal#

v2rayA 在 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

  • 當前 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

References#

https://www.cnblogs.com/xch-jiang/p/14324636.html

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。