wohenyingyu01
V2EX  ›  问与答

mac 系统怎么在命令行中通过 proxy 操作?

  •  
  •   wohenyingyu01 · Jul 30, 2015 · 3500 views
    This topic created in 3989 days ago, the information mentioned may be changed or developed.
    比如我在网络设置中配置了全局socks5代理,但是在命令行下好像不会使用这个代理,比如brew install android-sdk,ping www.facebook.com等均撞墙,求大神
    7 replies    2015-07-31 00:13:25 +08:00
    elden
        2
    elden  
       Jul 30, 2015
    export socks_proxy="ip:port"
    sotilsy
        3
    sotilsy  
       Jul 30, 2015
    `brew install proxychains-ng`
    wohenyingyu01
        4
    wohenyingyu01  
    OP
       Jul 30, 2015
    @sotilsy ping呢,wget呢
    wohenyingyu01
        5
    wohenyingyu01  
    OP
       Jul 30, 2015
    @elden 你确定
    wohenyingyu01
        6
    wohenyingyu01  
    OP
       Jul 30, 2015
    @smilezino 谢谢
    lyf362345
        7
    lyf362345  
       Jul 31, 2015
    export http_proxy=http://127.0.0.1:8118
    export https_proxy=$http_proxy
    export ftp_proxy=$http_proxy
    export rsync_proxy=$http_proxy
    export socks_proxy=socks://127.0.0.1:1080
    export socks5_proxy=socks5://127.0.0.1:1080

    用 privoxy 把 socks 转 http
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5749 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 02:09 · PVG 10:09 · LAX 19:09 · JFK 22:09
    ♥ Do have faith in what you're doing.