homestead into the pit installation

1, before using the Homestead, you need to install  Virtual Box , VMWare , Parallels  or  Hyper-V  (out of four, we usually choose VirtualBox, only because it is free) as well as  Vagrant , all these packages are commonly used operating system an easy-to-use visual installer, by installing the interface to complete the installation guide

2, the installation vagrant box 

// automatically downloaded: 
Vagrant box Laravel the Add / Homestead

// box to specify the directory to install
vagrant box add laravel / homestead ~ / Downloads / virtualbox.box // add a box so it can not release the name and other information to add, right through json add files, in particular, I note illustrates the json file contents

// correct as

vagrant box add laravel / homestead ~ / Downloads / metadata.json

3, installation homestead 

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

   cd ~/Homestead

   // detected in the specified version ...
   git Checkout V9.1.0

 

  

note:

  1. To generate git keys
    //会报错  Check your Homestead.yaml file, the path to your private key does not exist.
    ssh-keygen -t rsa -b 4096 -C "[email protected]" eval "$(ssh-agent -s)" ssh-add -K ~/.ssh/id_rsa
  2. homestead version and vagrant version to match every homestead version in order to start the implementation of vagrant up will prompt version requirements of its vagrant box         

          

         3. vagrant box supporting configuration file metadata.json in its name path information

{
    "name": "laravel/homestead",//名字
    "versions": 
    [
        {
            "version": "8.1.0",//版本
            "providers": [
                {
                  "name": "virtualbox",
                  "url": "virtualbox.box"//路径
                }
            ]
        }
    ]
}

  

Guess you like

Origin www.cnblogs.com/guiyishanren/p/12176576.html