Terminal Proxy

终端fq

  • 在终端中直接运行命令
    export http_proxy=http://proxyAddress:port
    
  • 如果你用的是ss代理,在当前终端运行以下命令,那么wget curl这类网络命令都会经过ss代理
    export ALL_PROXY=socks5://127.0.0.1:1080
    
  • 直接在.bashrc或者.zshrc添加下面内容
    export http_proxy="http://localhost:port"
    export https_proxy="http://localhost:port"
    
  • 或者直接设置ALL_PROXY
    export ALL_PROXY=socks5://127.0.0.1:1080
    
  • 链接

Search

    欢迎添加我的微信

    闷骚的程序员

    Table of Contents