19. Laravel Homestead 安装

  • 安装 VirtualBox 以及 Vagrant。

  • 安装 Homestead Vagrant Box。

    在终端使用下面的命令将 laravel/homestead Box 添加到 Vagrant 中安装。
    vagrant box add laravel/homestead

  • 安装 Homestead

cd ~
git clone https://github.com/laravel/homestead.git Homestead
  • 检出使用版本。

    由于 Homestead 的 master 分支并不是稳定分支,你应该用打过标签的稳定版本。你可以在 Github 发行页面 上找到最新的稳定版本。

cd Homestead
git checkout v6.2.2
  • 创建 Homesstead.yaml 配置文件

    从 Homestead 目录中运行 bash init.sh 命令来创建 Homesstead.yaml 配置文件。 Homesstead.yaml 文件会被放置在你的 Homestead 目录中。

// Mac / Linux...
bash init.sh
// Windows...
init.bat

你可能感兴趣的:(19. Laravel Homestead 安装)