使用Github pull 代码突然报错:
Failed to connect to 127.0.0.1 port 38462: Connection refused
使用 lsof 发现端口未被占用:lsof -i:38462
查看代理:env|grep -i proxy
NO_PROXY=localhost,127.0.0.0/8,::1
http_proxy=http://127.0.0.1:38462/
HTTPS_PROXY=http://127.0.0.1:38462/
https_proxy=http://127.0.0.1:38462/
no_proxy=localhost,127.0.0.0/8,::1
HTTP_PROXY=http://127.0.0.1:38462/
原因:使用代理导致访问失败
解决方法:(取消代理使用)(记住要全部执行一遍以下指令)
export http_proxy=""
export https_proxy=""
export HTTP_PROXY=""
export HTTPS_PROXY=""