Livid
276.74D
573.08D
V2EX  ›  macOS

为 MacPorts 下载设置代理服务器

  •  
  •   Livid ·
    PRO
    · May 2, 2011 · 8273 views
    This topic created in 5490 days ago, the information mentioned may be changed or developed.
    编辑 /opt/local/etc/macports/macports.conf

    在文件的末尾:

    proxy_override_env yes
    proxy_http 127.0.0.1:1331

    其中 127.0.0.1:1331 就是你的 http 代理服务器的地址,如果你的代理服务器只能提供 SOCKS 5 协议,那么可以用 polipo 或是 Charles 将其转换成 http。

    经过设置,在国内下载 MacPorts 的速度基本上可以达到 ADSL 宽带的满速。
    2 replies    1970-01-01 08:00:00 +08:00
    yoyicue
        1
    yoyicue  
       May 2, 2011 via iPhone
    上次因为某个命令不支持 proxy
    当时手头没有好用的 vpn
    索性编译了个 mac 的 tsock
    http://www.v2ex.com/t/10512
    dismory
        2
    dismory  
       May 2, 2011
    Awesome!

    回头用 iPuff 商业版试一试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5997 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 02:21 · PVG 10:21 · LAX 19:21 · JFK 22:21
    ♥ Do have faith in what you're doing.