Vagrant 利用ss加速下载,会出现如下情况

此时我们需先配置命令行代理
- CMD 内
set http_proxy=127.0.0.1:1080
set https_proxy=127.0.0.1:1080
(1080是默认端口号)
- git 内
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
git config --global https.https://github.com.proxy socks5://127.0.0.1:1080

下载成功
同时解决vagrant up慢的问题
vagrant plugin install vagrant-proxyconf
然后编辑相关项目的Vagrantfile


保存即可
重新运行Vagrant up
参考链接https://learnku.com/articles/34949
网友评论