Blueherb In solitude, where we are least alone

Windows Server 2003 添加“Resin”到“服务”出错

将“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.

posted @ 2015-03-25 14:22  Blueherb  阅读(368)  评论(0编辑  收藏  举报