新手问题 Vagrant 虚拟机启动项目无法访问

mijael · January 11, 2016 · Last by santochancf replied at January 11, 2016 · 2307 hits

RT,virtual box 虚拟机使用的公有网络模式(虚拟机 IP,192.168.30.10,本机 IP,192.168.1.101),主机和虚拟机能互相 ping 通,但是 rails server 启动之后,主机打不开http://192.168.30.10:3000这个地址 被这个问题折腾很久了,求指教

bundle exec rails s -b 0.0.0.0

看看防火墙关了没

#1 楼 @santochancf 多谢,原来是启动时要绑定 ip

You need to Sign in before reply, if you don't have an account, please Sign up first.