0
我已經安裝在顛沛流離的Magento 2,在泊塢窗機,該搬運工機具有端口轉發的概念,我設置的專用網絡,與NAT和僅主機,現在只有訪問的Magento 2 hostmachine。流浪漢Multipe網絡
我需要訪問本地連接的遠程機器也是這樣,我嘗試將私有網絡更改爲公用網絡。
流浪文件:
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.
我需要添加多個網絡到無業遊民
NAT
主機onloy(用於nfs)
橋(用於訪問遠程計算機)
建議我如何解決這個問題。