监控 ROR 服务器(精简型或混合型)的资源和 WINDOWS 中的可用性并重新生成

发布于 2024-12-27 16:50:40 字数 387 浏览 3 评论 0原文

首先我想说的是,我知道不建议在 Windows 中部署 ROR 应用程序,但在这种情况下,由于某些客户端限制,我别无选择。

我正在寻找一个类似 Upstart 的 Windows 工具,它可以监视我的 Thin 或 Mongrel 实例,并且会重新-在崩溃或可用性的情况下生成'。

现在我环顾四周,大多数解决方案(例如 UpStart 或 Passenger 服务器)仅适用于 Unix 环境。

有哪些已知的 Windows 工具?以及如何使用它们?

我也对 Windows 的任何替代 ror 服务器持开放态度,这些服务器可以像乘客一样自动执行此操作。

谢谢 肖纳克

First thing I would like to say is, i know deploying ror applications in windows is not recommended, but in this case i have no choice due to some client restrictions.

I am looking for a tool like Upstart for windows which will moniter my instance of Thin or Mongrel and will 're-spawn' in case of crashes or availability.

Now I looked around quite a bit and most solutions like UpStart, or Passenger server are only available for Unix environments.

Any known tools for windows? and how to use them?

I am also open to any alternative ror servers for windows that can do this automatically like passenger does.

Thanks
Shaunak

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

木緿 2025-01-03 16:50:40

也许一个bat脚本作为计划任务来运行wmic进程,扫描以找到Mongrel,如果没有找到就运行它?

抱歉,我会在 bash 中完成,或者我会给你一个代码示例。

在我看来,这也是一个很好的 python 脚本。

Maybe a bat script as a scheduled task to run wmic process, scan to find Mongrel, and if it's not found to run it?

Sorry, I'd do it in bash, or I'd have a code example for you.

This would also make a good python script, in my opinion.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文