---
title: "如何把resin安装成window service（windows服务）？"
author: "harbey"
date: "2009-04-17T14:47:52Z"
tags: []
slug: "resin-window-service-windows"
draft: false
lastmod: "2009-04-17T14:47:52Z"
id: 369574
url: "https://harbey.iteye.com/blog/369574"
---

问题描述：
如何把resin安装成window service（windows服务）？
解决办法：
可以通过resin.exe的参数install和remove完成，例如：
dos:\> ${resin_home}\resin.exe -install
dos:\> ${resin_home}\resin.exe -remove

另外，安装时可以指定服务名，用以标明服务对应哪些应用application，例如：
dos:\> ${resin_home}\resin.exe -install-as
dos:\> ${resin_home}\resin.exe -remove-as

dos:\> ${resin_home}\resin.exe -install-as myapplication
就会在windows服务里看到有名为myapplication的服务！