Since some servers for security reasons, can only be accessed through the network, and the server can not request external network, which leads to scratching hard to force the program ape crazy when you install the necessary programming environment, had just learned that a leader today solutions share (Gangster more guidance):
Agent tool installed on 1.windows, tools more species, I used here is privoxy
Download: http://www.privoxy.org/
Baidu cloud disk (Alternate): Link: https: //pan.baidu.com/s/1L6-ojIlahdei43PwFovk9A extraction code: x1vl
After installing the software, configure the start port: Modify the listen-address config.txt file in the installation directory
Click to start the proxy server privoxy.exe
2. Configure proxy in linux
Modify / etc / profile file, add
http_proxy=127.0.0.1:18088
export http_proxy
Use source / etc / profile command to validate the configuration
source /etc/profile
3. Configure mapping the machine linux
Last Test:
curl www.baidu.com