在 Windows 上运行 mongrel_rails cluster::start
我已经成功地让 mongrel_cluster 在我的 Windows 服务器(v 1.0.5)上运行,但我在尝试让它生成所有 (4) 个 mongrel 实例时遇到了麻烦。
它可以正常启动第一个,但之后就不再执行了。 该实例运行良好,但其他实例未启动。 我认为这是因为:“**警告:Win32 不支持守护程序模式。” 所以它不会为每个实例分叉进程。
这有解决办法吗? 即使我必须手动启动 4 个“mongrel_rails cluster::start”,也没关系(假设它们启动了集群的正确节点),或者我最好只启动 4 个普通(和单独的) mongrel 实例?
我有两个主要问题:
有办法解决这个问题吗? 如果不使用 mongrel_cluster,我会失去哪些很酷的功能?
I have managed to get mongrel_cluster running on my Windows server (v 1.0.5) ok, but I am having trouble trying to get it to spawning all of the (4) mongrel instances.
It launches the first one ok, but then does no more. That one instance serves just fine, but the others are not launched. I assume that this is becasue of: "** WARNING: Win32 does not support daemon mode." so its not forking the processes for each instance.
Is there a work arround for this? Even if I have to start 4 'mongrel_rails cluster::start' manually, thats ok (assumming that they start the correct node of the cluster), or am I better off just launching 4 normal (and speerate) mongrel instances?
I have 2 primary questions:
Is there a way to solve this?
What cool features will I loose by not using mongrel_cluster?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,你根本做不到我想做的事。 相反,您需要安装 mongrel_service gem 并运行单独的 mongrel 实例作为系统服务并平衡这些实例。
It turns out that you simply CANNOT do what I want to do. Instead you need to install the mongrel_service gem and run seperate mongrel instances as system services and balance on those.