安装Vagrant出错 安装Homestead出错失败

网友投稿 611 2022-09-12

安装Vagrant出错 安装Homestead出错失败

安装Vagrant出错 安装Homestead出错失败

安装Vagrant出错 安装Homestead出错

我们也可以在电脑上创建其它文件夹,只需保证创建的文件夹路径跟 Homestead.yaml 文件中的 folders - map 保持一致即可。

成功启动后,通过 SSH 来登录 Homestead:

> vagrant ssh

在我们登录成功后,你能看到类似于如下图的界面,现在我们在该终端界面中输入的所有命令都将运行在 Homestead 虚拟机上。

最后尝试关闭 Homestead:

> vagrant halt

I use Windows 10 and Git. I have created a VBox with command: vagrant box add laravel/homestead homestead up homestead ssh inside of: vagrant@homestead: I want to execute this command: vagrant provision but I receive this message:

"The program 'vagrant' is currently not installed. You can install it by typing: sudo apt-get install vagrant"

$ vagrant ssh

Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-38-generic x86_64)

* Documentation: Management: Support: packages can be updated.

101 updates are security updates.

Last login: Fri Apr 28 02:50:17 2017 from 10.0.2.2

vagrant@homestead:~$ vagrant halt

The program 'vagrant' is currently not installed. You can install it by typing:

sudo apt install vagrant

The problem is that you are trying to use vagrant inside the virtual machine (after did ssh) and of coruse you do not have it installed in the virtual machine. Just go oaut of the virtual machin (exit) and in the Windows command prompt run vagrant provision (of course located in the homestead folder). Hope it helps. Bets wishes.

意思就是说:vagrant halt 执行时,执行的窗口不是虚拟机,而是cmd窗口中。

你要保守你心,胜过保守一切。

作者:刘俊涛的博客​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:为什么要实现 IDisposable 接口?(为什么要实现碳达峰碳中和)
下一篇:CHM乱码解决方案!
相关文章

 发表评论

暂时没有评论,来抢沙发吧~