一、Windows 环境搭建问题汇总
1、在 SSH auth method: private key 停顿的问题处理和解决
刚开始,我是直接设置Virtual Box的网络设置,把那个"接入网线"打勾,如下图:
但是发现,设置后重启还是不行
后面是在stackoverflow的这篇文章
https://stackoverflow.com/questions/409682...
里解决的,也是设置Virtual Box网络,具体步骤:
1.Completely uninstall and reinstall Vagrant, VirtualBox, and Homestead.
2.Ensure the homestead-7 box is shut down within the VirtualBox UI
3.Right-click the homestead-7 box, and choose Settings
4.Click 'Network'
5.Under 'Adapter 1', which should be attached to NAT, click 'Advanced'
6.Tick the box beside 'Cable Connected'
7.Save settings, and reprovision Homestead with vagrant up --provision
8.Run vagrant reload --provision to reprovision the machine
在git bash命令行输入第七个步骤命令 vagrant up --provision后执行,结果就成功了连接上了。
查了下 provision 参数的作用:将快速重启虚拟机,跳过初始导入步骤,provision 参数告诉 Vagrant 执行 provisioners,因为该步骤通常只会在第一次执行 vagrant up
时执行。
20180908 -- 这几天有碰到这问题,本来打算环境搭建重新搭一遍的,执行以下命令:
vagrant destroy
销毁vagrant,重启
vagrant up --provision
...
本作品采用《CC 协议》,转载必须注明作者和本文链接