【发布时间】:2019-06-30 20:06:14
【问题描述】:
我安装了 vagrant-proxyconf 并在 Vagrantfile 中添加了以下内容:
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = "http://192.168.33.10:3128/"
config.proxy.https = "http://192.168.33.10:3128/"
end
后来我卸载了 vagrant-proxyconf 并从 Vagrantfile 中删除了上述行。
现在每次我尝试使用 apt-get 或 npm i 时,都会收到以下错误消息:
Failed to connect to 192.168.33.10 port 3128: Connection refused
所以代理设置仍然在 vagrant 配置中的某个位置,但不在 Vagrantfile 中。我还能去哪里看?
【问题讨论】:
标签: vagrant vagrantfile