text Vagrantfile

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Vagrantfile相关的知识,希望对你有一定的参考价值。

# -*- mode: ruby -*-
# vi: set ft=ruby :


Vagrant.configure("2") do |config|

    config.vm.box = "ubuntu/xenial64"

    config.vm.network "private_network", ip: "192.168.1.10"
    config.vm.network "private_network", type: "dhcp", name: "VirtualBox Host-Only Ethernet Adapter"
    config.vm.network "forwarded_port", guest: 80, host: 8080
    config.vm.network "forwarded_port", guest: 8088, host: 8088

    # open port forwarding that guest machine can access ss on host
    config.ssh.extra_args = ["R", "1080:localhost:1080"]

end

以上是关于text Vagrantfile的主要内容,如果未能解决你的问题,请参考以下文章

text Vagrantfile

text 使用Ansible置备的示例Vagrantfile

text Vagrantfile

text vagrantfile

text 用于Ubuntu 16.04 LTS(Xenial64)Box的Vagrantfile

text 设置VALUE-DOMAIN DDNS,ConoHa用Vagrantfile(vagrant-conoha)