windows环境创建多台虚拟机Vagrant
Vagrant默认转发宿主的2222端口到虚拟机的22端口(默认设置,无须配置)。在有多个虚拟机并存的情况下,2222端口将不好使。具体表现在:
启动第二个虚拟机的时候,会报端口占用错误:
$ vagrant up
Bringing machine ‘default’ up with ‘virtualbox’ provider…
Vagrant cannot forward the specified ports on this VM, since they would collide with some
转载
2020-12-09 13:57:59 ·
396 阅读 ·
0 评论