[英]Ruby on Rails can't connect to localhost:3000, 127.0.0.1:3000 and 0.0.0.0:3000 on Windows
I'm a total newbie learning Ruby on Rails and using a Windows machine. 我是一个学习Ruby on Rails并使用Windows机器的新手。 The steps used to install ruby on rails were:
在轨道上安装红宝石的步骤是:
then run the following commands 然后运行以下命令
ruby dk.rb init
ruby dk.rb install
gem install bundler
gem install sqlite3
gem install rails
rails new testapp
cd testapp
bundle exec rails server
which means that I ran rails server in the testapp folder and part of the output says this: bundle exec rails server
,这意味着我在testapp文件夹中运行了Rails服务器,部分输出显示了这一点:
Finally when I tried to connect to localhost:3000, 127.0.0.1:3000, or 0.0.0.0:3000. 最后,当我尝试连接到localhost:3000、127.0.0.1:3000或0.0.0.0:3000时。 None worked.
没有工作。 Any ideas?
有任何想法吗? I'm guessing it has to do something with the Exiting line.
我猜想它必须与Exiting Line做些事情。
The error indicates that TZInfo was unable to find a source of time zone data on your system.
该错误表明TZInfo无法在您的系统上找到时区数据源。 This will typically occur if you are using Windows.
如果使用Windows,通常会发生这种情况。
Resolving TZInfo::DataSourceNotFound Errors 解决TZInfo :: DataSourceNotFound错误
Try to install tzinfo-data gem by editing Gemfile
and put gem 'tzinfo-data'
and run bundle install
尝试通过编辑
Gemfile
来安装tzinfo-data gem,然后将Gemfile
gem 'tzinfo-data'
放入并运行bundle install
Or to use the ruby modules as the data source, running by 或者使用ruby模块作为数据源,运行方式为
gem install tzinfo-data
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.