问题描述:
如何把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的服务!

 

PS:

window 注册服务的普通方式(在svn在Windows下安装一文中曾提到,可以灵活运用):

sc create svnserve binpath= ""C:Program FilesSubversionbinsvnserve.exe"    --service --root c:repos" displayname= "Subversion" depend= tcpip start= auto
在创建服务以后,你还可以增加描述。它在 Windows 服务管理器中显示。

sc description svnserve "Subversion server (svnserve)"
注意 sc 的命令行很特殊。在 key= value 对中,key 与 = 之间不能有空格,但是在 value 之前,必须有空格

相关文章:

  • 2021-06-11
  • 2022-01-12
  • 2022-12-23
  • 2021-04-08
  • 2021-08-23
  • 2022-01-07
  • 2021-10-17
  • 2021-07-13
猜你喜欢
  • 2021-07-02
  • 2021-10-11
  • 2021-08-14
  • 2022-12-23
  • 2021-08-15
  • 2021-11-01
  • 2021-05-21
相关资源
相似解决方案