虚拟机盒子地址
https://app.vagrantup.com/boxes/search
vagrant init hirocom/centos7.2
vagrant up
修改配置
config.vm.network "forwarded_port", guest: 22, host: 2222, id: "ssh", disabled: "true"
config.vm.network "forwarded_port", guest: 22, host: 7777
config.vm.network "private_network", ip: "192.168.33.70"
config.vm.synced_folder "d:/docker/www", "/www"
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
end
vagrant reload