Mac 上安装 Homestead 出现错误 Check your Homestead.yaml (or Homestead.json) file, the path to your private key does not exist.

在 Mac 上安装 Homestead,在使用如下的命令启动的时候,出现错误。

启动方式:

vagrant up

出现错误:

Check your Homestead.yaml (or Homestead.json) file, the path to your private key does not exist.
  • 5393
请先 登录 后评论

1 个回答

XY - 开发者 @ 学研谷
擅长:LS-DYNA,AUTODYN

首先使用命令生成一个 Homestead.yaml 配置文件,你的所有项目站点及数据库将会在这里进行配置。

cd ~/Homestead
bash init.sh

配置 Homestead:使用文本编辑器打开上一个步骤中生成好的 Homestead.yaml 文件

配置 ssh:这部分不需要对配置文件修改,关键是在启动之前,我们需要在主机上生成 ssh key,使用如下命令:

ssh-keygen -t rsa

然后一路回车

请先 登录 后评论