Domestic current all translations of vagrant installation Homestead Tutorials have a great pit! After installing according to the tutorial steps, the configuration in Homestead.yaml is not executed!
I finally took 3 nights, finally found the solution!
There are also free video tutorials here:
http://edu.csdn.net/course/detail/2243
Don't ask me who I am, I am Lei Feng's brother, Detonator!
The correct steps are this:
1, install vagrant
2, install VirtualBox
3. Installing the Homestead Tool
Switch to the root directory and execute git clone
CD ~
git clone https://github.com/laravel/homestead.git Homestead
4, Local installation Homestead.box
Vagrant Box Add Laravel/homestead file:///home/jw/Desktop/homestead.box
5, Init Homestead
CD ~/homestead
Bash init.sh
6, Backup Vagrantfile
CD ~/homestead
CP Vagrantfile Vagrantfile_backup
7, Vagrant Init
Initialize Vagrant Box
Vagrant Init Laravel/homestead
After executing this command, vagrant will generate a vagrantfile file in this directory, and this file
Not what we want!!! And this is precisely the domestic all Chinese course "pit"! I spent 3 nights trying to fill this hole! Don't ask me who I am, I am Lei Feng's brother, Detonator!
8, replace Vagrantfile
CP Vagrantfile_backup Vagrantfile
9, start vagrant
Vagrant up
If you are prompted for network-related errors at this time, go to change the top IP address of the Homestead.yaml file to any one such as 192.168.3.3
This article from the "11210934" blog, reproduced please contact the author!
Laravel Container VAGRANT+HOMESTEAD+COMPOSER+YAML development environment to build the right steps