curl: (7) Failed to connect to 127.0.0.1 port 7890 after 1 ms: Couldn‘t connect to server

curl下载报错:

curl: (7) Failed to connect to 127.0.0.1 port 7890 after 1 ms: Couldn't connect to server

这是设置克拉西的代理,但克拉西又没开
要不然就打开克拉西,要不然就设置默认代理
设置默认代理命令
1.查看有没有挂了代理

(base) root@z2000-GE5S:/home# echo $http_proxy
http://127.0.0.1:7890
(base) root@z2000-GE5S:/# echo $https_proxy
http://127.0.0.1:7890
echo $http_proxy
echo $https_proxy

设置代理为空

export http_proxy=""
export https_proxy=""

你可能感兴趣的:(linux,ubuntu,运维)