window10 使用 virutalbox + vagrant + box文件来搭建 Laravel/Homestead。virutalbox 版本: 5.0.20vagrant 版本:1.8.7box 文件:virtualbox 0.5.0Laravel/Homestead 的git地址: https://github.com/laravel/homestead.git remote: Counting objects: 1706, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 1706 (delta 6), reused 0 (delta 0), pack-reused 1683
Receiving objects: 100% (1706/1706), 270.94 KiB | 76.00 KiB/s, done.
Resolving deltas: 100% (995/995), done.
Checking connectivity... done.
Maus@Maus MINGW64 /d/wamp/www
$ cd Homestead/修改 Homestead.yaml文件Maus@Maus MINGW64 /d/wamp/www/Homestead (master)
$ bash init.sh
Homestead initialized!
Maus@Maus MINGW64 /d/wamp/www/Homestead (master)
$ vim ~/.homestead/Homestead.yaml将 provider 设置为:laravel/homesteadprovider: laravel/homestead
folders:
- map: D:/wamp/www/Blog
to: /home/vagrant/Code/
type: "nfs"
sites:
- map: blog.app
to: /home/vagrant/Code/Laravel/public修改 homestead.rb 的box设置版本为 0Maus@Maus MINGW64 /d/wamp/www/Homestead (master)
$ vim scripts/homestead.rb
#config.vm.box_version = settings["version"] ||= ">= 0"生成私钥Maus@Maus MINGW64 /d/wamp/www/Homestead (master)
$ ssh-keygen -t rsa -C "####@####.com"看看,box文件是存在的Maus@Maus MINGW64 /d/wamp/www/Homestead (master)
$ vagrant box list
laravel/homestead (virtualbox, 0)启动报错了:Maus@Maus MINGW64 /d/wamp/www/Homestead (master)
$ vagrant up
The provider 'laravel/homestead' could not be found, but was requested to
back the machine 'homestead-7'. Please use a provider that exists.不知道如何解决,mac也是这样子。 注: Vagrantfile 是 git (laravel/homestead)上面的,未做修改。Maus@Maus MINGW64 /d/wamp/www/Homestead (master)
$ ./homestead up
Warning: require(D:\wamp\www\Homestead/../../autoload.php): failed to open stream: No such file or directory in D:\wamp\www\Homestead\homestead on line 7
Fatal error: require(): Failed opening required 'D:\wamp\www\Homestead/../../autoload.php' (include_path='.;C:\php\pear') in D:\wamp\www\Homestead\homestead on line 7据说 homestead up 命令也是可以启动程序的。为什么我又报错了。。。 vagrant 新手,求入门。。。。
添加回答
举报
0/150
提交
取消