zoukankan      html  css  js  c++  java
  • vagrant 相关记录

    最近安装vagrant 出错的最大的可能性是BOX 路径不太对, 好像和目录的大小写有关系,请检查

    $ vagrant init # 初始化
    $ vagrant up # 启动虚拟机
    $ vagrant halt # 关闭虚拟机
    $ vagrant reload # 重启虚拟机
    $ vagrant ssh # SSH 至虚拟机
    $ vagrant status # 查看虚拟机运行状态
    $ vagrant destroy # 销毁当前虚拟机

    问题1

    Timed out while waiting for the machine to boot. This means that

    Vagrant was unable to communicate with the guest machine within

    the configured ("config.vm.boot_timeout" value) time period.

    If you look above, you should be able to see the error(s) that

    Vagrant had when attempting to connect to the machine. These errors

    are usually good hints as to what may be wrong.

    If you're using a custom box, make sure that networking is properly

    working and you're able to connect to the machine. It is a common

    problem that networking isn't setup properly in these boxes.

    Verify that authentication configurations are also setup properly,

    as well.

    If the box appears to be booting properly, you may want to increase

    the timeout ("config.vm.boot_timeout") value.

    我没有能力去理解这个问题,但是 我的解决方式是这样的

    Vagrant halt   关闭vagrant

    vagrant destroy  销毁当前虚拟机

    Vagrant up   启动vagrant

    我觉得这样比重装快点,但实际上还是重装了,当然 这样肯定不会损坏现有的项目, 因为项目在你的win电脑上。

  • 相关阅读:
    OC2-xml文件解析
    python3+selenium入门06-浏览器操作
    python3+selenium入门05-元素操作及常用方法
    Git学习笔记05-撤销修改
    Git学习笔记04-管理修改
    Git学习笔记03-工作区和暂存区
    Git学习笔记02-创建版本库
    Git学习笔记01-安装Git
    Python3学习笔记30-datetime模块
    python3+requests库框架设计08-发送邮件
  • 原文地址:https://www.cnblogs.com/zhaoyang-1989/p/5645589.html
Copyright © 2011-2022 走看看