从github上下载YouCompleteMe,结果报端口链接不上
$ git clone --recursive https://github.com/Valloric/YouCompleteMe.git
正克隆到 'YouCompleteMe'...
fatal: unable to access 'https://github.com/Valloric/YouCompleteMe.git/': Failed to connect to 127.0.0.1 port 45523: Connection refused
此时,可以检测试下,是不是电脑端的 45523的端口被占用了。
env | grep -i proxy
$ env | grep -i proxy
NO_PROXY=localhost,127.0.0.0/8,::1
http_proxy=http://127.0.0.1:45523/
https_proxy=http://127.0.0.1:45523/
HTTPS_PROXY=http://127.0.0.1:45523/
no_proxy=localhost,127.0.0.0/8,::1
HTTP_PROXY=http://127.0.0.1:45523/
要取消该设置:
unset
http_proxy
unset https_proxy
要配置该端口设置:
export http_proxy=127.0.0.1:45523
export https_proxy=127.0.0.1:45523