连接 127.0.0.1:7890… 失败:拒绝连接
Q0:为什么wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar–2021-06-21 11:28:10--http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar正在连接 127.0.0.1:7890
Q0:
为什么
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar
–2021-06-21 11:28:10-- http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar
正在连接 127.0.0.1:7890… 失败:拒绝连接。
A0:
原因为代理模式出了问题或者是端口已经被占用
详情参考:
故事的大大仙之CentOS 7 wget 正在连接 127.0.0.1:8118… 失败:拒绝连接。
export | grep -i proxy
declare -x ALL_PROXY=“http://127.0.0.1:7890”
declare -x HTTPS_PROXY=“http://127.0.0.1:7890/”
declare -x HTTP_PROXY=“http://127.0.0.1:7890/”
declare -x NO_PROXY=“localhost,127.0.0.0/8,::1”
declare -x all_proxy=“http://127.0.0.1:7890”
declare -x http_proxy=“http://127.0.0.1:7890/”
declare -x https_proxy=“http://127.0.0.1:7890/”
declare -x no_proxy=“localhost,127.0.0.0/8,::1”
7890 端口已经被占用
Q1:
怎么解决?
A1:
操作为:
unset ALL_PROXY
unset HTTP_PROXY
unset all_proxy
unset http_proxy
Q2:
用完怎么恢复
A2:
sudo vim /etc/profile
export all_proxy=“http://127.0.0.1:7890/”
export ALL_PROXY=“http://127.0.0.1:7890/”
export HTTP_PROXY=“http://127.0.0.1:7890/”
export http_proxy=“http://127.0.0.1:7890/”
export HTTPS_PROXY=“https://127.0.0.1:7890/”
export https_proxy=“https://127.0.0.1:7890/”
source /etc/profile
更多推荐
所有评论(0)