重新开始 homestead 安装
Start again with homestead install
我在 OSX 上与 homestead 搞得一团糟。我使用此处的说明安装了 homestead:http://laravel.com/docs/5.0/homestead 说要执行以下操作:
git clone https://github.com/laravel/homestead.git Homestead
一切正常,直到我想添加一个新站点。我将站点添加到 .homestead 文件
sites:
- map: example1.dev
to: /home/vagrant/Code/example1/public
- map: example2.dev
to: /home/vagrant/Code/example2/public
我收到 homestead command not found 并且经过一些搜索认为这可能是因为 5 文档没有使用 4.2 http://laravel.com/docs/4.2/homestead 中显示的全局 homestead 安装。所以我执行了全局安装。摧毁所有流浪箱。 运行 homestead up 但是说另一个盒子有那个名字失败了。最后删除了我最初使用 git 克隆创建的文件夹,现在当我 运行 homestead 起来时,我得到
VBoxManage: error: Could not rename the directory '/Users/me/VirtualBox VMs/settler_default_1430450956915_11366_1430600021875_36184' to '/Users/me/VirtualBox VMs/homestead' to save the settings file (VERR_ALREADY_EXISTS)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "SaveSettings()" at line 2788 of file VBoxManageModifyVM.cpp
任何人都可以解释我做错了什么或告诉我如何卸载它以便我可以重新开始。
从 VirtualBox VMs
中删除文件夹或以某种方式从 VirtualBox 应用程序中删除文件夹不会从 vagrant 中删除该框。
要完全卸载盒子,this solution 适合我。
使用vagrant global-status
获取Vagrant环境列表,找到你要删除的框的id
,然后运行vagrant destroy [id]
删除它.
我在 OSX 上与 homestead 搞得一团糟。我使用此处的说明安装了 homestead:http://laravel.com/docs/5.0/homestead 说要执行以下操作:
git clone https://github.com/laravel/homestead.git Homestead
一切正常,直到我想添加一个新站点。我将站点添加到 .homestead 文件
sites:
- map: example1.dev
to: /home/vagrant/Code/example1/public
- map: example2.dev
to: /home/vagrant/Code/example2/public
我收到 homestead command not found 并且经过一些搜索认为这可能是因为 5 文档没有使用 4.2 http://laravel.com/docs/4.2/homestead 中显示的全局 homestead 安装。所以我执行了全局安装。摧毁所有流浪箱。 运行 homestead up 但是说另一个盒子有那个名字失败了。最后删除了我最初使用 git 克隆创建的文件夹,现在当我 运行 homestead 起来时,我得到
VBoxManage: error: Could not rename the directory '/Users/me/VirtualBox VMs/settler_default_1430450956915_11366_1430600021875_36184' to '/Users/me/VirtualBox VMs/homestead' to save the settings file (VERR_ALREADY_EXISTS)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "SaveSettings()" at line 2788 of file VBoxManageModifyVM.cpp
任何人都可以解释我做错了什么或告诉我如何卸载它以便我可以重新开始。
从 VirtualBox VMs
中删除文件夹或以某种方式从 VirtualBox 应用程序中删除文件夹不会从 vagrant 中删除该框。
要完全卸载盒子,this solution 适合我。
使用vagrant global-status
获取Vagrant环境列表,找到你要删除的框的id
,然后运行vagrant destroy [id]
删除它.