如何正确配置代理

yum使用代理
/etc/yum.conf
proxy=http://hubproxy.sh.cn.ao.ericsson.se:8080
curl wget全局代理
/etc/profile
http_proxy: http://hubproxy.sh.cn.ao.ericsson.se:8080
source /etc/profile

测试网络是否通:
curl -v https://dl.fedoraproject.org

yum install curl

curl -x "http://hubproxy.sh.cn.ao.ericsson.se:8080" https://dl.fedoraproject.org
curl -x "http://hubproxy.sh.cn.ao.ericsson.se:8080 https://iac_poc_function_user:[email protected]/artifactory/cv-generic/delivery/3pp/jdk-8u171-linux-x64.rpm
ansible
get_url:
curl
get
yum
environment:
https_proxy: "http://hubproxy.sh.cn.ao.ericsson.se:8080"

猜你喜欢

转载自www.cnblogs.com/ppp1314520818/p/10560314.html