不好意思问候noob问题。无法使用我的Ubuntu服务器的公网IP在浏览器中访问我的Rails应用程序
我有一个Ubuntu 16.04.1 LTS(GNU/Linux 4.4.0-63-generic x86_64)服务器,我的公有IP是类似于183.xx.xxx.xx(curl -4 icanhazip.com).I
rails s -b0.0.0.0 -p3002
和彪马服务器已成功启动
=> Booting Puma
=> Rails 5.0.3 application starting in development on http://localhost:3002
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Version 3.9.1 (ruby 2.4.0-p0), codename: Private Caller
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://0.0.0.0:3002
Use Ctrl-C to stop
我试图访问我的应用程序在浏览器中使用:使用命令运行我的Rails应用程序
http://183.xx.xxx.xx:3002
我越来越
This site can’t be reached
172.xx.xxx.xx took too long to respond.
ERR_CONNECTION_TIMED_OUT
netstat的-plnt
tcp 0 0 0.0.0.0:45109 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:3002 0.0.0.0:* LISTEN 25689/0.0.0.0:3002)
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN -
的处理与PID 25689
任何帮助运行事先高度Appreciate.Thanks!
您一定要使用正确的IP验证'ifconfig' –
你为什么想要通过端口访问您的导轨应用程序?只需使用Web服务器进行配置即可。比如:apache2或Nginx – hgsongra
@ Farhan,谢谢你的回复。我确定使用正确的公有IP。 – suresh