我想知道如何设置一个 Vagrant 文件,该文件将放置一台转发两个端口的机器。这是我当前的 Vagrantfile,正在转发 8080 页面:
Vagrant.configure("2") do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.provider "virtualbox"
config.vm.network :forwarded_port, guest: 8080, host: 8080
config.vm.provision :shell, :path => "start.sh", :args => "'/vagrant'"
config.vm.network :public_network
end
谢谢!