linux
export proxy="http://192.168.5.14:8118"
export http_proxy=$proxy
export https_proxy=$proxy
export ftp_proxy=$proxy
export no_proxy="localhost, 127.0.0.1, ::1"
针对yum配置走代理:
经过测试其实只要设置上面的变量之后已经可以走代理了,但如果要单独设置,可以设置如下文件的变量:
echo "proxy=http://127.0.0.1:8080/" >> /etc/yum.conf
windows
set http_proxy=http://127.0.0.1:7890
set https_proxy=http://127.0.0.1:7890