我安装了 Ruby 2.1.2 和 Rails 4.2。
捆绑安装运行没有错误。
我可以毫无错误地执行 Rails C。
Rails s -p3004 使用 webrick 或 Thin 启动,没有错误
当我浏览到 mytestsite:3004 safari、firefox 和 chrome 时都报告“无法连接到服务器”
任何系统日志中都没有错误显示;syslog、lfd.log、auth.log 或任何 apache 日志。
如果我启动我的 4.04 站点,端口 3001、3002 工作正常。如果我关闭 4.04,并在端口 3001 或 3002 上启动 4.2,我会收到“无法连接到服务器”错误。这对我来说似乎意味着它不是阻止端口的防火墙问题。尽管如此, iptables -L 报告端口 3004 已打开:
ACCEPT tcp -- anywhere anywhere ctstate NEW tcp dpt:3004
Run Code Online (Sandbox Code Playgroud)
Rails 报告:
=> Booting WEBrick
=> Rails 4.2.0.beta1 application starting in development on http://localhost:3004
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown …
Run Code Online (Sandbox Code Playgroud)