【发布时间】:2018-11-02 11:28:44
【问题描述】:
我正在尝试将 yum 与代理一起使用,但是当我这样做时:
yum list
我明白了:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: HTTP Error 407 - Proxy Authentication Required ...
为了配置yum,我尝试了两种解决方案:
- 添加/etc/yum.conf:
proxy=http://username:password@yourproxy:8080/ - 和:
export http_proxy=http://username:password@yourproxy:8080/
但是当我导出变量时,curl 有效。
操作系统:CentOS Linux release 7.5.1804 (Core)
PS1:代理是windows下的,即使curl能用,会不会是NTLM的问题?
PS2:我们正在使用另一个代理,现在它可以工作了。
【问题讨论】: