环境是 Mac OSX Mountain Lion, 10.8.4 Build 12E55
, ruby 1.9.3-p327-falcon
, Rails 3.2.14
之前都很好,昨天突然出现了,启动 rails s
之后,浏览器没法访问,Ctrl-C
无法终止..
用 rails s
启动之后,看上去一切正常
→ rails s
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
=> Booting Thin
=> Rails 3.2.14 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Thin web server (v1.5.1 codename Straight Razor) Maximum connections set to 1024 Listening on 0.0.0.0:3000, CTRL+C to stop
但我用浏览器访问 127.0.0.1:3000 的话,浏览器就一直在 Loading 的转转转,console 里也什么都没有,就好像 rails server 接收不到这个 request 一样
然后我 telnet 了一下端口,看上去也是正常的。
→ telnet 127.0.0.1 3000 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'
如果我用 Ctrl-C
结束 rails s
也结束不了:
→ rails s WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1 => Booting Thin => Rails 3.2.14 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server
Thin web server (v1.5.1 codename Straight Razor) Maximum connections set to 1024 Listening on 0.0.0.0:3000, CTRL+C to stop ^C>> Stopping ... ^C>> Stopping ... ^C>> Stopping ... ^C>> Stopping ... ^C>> Stopping ... ^C>> Stopping ...
有人碰到过么?怎么来找到问题在哪儿啊?