将“Resin”添加到【服务】

进入安装目录,执行 httpd -install

从【服务】移除

执行 httpd -remove

------------------------------------------------------------------------------

【背景】
Windows添加应用程序到服务,执行了sc delete 服务名,如“sc delete Resin Web Server”。(创建时可以:sc create Resin binpath= "c:/httpd.exe" ,但是我没有成功过)

之后执行:httpd -install 时,出现:

Can't install Resin as an NT service 1072:指定的服务已标记为删除
【服务】列表中的“Resin Web Server”不能启动,启动类型为“禁用”,当设置为“自动”时,会弹出“指定的服务已标记为删除”。

【解决办法】
打开【Windows任务管理器】,在【进程】中找到“httpd.exe”,然后结束该进程。
此时再执行 “httpd -install”,这时OK,Installed Resin as an NT service.

相关文章:

  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2021-12-30
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2021-10-15
  • 2021-05-24
  • 2021-12-29
  • 2021-05-16
  • 2021-06-25
相关资源
相似解决方案