Vagrant up Connection拒绝了

时间:2017-05-23 21:10:58

标签: vagrant vagrantfile

我正在尝试流浪并获得连接拒绝错误。不知道我需要做什么。但是当我把整个路径放在浏览器中时,我可以下载.box。但是当我在vagrant文​​件中执行此操作时,我收到以下错误

Bringing machine 'acs' up with 'virtualbox' provider...
Bringing machine 'web' up with 'virtualbox' provider...
Bringing machine 'db' up with 'virtualbox' provider...
==> acs: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
    acs: Box Provider: virtualbox
    acs: Box Version: >= 0
==> acs: Loading metadata for box 'ubuntu/trusty64'
    acs: URL: https://atlas.hashicorp.com/ubuntu/trusty64
==> acs: Adding box 'ubuntu/trusty64' (v20170512.0.0) for provider: virtualbox
    acs: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20170512.0.0/providers/virtualbox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Failed to connect to cloud-images.ubuntu.com port 80: Connection refused

这是我的流浪文件

Vagrant.configure(2) do |config|

  config.vm.define "acs" do |acs|
    acs.vm.box = "ubuntu/trusty64"
    acs.vm.hostname = "acs"
    acs.vm.network "private_network", ip: "192.168.33.10"

  end

  config.vm.define "web" do |web|
    web.vm.box= "nrel/CentOS-6.5-x86_64"
    web.vm.hostname = "web"
    web.vm.network "private_network", ip: "192.168.33.20"
    web.vm.network "forwarded_port", guest: 80, host: 8080
  end

  config.vm.define "db" do |db|
    db.vm.box = "nrel/CentOS-6.5-x86_64"
    db.vm.hostname = "db"
    db.vm.network "private_network", ip: "192.168.33.30"
  end


end

0 个答案:

没有答案