gpt4 book ai didi

proxy - 将 yum 与代理一起使用

转载 作者:行者123 更新时间:2023-12-04 19:42:42 24 4
gpt4 key购买 nike

我正在尝试将 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:我们正在使用另一个代理,现在它可以工作了。

    最佳答案

    第一个应该工作。这就是我正在使用的

     proxy=http://webproxy.company.com:3128/

    您确定您的代理正在监听 8080 吗?对于代理服务器来说,这似乎是一个奇怪的端口。

    关于proxy - 将 yum 与代理一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50488964/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com