php – Vagrant up错误,更改/ vagrant的所有权:不是目录

前端之家收集整理的这篇文章主要介绍了php – Vagrant up错误,更改/ vagrant的所有权:不是目录前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在笔记本电脑上运行 Windows 8.1 64位.

我一直在按照本指南尝试为我的Laravel项目设置一个宅基地:laravel installation and setup

guide tldr:你只需要安装vagrant,virtual-Box和composer.您使用这些来获取宅基地,然后进行初始化和安装.您配置homestead.yaml并生成ssh密钥.在这之后你使用vagrant up,让vagrant设置你的Vritual机器与你的开发环境和所有这些东西.

使用git bash,我按照指南进入’vagrant up’部分.

这是毛茸茸的地方,我收到以下错误

  1. $vagrant up
  2. Bringing machine 'default' up with 'virtualBox' provider...
  3. ==> default: Importing base Box 'laravel/homestead'...
  4. ==> default: Matching MAC address for NAT networking...
  5. ==> default: Checking if Box 'laravel/homestead' is up to date...
  6. ==> default: Setting the name of the VM: homestead
  7. ==> default: Clearing any prevIoUsly set network interfaces...
  8. ==> default: Preparing network interfaces based on configuration...
  9. default: Adapter 1: nat
  10. default: Adapter 2: hostonly
  11. ==> default: Forwarding ports...
  12. default: 80 => 8000 (adapter 1)
  13. default: 443 => 44300 (adapter 1)
  14. default: 3306 => 33060 (adapter 1)
  15. default: 5432 => 54320 (adapter 1)
  16. default: 22 => 2222 (adapter 1)
  17. ==> default: Running 'pre-boot' VM customizations...
  18. ==> default: Booting VM...
  19. ==> default: Waiting for machine to boot. This may take a few minutes...
  20. default: SSH address: 127.0.0.1:2222
  21. default: SSH username: vagrant
  22. default: SSH auth method: private key
  23. default: Warning: Connection timeout. Retrying...
  24. default: Warning: Remote connection disconnect. Retrying...
  25. default:
  26. default: Vagrant insecure key detected. Vagrant will automatically replace
  27. default: this with a newly generated keypair for better security.
  28. default:
  29. default: Inserting generated public key within guest...
  30. default: Removing insecure key from the guest if it's present...
  31. default: Key inserted! Disconnecting and reconnecting using new SSH key...
  32. ==> default: Machine booted and ready!
  33. ==> default: Checking for guest additions in VM...
  34. default: The guest additions on this VM do not match the installed version o
  35. f
  36. default: VirtualBox! In most cases this is fine,but in rare cases it can
  37. default: prevent things such as shared folders from working properly. If you
  38. see
  39. default: shared folder errors,please make sure the guest additions within t
  40. he
  41. default: virtual machine match the version of VirtualBox you have installed
  42. on
  43. default: your host and reload your VM.
  44. default:
  45. default: Guest Additions Version: 4.3.14
  46. default: VirtualBox Version: 5.0
  47. ==> default: Setting hostname...
  48. ==> default: Configuring and enabling network interfaces...
  49. ==> default: Mounting shared folders...
  50. default: /vagrant => C:/Users/Work/Homestead/Homestead
  51. The following SSH command responded with a non-zero exit status.
  52. Vagrant assumes that this means the command Failed!
  53.  
  54. chown `id -u vagrant`:`id -g vagrant` /vagrant
  55.  
  56. Stdout from the command:
  57.  
  58. Stderr from the command:
  59.  
  60. chown: changing ownership of ���/vagrant���: Not a directory

我以管理员身份运行git bash.
我的.yaml文件看起来像这样

  1. ---
  2. ip: "192.168.10.10"
  3. memory: 2048
  4. cpus: 1
  5. provider: virtualBox
  6.  
  7. authorize: C:/Users/Work/.ssh/id_rsa.pub
  8.  
  9. keys:
  10. - C:/Users/Work/.ssh/id_rsa
  11.  
  12. folders:
  13. - map: C:/Users/Work/Projects
  14. to: /home/vagrant/Code
  15.  
  16. sites:
  17. - map: homestead.app
  18. to: /home/vagrant/Code/Laravel/public
  19.  
  20. databases:
  21. - homestead
  22.  
  23. variables:
  24. - key: APP_ENV
  25. value: local

我得到了Vagrant和Virtual Box的最新版本.

在我看来,错误来自文件夹的路径无效,但看到我的yaml文件应该是正确的我不明白如何解决它.

我在另一台Windows 8.1固定PC上成功安装了宅基地环境,但我从未遇到过这个错误.

我刚完成了.

>所以你有Vagrant和最新的VirtualBox.>如果在任何安装后没有执行此操作,请立即重新启动计算机>卸载VBox 5.0>再次重新启动计算机>为amd / x86下载并安装4.3.30>运行流浪汉,你就在那里

猜你在找的PHP相关文章