如何在 Windows 上卸载 Jenkins?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26677637/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to uninstall Jenkins on Windows?
提问by Niko Bellic
A similar question was asked for Macs: How to uninstall Jenkins?
Mac 上也有人问过类似的问题:如何卸载 Jenkins?
How do I do the same on Windows (specifically if I used the Jenkins Windows Installer to install Jenkins)?
我如何在 Windows 上做同样的事情(特别是如果我使用 Jenkins Windows Installer 来安装 Jenkins)?
My proposed uninstall plan is as follows, but I'm not sure if it is the correct way:
我提出的卸载计划如下,但我不确定它是否是正确的方法:
- Uninstall the Jenkins Windows Service by executing jenkins.exe uninstallfrom the command line (as suggested here: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service)
- Simply delete the directory: C:\Program Files (x86)\Jenkins
- 通过从命令行执行jenkins.exe uninstall来卸载 Jenkins Windows 服务(如此处建议:https: //wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+as+a+Windows+service)
- 只需删除目录:C:\Program Files (x86)\Jenkins
回答by zalimgandhera
To uninstall jenkins and its slave services
卸载 jenkins 及其从属服务
1.Simply go to the directory where jenkins is installed.
1.直接进入jenkins的安装目录。
2.Then open up a cmd in that directory. (cmd in administrator mode is preferable)
2.然后在该目录中打开一个cmd。(最好在管理员模式下使用cmd)
3.jenkins.exe uninstall (this name could be different in case of slave jenkins services like jenkins-slave.exe or something similar, the application is present in the folder)
3.jenkins.exe 卸载(对于从属 jenkins 服务,如 jenkins-slave.exe 或类似的东西,此名称可能不同,该应用程序存在于文件夹中)
For Jenkins as services do the same thing except go to its working directory.
对于 Jenkins 作为服务,除了转到它的工作目录外,它也做同样的事情。
In the end you can safely delete the directories.
最后,您可以安全地删除目录。
回答by Ron Inbar
- Find the .msi (Windows Installer) file that you used to install Jenkins. For me, it was in a .zip file in my Downloads folder.
- Double-click it. (You can double-click the .msi file inside the compressed folder. There's no need to extract it first.)
- Since Jenkins is already installed, Windows Installer will give you options to customize it or remove it.
- Choose "Uninstall."
- 找到用于安装 Jenkins 的 .msi(Windows 安装程序)文件。对我来说,它位于我的下载文件夹中的 .zip 文件中。
- 双击它。(您可以双击压缩文件夹中的 .msi 文件,无需先解压。)
- 由于 Jenkins 已经安装,Windows Installer 将提供自定义或删除它的选项。
- 选择“卸载”。