将 Ruby 程序作为 Windows 服务运行? [英] Running a Ruby Program as a Windows Service?

查看:39
本文介绍了将 Ruby 程序作为 Windows 服务运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将 ruby​​ 应用程序作为 Windows 服务运行?我看到有一个相关的问题讨论了运行 Java 应用程序作为 Windows 服务,你怎么能用 Ruby 应用程序做到这一点?

Is it possible to run a ruby application as a Windows Service? I see that there is a related question which discusses running a Java Application as a Windows Service, how can you do this with a Ruby application?

推荐答案

查看以下库:Win32Utils.您可以创建一个简单的服务,您可以在闲暇时启动/停止/重启.我目前正在使用它来管理 Windows 托管的 Rails 应用程序的 Mongrel 实例,它运行完美.

Check out the following library: Win32Utils. You can create a simple service that you can start/stop/restart at your leisure. I'm currently using it to manage a Mongrel instance for a Windows hosted Rails app and it works flawlessly.

这篇关于将 Ruby 程序作为 Windows 服务运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆