我在码头机器上安装了magento 2,这个码头机有端口转发的概念,我设置了专用网络,用nat和主机专用的,现在只能在主机上访问magento 2。
我也需要访问本地连接的远程机器,所以我尝试用网桥将专用网改为公用网络。
流浪汉档案:
Vagrant.configure("2") do |config|
config.vm.box = "machine"
config.ssh.username = "vagrant"
config.vm.hostname = "www.myhost.net"
config.ssh.forward_agent = "true"
config.vm.network "public_network", ip: "192.168.56.40"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
if Vagrant::Util::Platform.windows?
config.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777", "fmode=777"]
else
config.vm.synced_folder ".", "/vagrant", :nfs => { :mount_options => ["dmode=777", "fmode=777"] }
end
end但是,扔
NFS requires a host-only network to be created.
Please add a host-only network to the machine (with either DHCP or a
static IP) for NFS to work.我需要给流浪汉添加多个网络
建议我如何解决这个问题。
发布于 2016-09-27 10:01:05
您需要将public_network更改为private_network,将nfs更改为工作
如果使用的是VirtualBox提供程序,则还需要确保设置了专用网络。这是由于VirtualBox内置网络的限制。使用VMware,您不需要这个。
因此:
ping -I ethX mylocalmachine),但我不知道如何在https://stackoverflow.com/questions/39720786
复制相似问题