0
我希望10.211.11.100:8080轉發到帶有ip 10.211.11.100的機器上的端口4369。如何配置vagrant以使用相同的轉發端口用於不同ips上的不同節點?
我想10.211.11.101:8080轉發到與ip 10.211.11.101機器上的端口4369。
如果我嘗試這樣:
config.vm.network :forwarded_port, guest: 4369, host: 4369, host_ip: 10.211.11.100
config.vm.network :forwarded_port, guest: 4369, host: 4369, host_ip: 10.211.11.101
我得到一個錯誤信息是這樣的:
Vagrant cannot forward the specified ports on this VM, since they
would collide with some other application that is already listening
on these ports. The forwarded port to 4369 is already in use
on the host machine.
必須有指定不同的IP地址相同的端口號的方式。我將不勝感激任何幫助。
流浪漢 - 版本 流浪1.9.5 – chaimp
固定雖然,謝謝你引用這一點。我發現這個: https://github.com/mitchellh/vagrant/issues/8423#issuecomment-296209638 顯然我需要降級?試着現在... – chaimp
這沒有奏效 – chaimp