laravel vagrant up 命令失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27243418/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
vagrant up command fails
提问by Arya
I am learning to use vagrant and I have recently a setup vagrant homestead system on my local machine.
我正在学习使用 vagrant,最近我在本地机器上安装了 vagrant 宅基地系统。
my homestead.yaml
is in scr/stubs/
folder.
我homestead.yaml
的在scr/stubs/
文件夹中。
It looks like this.
看起来像这样。
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: /var/www/myhomestead/homestead/ssh/id_rsa.pub
keys:
- /var/www/myhomestead/homestead/ssh/id_rsa
folders:
- map: /var/www/sites/
to: /home/vagrant/sites/
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
When I run "vagrant up" it gives me errors like this.
当我运行“vagrant up”时,它会给我这样的错误。
amit@Amit:/var/www/myhomestead/homestead$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'base' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Adding box 'base' (v0) for provider: virtualbox default: Downloading: base An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again.
Couldn't open file /var/www/myhomestead/homestead/base
amit@Amit:/var/www/myhomestead/homestead$ vagrant up
使用 'virtualbox' 提供程序启动机器 'default'... ==> 默认值:找不到 Box 'base'。正在尝试查找和安装...默认值:Box 提供者:virtualbox 默认值:Box 版本:>= 0 ==> 默认值:为提供者添加框 'base' (v0):virtualbox 默认值:正在下载:base 下载时出错远程文件。错误消息(如果有)复制如下。请修复此错误,然后重试。
无法打开文件 /var/www/myhomestead/homestead/base
回答by Ali Gajani
You can try vagrant init hashicorp/precise32
. This creates the box not just the project.
你可以试试vagrant init hashicorp/precise32
。这不仅创建了项目,还创建了框。
Then do vagrant up
to get the ball rolling.
然后做vagrant up
让球滚动。