美文网首页
体验vagrant

体验vagrant

作者: 多余的午宴 | 来源:发表于2019-03-08 09:28 被阅读0次

    1. Vagrantfile

    $script = <<SCRIPT
    (
    echo "echo start---config"
    ) 2>&1
    SCRIPT
    Vagrant.configure(2) do |config|
    config.vm.box = 'puppetlabs/centos-7.0-64-nocm'
    config.ssh.username = 'root'
    config.ssh.password = 'puppet'
    config.ssh.insert_key = 'true'
    config.vm.provision 'shell', inline: $script
    end
    

    2. 基本命令

    vagrant up
    vagrant ssh
    

    3. 安装

    https://www.vagrantup.com/downloads.html

    相关文章

      网友评论

          本文标题:体验vagrant

          本文链接:https://www.haomeiwen.com/subject/fqylpqtx.html