1
使用Vagrant,无法从主机操作系统的Web浏览器访问apache虚拟主机
我在Windows 7主机上的Vagrant的Virtualbox中安装了Ubuntu Server 16.04.1 Xenial Xerus(32位)。Vagrantfile的内容是 Vagrant.configure("2") do |config| config.vm.box = "boxcutter/ubuntu1604-i386" config.vm.network "forwarded_port", guest: 80, host: 8080 config.vm.hostname = "vagrant.templavoilaplus" config.vm.network "private_network", ip: "192.168.33.148" config.vm.synced_folder "E:/xampp/htdocs/github/templavoilaplus/", "/var/www/templavoilaplus/public_html" config.vm.provision "shell", path: "setup_for_ubuntu_box.sh" end 在运行中无所事事时,显示为 E:\Virtual Machines\vagrant>vagrant up ==> default: Checking if box 'boxcutter/ubuntu1604-i386' is up to date... ==> default: Clearing …