我安装了Vagrant& Virtual Box,我在默认文件夹(〜/ .ssh /)中创建了一个SSH密钥,然后我按照文档配置了带有Homestead的Laravel 5.
Vagrant up工作正常,但文件夹不是我配置文件的位置。
我的Homestead.yaml设置文件夹为~/Documents/develop
到/home
,但是流浪者设置为/vagrant to /User/Docuements/Homestead
有人能帮我找到它的错误吗?
这是我的配置文件Homestead.yaml
ip: "192.168.10.10"
3 memory: 2048
4 cpus: 1
5 provider: virtualbox
6
7 authorize: ~/.ssh/id_rsa.pub
8
9 keys:
10 - ~/.ssh/id_rsa
11
12 folders:
13 - map: ~/Documents/develop
14 to: /home
15
16 sites:
17 - map: goldenquant.app
18 to: /home/goldenquant/public
19 - map: blog.app
20 to: /home/blog/public
21
22 databases:
23 - homestead
这是我的终端运行vagrant up
结果。
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Setting the name of the VM: Homestead_default_1468067791872_61342
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => /Users/Xing/Documents/Homestead
答案 0 :(得分:0)
答案 1 :(得分:0)