1/先在https://www.vagrantup.com 下載vagrantup ,對應平臺下載,並安裝,安裝後可以在命令行使用vagrant https://www.vagrantup.com/downloads.html 下載地址 mac:https://releases.hashic...
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