iTerm 2 using a proxy

0x00 event

Because brew install very slow, so it is necessary to set the proxy problem resolution 2 iTerm.

0x01 solve

Agent software enable local port Http:

iTerm set the proxy:

$ vim ~/.zshrc
# proxy
export http_proxy=http://127.0.0.1:8001
export https_proxy=$http_proxy
$ source ~/.zshrc

I used an interpreter is zsh, if you are bash, directly above command ~/.zshrcinto./.bash_profile

test:

$  curl ip.sb
你的代理的 ip

Guess you like

Origin www.cnblogs.com/nnylee/p/11702749.html