在MAC上安装Laravel Homestead的问题

时间:2017-03-01 10:43:30

标签: laravel ssh vagrant virtual-machine homestead

我试图在我的本地计算机(Mac OS X El Capitan)上安装 laravel homestead (使用php 7)。我已经安装了vagrant和Virtualbox。

当我按照documentation时,我从命令vagrant box add laravel/homestead开始。这不会导致任何问题:

enter image description here

以下步骤是:

cd ~
git clone https://github.com/laravel/homestead.git Homestead

这也有效。下一步是:

bash init.sh

此命令应在隐藏目录~/.homestead中创建 Homestead.yml 。这不会发生!他在~/Homestead目录....

中创建了 Homestead.yml

然后我将〜/ Homestead 文件夹中的 Homestead.yml 编辑为:

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/projects
      to: /home/vagrant/projects

sites:
    - map: homestead.app
      to: /home/vagrant/Code/Laravel/public

databases:
    - homestead

# blackfire:
#     - id: foo
#       token: bar
#       client-id: foo
#       client-token: bar

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

然后我尝试在〜/ Homestead文件夹中运行vagrant up。但我收到以下错误:

enter image description here

有人可以帮我安装Homestead吗?

1 个答案:

答案 0 :(得分:1)

将您的流浪者和虚拟盒更新为最新版本将解决问题。