一直使用wamp進行php學習開發,最近laravel出新的版本5.5 不少開源項目都是基於最新的版本進行開發 前提是php7.1 由於最新的wamp3.0.6集成的是php7.0不符合要求,爲了學習laravel而且同時嚐鮮vagrant,開始了homestead的安裝歷程。php
首先是下載並安裝virtualBox軟件和vagrant,而後是下載homestead包laravel
執行vagrant box list能正常
出現你導入的包,說明安裝成功了。git
下面開始配置 引自https://solarhell.com/post/2016/04/homesteadgithub
接下來開始下載一套預設的配置文件
ruby
git clone https://github.com/laravel/homestead.git Homesteadbash
進入Homestead目錄下執行php7
bash init.shapp
執行後,在Homestead目錄下自動建立一個`Homestead.yaml`配置文件
post
開始更改此配置文件如圖 在原來的基礎上增長了type:"nfs" 其他地方沒有改動(畢竟是預設的)
學習
而後打開c盤下的文件/etc/hosts` ,添加一行`192.168.10.10 homestead.app`,保存。
關鍵時刻到了,開始執行vagrant up
結果出現錯誤
$ vagrant up --provisionD:/Program Files/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.3.0/psych.rb:379:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 15 column 7 (Psych::SyntaxError)暫時安裝停留在這裏了。