下载homestead
```
git clone https://github.com/laravel/homestead.git ~/homestead
```
![](https://img.kancloud.cn/7e/85/7e851349367a8a87a427e58e52f3e029_1050x314.png)
##### 下载好了Homestead之后,我们就可以建立Homestead.yaml配置文件了:
![](https://img.kancloud.cn/a7/8d/a78df70622e78edc53a25ff32d7544fb_825x297.png)
创建Homestead初始配置
cd ~/homestead
bash init.sh
![](https://img.kancloud.cn/02/cf/02cf09ac8493dac62e1eb4d5a41ba94f_420x58.png)
然后运行
![](https://img.kancloud.cn/92/5a/925a718375c38ebf6fd2ebf3596c59e5_832x168.png)
mysql账号密码
~~~
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
~~~