【发布时间】:2016-08-08 15:16:53
【问题描述】:
我曾尝试访问我在宅基地上设置的项目网站,它们之前都运行良好,而我已经有几周没有处理它们了,但是今天当我尝试访问它们时,我无法访问它们'不要打开网站。我曾尝试运行 vagrant ssh,但出现此错误:
VM must be running to open SSH connection. Run `vagrant up`
to start the virtual machine.
当我尝试做 vagrant up 时,我得到:
Vagrant can't use the requested machine because it is locked! This
means that another Vagrant process is currently reading or modifying
the machine. Please wait for that Vagrant process to end and try
again. Details about the machine are shown below:
Name: default
Provider: virtualbox
当我这样做时:
vagrant status 'idOfTheMachine'
我明白了:
vagrant status 'idOfTheMachine'
/Users/myName/Homestead/Vagrantfile:4: warning: already initialized constant VAGRANTFILE_API_VERSION
/Users/myName/Homestead/Vagrantfile:4: warning: previous definition of VAGRANTFILE_API_VERSION was here
Current machine states:
default poweroff (virtualbox)
The VM is powered off. To restart the VM, simply run `vagrant up`
当我打开 virtualbox 并尝试查看共享文件夹时,我可以在终端中看到共享文件夹,但看不到其中的项目。我已经搜索过这个问题,但找不到任何解决方案。我是否应该销毁虚拟盒子上的宅基地机器并制作一个新的,如果是,如何正确制作,以便我在新机器上拥有相同的项目?
【问题讨论】:
-
vagrant status说什么? -
我已经编辑了带有流浪状态响应的问题
标签: laravel vagrant virtual-machine homestead