Laravel Homestead安裝教程


 

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 //會在~/.homestead目錄下生產相應文件

 

4/啟動homestead

cd ~/.homestead
vagrant init //此步驟可以省略如果已經配置好了,不然依照鍵入
vagrant up

 

 





免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM