• 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电脑上。

  • 相关阅读:
    中间件的应用
    报表和日志
    Cookie和Session
    表单的应用
    静态资源和Ajax请求
    导入导出EXEC
    DATEDIFF() 函数返回两个日期之间的时间
    解决echarts柱形图X轴标题显示不全的问题
    Sqlserver 游标 慢
    sql语句根据日期查询,本周,本月,本年,今日相关统计
  • 原文地址:https://www.cnblogs.com/zhaoyang-1989/p/5645589.html
Copyright © 2020-2023  润新知