HTTP Proxy Shell Export Line for Terminal

Sometimes we need a proxy to visit some websites, but the proxy settings in system preferences in Mac not work in Terminal.

HTTP Proxy Shell Export Line for Terminal

Sometimes we need a proxy to visit some websites, but the proxy settings in system preferences in Mac not work in Terminal.

To enable proxy in terminal, we need export the proxy setting in Terminal, we can use the following command to enable proxy in terminal.

export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;export ALL_PROXY=socks5://127.0.0.1:1080

Please remind to changed to the correct port for http and socks.