Privoxy | Terminal use Privoxy freely choose whether to proxy pull Golang package (Mac OS)

Source: Internet
Author: User
Tags configuration settings

21-day Boutique blockchain free learning, in-depth expert led the way, to help developers easily play the blockchain! >>>

Background:

1.运用包管理工具dep管理引用包2.有些包需要代理,有包是内部包不能用代理

Realize:

1. Configure SOCKS5 Proxy (skip)

2. Installing Privoxy

通过brew install privoxy进行安装安装成功后,通过brew info privoxy查看安装过后的信息  privoxy: stable 3.0.26 (bottled)  ******省略******  To have launchd start privoxy now and restart at login:     brew services start privoxy  Or, if you don't want/need a background service you can just run:     privoxy /usr/local/etc/privoxy/config 从信息中可以看出来配置文件在/usr/local/etc/privoxy/config

3. Configuration settings (Configuration Help document: https://www.privoxy.org/user-manual/config.html)

# privoxy 监听配置listen-address  127.0.0.1:1087# privoxy 代理到socks的地址上forward-socks5 / 127.0.0.1:1086 .# 不需要走http代理的IP或者域名forward 192.168.*.* .forward 10.*.*.* .forward 127.*.*.* .forward *.com .保存配置,启动privoxy

HTTP proxy to let the terminal go privoxy

export http_proxy="http://127.0.0.1:1087"export https_proxy="http://127.0.0.1:1087"终端代理的N中方法: https://blog.fazero.me/2015/09/15/%E8%AE%A9%E7%BB%88%E7%AB%AF%E8%B5%B0%E4%BB%A3%E7%90%86%E7%9A%84%E5%87%A0%E7%A7%8D%E6%96%B9%E6%B3%95/
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.