• 安装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: https://help.ubuntu.com

    * Management: https://landscape.canonical.com

    * Support: https://ubuntu.com/advantage

     

    234 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窗口中。

  • 相关阅读:
    在Android工程中运行Java程序问题
    sklearn.neighbors.kneighbors_graph的简单属性介绍
    python中的“.T”操作
    numpy中关于*和dot的区别
    一个Window Service引发的感想
    项目管理之初步认识
    由敏捷开发中开发认领自己的工作内容的感想
    SQL Server2008 inner join多种方式的实践
    浅谈业务逻辑和技术哪个更重要
    敏捷人生之初步认识
  • 原文地址:https://www.cnblogs.com/lovebing/p/6802001.html
Copyright © 2020-2023  润新知