首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在将Jenkins安装为Windows服务时出现错误"Service with id 'jenkins‘as“

在将Jenkins安装为Windows服务时出现错误"Service with id 'jenkins‘as“
EN

Stack Overflow用户
提问于 2019-08-17 18:20:24
回答 1查看 1.3K关注 0票数 0

我在将Jenkins安装为Windows服务时遇到了问题:以下是错误日志:

代码语言:javascript
复制
Error
Installing a service
[.jenkins] $ C:\Users\Lenovo-I7\.jenkins\jenkins.exe install
2019-08-17 15:43:47,662 INFO  - Installing the service with id 'jenkins'
Service with id 'jenkins' already exists
To install the service, delete the existing one or change service Id in the configuration file
2019-08-17 15:43:47,667 FATAL - Unhandled exception
System.Exception: Installation failure: Service with id 'jenkins' already exists
   at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
   at winsw.WrapperService.Main(String[] args)
System.Exception: Installation failure: Service with id 'jenkins' already exists
   at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
   at winsw.WrapperService.Main(String[] args)

我之前也在我的系统中安装了Jenkins,我遇到了一些问题,所以我卸载了它并重新安装了它。现在我得到了这个问题。任何帮助都将不胜感激。谢谢

EN

回答 1

Stack Overflow用户

发布于 2019-08-18 02:52:13

如错误所示,必须存在某个名称为jenkins的现有服务。要删除该命令,请使用提升的权限(即,以管理员身份运行)打开命令提示符,然后键入命令:sc delete jenkins

有关sc命令的更多详细信息,请参阅this页面。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57535390

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档