我在将Jenkins安装为Windows服务时遇到了问题:以下是错误日志:
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,我遇到了一些问题,所以我卸载了它并重新安装了它。现在我得到了这个问题。任何帮助都将不胜感激。谢谢
发布于 2019-08-18 02:52:13
如错误所示,必须存在某个名称为jenkins的现有服务。要删除该命令,请使用提升的权限(即,以管理员身份运行)打开命令提示符,然后键入命令:sc delete jenkins
有关sc命令的更多详细信息,请参阅this页面。
https://stackoverflow.com/questions/57535390
复制相似问题