jayin

6274 经验值

xuzan@MSI MINGW64 ~/Homestead (master)
$ vagrant box add laravel/homestead E:/homestead/homestead.box --force
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'laravel/homestead' (v0) for provider:
    box: Unpacking necessary files from: file:///E:/homestead/homestead.box
    box:
==> box: Successfully added box 'laravel/homestead' (v0) for 'virtualbox'!

xuzan@MSI MINGW64 ~/Homestead (master)
$ homestead
bash: homestead: command not found

xuzan@MSI MINGW64 ~/Homestead (master)

1.install VirtualBox (这个没啥变化, 16年1月6日最新版本是 5.0.14 r105127) 2.install vagrant (已经变成 1.8.1版了) 3.下载最新的 homestead 盒子(版本是0.4.0 php默认7.0.1) 4.用外挂文件的方式添加盒子 vagrant box add laravel/homestead /data/laravel/sof

@TimelsGoOn 能不能帮我看一下

xuzan@MSI MINGW64 ~/Desktop/Homestead (master)
$ vagrant up
C:/Users/xuzan/Desktop/Homestead/scripts/homestead.rb:118:in `read': No such fil                                                                                                                                  e or directory @ rb_sysopen - C:/Users/xuzan/.ssh/id_rsa (Errno::ENOENT)
        from C:/Users/xuzan/Desktop/Homestead/scripts/homestead.rb:118:in `block                                                                                                                                   (2 levels) in configure'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/plugins/kerne                                                                                                                                  l_v2/config/vm_provisioner.rb:72:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/plugins/kerne                                                                                                                                  l_v2/config/vm_provisioner.rb:72:in `add_config'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/plugins/kerne                                                                                                                                  l_v2/config/vm.rb:338:in `provision'
        from C:/Users/xuzan/Desktop/Homestead/scripts/homestead.rb:115:in `block                                                                                                                                   in configure'
        from C:/Users/xuzan/Desktop/Homestead/scripts/homestead.rb:114:in `each'
        from C:/Users/xuzan/Desktop/Homestead/scripts/homestead.rb:114:in `confi                                                                                                                                  gure'
        from C:/Users/xuzan/Desktop/Homestead/Vagrantfile:35:in `block in <top (                                                                                                                                  required)>'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/c                                                                                                                                  onfig/v2/loader.rb:37:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/c                                                                                                                                  onfig/v2/loader.rb:37:in `load'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/c                                                                                                                                  onfig/loader.rb:113:in `block (2 levels) in load'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/c                                                                                                                                  onfig/loader.rb:107:in `each'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/c                                                                                                                                  onfig/loader.rb:107:in `block in load'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/c                                                                                                                                  onfig/loader.rb:104:in `each'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/c                                                                                                                                  onfig/loader.rb:104:in `load'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/v                                                                                                                                  agrantfile.rb:28:in `initialize'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/e                                                                                                                                  nvironment.rb:746:in `new'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/e                                                                                                                                  nvironment.rb:746:in `vagrantfile'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/e                                                                                                                                  nvironment.rb:492:in `host'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/e                                                                                                                                  nvironment.rb:214:in `block in action_runner'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/a                                                                                                                                  ction/runner.rb:33:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/a                                                                                                                                  ction/runner.rb:33:in `run'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/e                                                                                                                                  nvironment.rb:479:in `hook'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/e                                                                                                                                  nvironment.rb:728:in `unload'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/bin/vagrant:1                                                                                                                                  41:in `ensure in <main>'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.5/bin/vagrant:1                                                                                                                                  41:in `<main>'

我对搭环境有点弱

1) parallels
2) virtualbox
3) vmware_desktop

Enter your choice: 2
==> box: Adding box 'laravel/homestead' (v2.1.0) for provider: virtualbox
    box: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/2.1.0/providers/virtualbox.box
    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 hc-prod-storagelocker.s3.amazonaws.com port 443: Timed out

我是win10

vagrant 有没有国内镜像,下载好慢啊