vagrantfile文件中要有类似这一句
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 3000, host: 3000
对VM VirtualBox管理器也要有所设置,三步走。
一、
二、
三、
vagrantfile文件中要有类似这一句
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 3000, host: 3000
一、
二、
三、