• 【Vagrant】-NO.130.Vagrant.1 -【Vagrant】


    Style:Mac

    Series:Java

    Since:2018-09-10

    End:2018-09-10

    Total Hours:1

    Degree Of Diffculty:5

    Degree Of Mastery:5

    Practical Level:5

    Desired Goal:5

    Archieve Goal:3

    Gerneral Evaluation:3

    Writer:kingdelee

    Related Links:

    http://www.cnblogs.com/kingdelee/

    https://app.vagrantup.com/ubuntu/boxes/trusty64/versions/14.04 

    https://www.vagrantup.com/docs/installation/

    1.初始化

    vagrant init

    2.添加本地的box,前面的是名字,后面的是box路径

    vagrant box add ubuntu/trusty64 ./trusty-server-cloudimg-amd64-vagrant-disk1.box

    3. 查看状态

     vagrant status

    4.访问虚拟机

    vagrant ssh

    5.启动虚拟机

    vagrant up

    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key

    6.修改配置文件后重新加载

    vagrant reload --provision

     
    7. Warning: Connection reset. Retrying... 解决
    ==> default: Booting VM...
    ==> default: Waiting for machine to boot. This may take a few minutes...
        default: SSH address: 127.0.0.1:2222
        default: SSH username: vagrant
        default: SSH auth method: private key
        default: Warning: Connection reset. Retrying...
        default: Warning: Remote connection disconnect. Retrying...
    

      

    执行sudo rm -f /etc/udev/rules.d/70-persistent-ipoib.rules

    来源:https://blog.csdn.net/u013494746/article/details/47978007

    常用命令

    $ vagrant init  # 初始化
    $ vagrant up  # 启动虚拟机
    $ vagrant halt  # 关闭虚拟机
    $ vagrant reload  # 重启虚拟机
    $ vagrant ssh  # SSH 至虚拟机
    $ vagrant status  # 查看虚拟机运行状态
    $ vagrant destroy  # 销毁当前虚拟机
  • 相关阅读:
    UESTC
    Education Round 8 A
    Gym
    Gym
    hdoj 1159 Common Subsequence
    UVA
    UESTC
    51Nod 1068 Bash游戏 V3 (这规律不好找)
    51Nod 1066 Bash游戏
    51Nod 1002 数塔取数问题
  • 原文地址:https://www.cnblogs.com/kingdelee/p/9847546.html
Copyright © 2020-2023  润新知