简体   繁体   English

使用Rails设置Webrick服务器后无法访问http:// localhost:3000

[英]Can't access http://localhost:3000 after setting up webrick server with rails

I followed this tutorial: http://guides.rubyonrails.org/getting_started.html and I get to the part where you write: 我遵循了本教程: http : //guides.rubyonrails.org/getting_started.html,然后我进入了您撰写的部分:

rails server

Then, when I tried to access http:/localhost:3000 I had an "access denied" error. 然后,当我尝试访问http:/ localhost:3000时出现“拒绝访问”错误。 I already tried: 我已经尝试过:

  • accessing http:// my-ip:3000, http:// 127.0.0.1:3000, http:// 0.0.0.0:3000 (the spaces are because I'm not allowed to post links) 访问http:// my-ip:3000,http:// 127.0.0.1:3000、http:// 0.0.0.0:3000(空格是因为不允许发布链接)
  • opening the 3000 port in the firewall settings 在防火墙设置中打开3000端口
  • trying again from a different browser/computer 从其他浏览器/计算机再次尝试

What can I do to make it work? 我该怎么做才能使其正常工作?

Thanks. 谢谢。

Did you try to login before? 您是否尝试过登录?

It can be if you did by "Getting started" page you have "cookies" with wrong credentials. 如果您是通过“入门”页面完成的,则可能是带有错误凭据的“ cookie”。

Can you check your browser cookies and remove all for "your-ip", localhost, 127.0.0.1 with 300 port? 您可以检查浏览器cookie并通过300端口删除所有“ your-ip”,localhost,127.0.0.1吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Docker,使用docker flag -p 3000:3000无法从localhost:3000到达“rails server”开发 - Docker, can't reach “rails server” development from localhost:3000 using docker flag -p 3000:3000 Rails Server的问题:WEBrick似乎可以启动,但是localhost:3000和版本未加载 - Problems with Rails Server: WEBrick appears to boot, but localhost:3000 and variations do not load 无法打开http:// localhost:3000-为什么? - Can't open http://localhost:3000 - why? Ruby on Rails无法访问MAC上的http:/ localhost:3000 - Ruby on rails cannot access http:/localhost:3000 on MAC Rails 5:通过与http:// localhost:3000的不安全连接阻止了对地理定位的访问 - Rails 5: Access to geolocation was blocked over insecure connection to http://localhost:3000 Cloud 9正在运行Rails服务器,但未连接到http:// localhost:3000 - Cloud 9 running rails server, but not connected to http://localhost:3000 无法访问http:// localhost:3000 - Cannot access http://localhost:3000 Ruby on Rails在Windows上无法连接到localhost:3000、127.0.0.1:3000和0.0.0.0:3000 - Ruby on Rails can't connect to localhost:3000, 127.0.0.1:3000 and 0.0.0.0:3000 on Windows Rails服务器不起作用,本地主机:3000 - rails server not working, localhost:3000 无法启动Rails服务器(错误的URI(不是URI?):tcp:// localhost:5000:3000) - can't start rails server (bad URI(is not URI?): tcp://localhost:5000:3000)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM