<分区>
我正在学习使用 vagrant,最近我在本地机器上安装了一个 vagrant homestead 系统。
我的 homestead.yaml
在 scr/stubs/
文件夹中。
看起来像这样。
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
当我运行“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