Failed to connect to 127.0.0.1 port 41963: 拒绝连接

git clone 出现错误:

Failed to connect to 127.0.0.1 port 41963: 拒绝连接

分析:

1. lsof -i:41963    发现端口未被占用

2. 查看代理:env|grep -i proxy

NO_PROXY=localhost,127.0.0.0/8,::1

http_proxy=http://127.0.0.1:41963/

https_proxy=http://127.0.0.1:41963/
HTTPS_PROXY=http://127.0.0.1:41963/
no_proxy=localhost,127.0.0.0/8,::1
export HTTPS_PROXY='''
over

HTTP_PROXY=http://127.0.0.1:41963/

故:使用代理导致访问失败

解决:

export http_proxy='''

export https_proxy='''

export HTTP_PROXY='''

你可能感兴趣的:(Linux日常错误)