Set proxy for terminal, Windows, Linux

Turn on proxy

The port number is specified according to the port number of the agent software, here is 7890

Windows

set http_proxy=http://127.0.0.1:7890
set https_proxy=http://127.0.0.1:7890

Linux

export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"

test network connection

curl -vv http://www.google.com

close proxy

Windows

set http_proxy=
set https_proxy=

Linux

export http_proxy=""
export https_proxy=""

Guess you like

Origin blog.csdn.net/qq_44839815/article/details/127375797