Mongrel 不会使用 CTRL-C 关闭
我正在使用 Ruby 1.8.7 构建 Rails 2.3.5 应用程序。我的开发平台是运行 Snow Leopard 10.6.4 的 MacBook Pro。在开发过程中,我经常无法使用终端中的 Ctrl-C 命令关闭 mongrel。有时它确实有效,但十分之八的情况是无效的。我不认为 Ctrl-C 失败与我之前在 Rails 应用程序中执行的任何特定操作有关。有人有什么建议吗?谢谢
I am building a Rails 2.3.5 application using Ruby 1.8.7. My development platform is a MacBook Pro running Snow Leopard 10.6.4. Often during development I can not shut down mongrel using the Ctrl-C command in Terminal. It does work sometimes but 8 times out of 10 it does not work. I do not think the Ctrl-C failure is linked to any particular action that I previously performed in my Rails application. Does anyone have any suggestions? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我还有一台运行相同版本 Snow Leopard 的 MacBook Pro,但没有遇到此问题。也许是你的外壳有问题?虽然我无法想象为什么会这样。您确定您的控制键没有问题(您可以在另一个应用程序中测试它)吗?
I also have a MacBook Pro running the same version of Snow Leopard and have not seen this issue. Perhaps it's an issue with your shell? Though I can't imagine why that would be the case. Are you sure there isn't some problem with your control key (can you test it in another application)?
同样的问题,可以用 Cntr-C 来阻止 Mongrel。在 1.8.7 中一切正常,但在 1.9.2 中它只是挂起并且永远不会终止。
苹果电脑10.5.8
红宝石 1.9.2
The same problem, can's stop Mongrel with Cntr-C. With 1.8.7 all works well, but with 1.9.2 it just hangs and never terminates.
Mac 10.5.8
Ruby 1.9.2
实际上我解决了这个问题,我开始使用 Thin 服务器而不是 Mongrel,并且效果很好:)
Actually I fixed this issue, I started using Thin server instead of Mongrel, and it works well :)