标签:
1/先在https://www.vagrantup.com 下载vagrantup ,对应平台下载,并安装,安装后可以在命令行使用vagrant
https://www.vagrantup.com/downloads.html 下载地址
mac:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1.dmg
windos:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1.msi
debian 64:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb
debian 32:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_i686.deb
cetnos 32:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_i686.rpm
cetnos 64:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.rpm
2/命令行输入 ,安装laravel虚拟homestead
vagrant box add laravel/homestead
此时会下载homestead 的虚拟BOX,在此之前 一定要安装 vbox或vm 这里只给出mac 的 下载地址
https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.4.0/providers/virtualbox.box
可以将上条命令改为
vagrant box add laravel/homestead ~/Download/virtualbox.box
3/下载homestead脚本库(前提已经安装composer,并安装过laravel)
没有安装可以执行
composer global require "laravel/installer" cd ~ git clone https://github.com/laravel/homestead.git Homestead bash init.sh
4/启动homestead
vagrant up
标签:
原文地址:http://www.cnblogs.com/verylove/p/5154904.html