Linux下安装vim-plug报错:Failed to connect to raw.githubusercontent.com port 443: Connection refused

安装vim-plug时,输入以下命令:

curl -fLo ~/.vim/autoload/plug.vim --create-dirs     https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

报错以下内容:

Failed to connect to raw.githubusercontent.com port 443: Connection refused

可以尝试以下解决方法:

1、打开hosts

sudo vim /etc/hosts

2、在hosts里面添加下列内容

199.232.28.133 raw.githubusercontent.com

3、重新执行下列命令继续vim-vimplug的安装

curl -fLo ~/.vim/autoload/plug.vim --create-dirs     https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

——cloudos

——2020/4/25

 

 

 

 

 

posted @ 2020-04-25 16:42  Yu_tiann  阅读(1239)  评论(0编辑  收藏  举报