![CentOS7 YUMプロキシ認証に失敗しました[閉じる]](https://linux33.com/image/134386/CentOS7%20YUM%E3%83%97%E3%83%AD%E3%82%AD%E3%82%B7%E8%AA%8D%E8%A8%BC%E3%81%AB%E5%A4%B1%E6%95%97%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%5B%E9%96%89%E3%81%98%E3%82%8B%5D.png)
誤ってCentOS7サーバーで小さな問題が見つかりました。インターネットに接続できますが、yumを使用できないプロキシの背後にある仮想サーバー。試みるたびにエラーが発生します。
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
プロキシを設定しても/etc/環境:
http_proxy='http://user:password@url:8088/'
HTTP_PROXY='http://user:password@url:8088/'
https_proxy='http://user:password@url:8088/'
HTTPS_PROXY='http://user:password@url:8088/'
ftp_proxy='http://user:password@url:8088/'
FTP_PROXY='http://user:password@url:8088/'
no_proxy='localhost,127.0.0.1,localaddress,*.localdomain.com,*.bl.ch,10.*'
NO_PROXY='localhost,127.0.0.1,localaddress,*.localdomain.com,*.bl.ch,10.*'
そして/etc/yum.conf:
proxy=http://url:8088/
proxy_username=user_name
proxy_password=password
私も/root/.bash_profile:
export http_proxy="http://url:8088/"
そして/etc/wgetrc:
http_proxy='http://user:password@url:8088/'
HTTP_PROXY='http://user:password@url:8088/'
https_proxy='http://user:password@url:8088/'
HTTPS_PROXY='http://user:password@url:8088/'
ftp_proxy='http://user:password@url:8088/'
FTP_PROXY='http://user:password@url:8088/'
no_proxy='localhost,127.0.0.1,localaddress,*.localdomain.com,*.bl.ch,10.*'
NO_PROXY='localhost,127.0.0.1,localaddress,*.localdomain.com,*.bl.ch,10.*'
まだ認証が欠落しているかどうかはわかりません。この問題を解決する方法を知っている人はいますか?