Can't run rails server as daemon
I'm using rails 2.3.2 and when I run开发者_开发知识库 script/server -d, the only output I get is
=> Booting Mongrel => Rails 2.3.2 application starting on http://0.0.0.0:3000
which is fine. But when I check for anything running on port 3000, i get nothing. Any ideas?
If the mongrel server has started, which appears to be the case, it's probably a firewall issue which you would need to manage via iptables.
From the local machine try to connect to localhost:3000.
For example curl http://localhost:3000
or telnet localhost 3000
If this wasn't the problem and the rails logs are uneventful, you could also have a look in various system logs such as /var/log/messages or /var/log/secure which may hint you on what's going on.
精彩评论