我正在使用Windows机器,在运行
ubuntu/xenial64
的Vagrant box上安装了Rails。当我ssh进入该box并创建一个Rails应用程序,cd
进入文件夹并运行rails server
时,它告诉我:
Rails 5.1.2应用程序在http://localhost:3000上以开发模式启动
监听tcp://0.0.0.0:3000
现在我想在我的Windows机器上访问localhost:3000
,但它显示未找到。如何使Rails服务器对Windows可用?
rails s -b 0.0.0.0
命令启动服务器。 - Deepak Mahakaleenp0s3
获取:inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
。但访问它们会得到“连接超时”的响应。 - GluePear