Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 如何排除';无法连接到代理服务器';错误-AWS S3_Amazon Web Services_Amazon S3 - Fatal编程技术网

Amazon web services 如何排除';无法连接到代理服务器';错误-AWS S3

Amazon web services 如何排除';无法连接到代理服务器';错误-AWS S3,amazon-web-services,amazon-s3,Amazon Web Services,Amazon S3,AWS和AWS CLI新手,我已经安装并配置了AWS CLI,我只是尝试在S3中列出bucket,但我支持代理 如何排除故障并解决以下错误 C:\Users\MyUserName\Desktop>aws s3 ls HTTPSConnectionPool(host='s3.us-east-2.amazonaws.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to pr

AWS和AWS CLI新手,我已经安装并配置了AWS CLI,我只是尝试在S3中列出bucket,但我支持代理

如何排除故障并解决以下错误

C:\Users\MyUserName\Desktop>aws s3 ls

HTTPSConnectionPool(host='s3.us-east-2.amazonaws.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', error(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond')))

我尝试的唯一故障排除步骤是将HTTP_代理和HTTPS_代理变量设置为端口80上的我的IP。

在代理后使用AWS CLI的关键是配置两个环境变量

IP地址是代理服务器的地址,可能不是本地IP。请咨询网络管理员以获取正确的IP地址和基本身份验证参数

Chrome、IE等支持代理服务器,因此您可能已经在浏览器中设置了这些参数。对于Chrome,请转到
设置
并搜索
打开代理设置
。其他浏览器也采用了类似的技术

对于Windows:

set HTTP_PROXY=http://a.b.c.d:n
set HTTPS_PROXY=http://w.x.y.z:m
或用于基本身份验证:

set HTTP_PROXY=http://username:password@a.b.c.d:n
set HTTPS_PROXY=http://username:password@w.x.y.z:m
export HTTP_PROXY=http://username:password@a.b.c.d:n
export HTTPS_PROXY=http://username:password@w.x.y.z:m
对于Linux、macOS或Unix:

export HTTP_PROXY=http://a.b.c.d:n
export HTTPS_PROXY=http://w.x.y.z:m
或用于基本身份验证:

set HTTP_PROXY=http://username:password@a.b.c.d:n
set HTTPS_PROXY=http://username:password@w.x.y.z:m
export HTTP_PROXY=http://username:password@a.b.c.d:n
export HTTPS_PROXY=http://username:password@w.x.y.z:m