我一直在更改我的/ etc / hosts文件,将实时网址重定向到我当地的流浪者框,直到最近一直工作正常。
我的主机文件中有类似的内容
example.be 10.11.10.12
我需要这样做,因为我正在使用链接到实时域的第三方JavaScript SDK。
我认为这是配置文件中最重要的内容:
Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "bento/debian-7.8"
config.vm.network "forwarded_port", guest: 80, host: 3001
config.vm.network "private_network", ip: "10.11.10.12"
config.ssh.forward_agent = true
config.vm.synced_folder ".", "/vagrant", type: "nfs" # NFS because VirtualBox shared VM is too slow
config.vm.provider "virtualbox" do |vb|
# This all might be a bit excessive, but it'll run ;)
vb.memory = 2048
vb.cpus = 4
# The internet says these changes improve VM performance
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
end
end
我发现了类似的问题,但没有一个完全回答我的问题。问题是,它之前有效,现在它没有,对我来说最困难的部分......
仅供参考:我正在使用OS X Yosemite 10.10.5