一直使用wamp进行php学习开发,最近laravel出新的版本5.5 很多开源项目都是基于最新的版本进行开发 前提是php7.1 因为最新的wamp3.0.6集成的是php7.0不符合要求,为了学习laravel并且同时尝鲜vagrant,开始了homestead的安装历程。
首先是下载并安装virtualBox软件和vagrant,然后是下载homestead包
执行vagrant box list能正常
出现你导入的包,说明安装成功了。
下面开始配置 引自https://solarhell.com/post/2016/04/homestead
接下来开始下载一套预设的配置文件
git clone https://github.com/laravel/homestead.git Homestead
进入Homestead目录下执行
bash init.sh
执行后,在Homestead目录下自动创建一个`Homestead.yaml`配置文件
开始更改此配置文件如图 在原来的基础上增加了type:"nfs" 其余地方没有改动(毕竟是预设的)
然后打开c盘下的文件/etc/hosts` ,添加一行`192.168.10.10 homestead.app`,保存。
关键时刻到了,开始执行vagrant up
结果出现错误
$ vagrant up --provision
D:/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)
暂时安装停留在这里了。