如何卸载詹金斯? [英] How to uninstall Jenkins?

查看:46
本文介绍了如何卸载詹金斯?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能很简单,但我在任何地方都找不到任何提示.那么,一般来说,特别是在 Mac 上,应该如何做到这一点?

This is probably very simple, but I can't find any hint anywhere. So how one is supposed to do that, in general and specifically on Mac?

推荐答案

如果您使用来自 http:/的官方 Jenkins Mac 安装程序进行安装,则这些说明适用/jenkins-ci.org/

从终端执行卸载脚本:

'/Library/Application Support/Jenkins/Uninstall.command'

或使用 Finder 导航到该文件夹​​并双击 Uninstall.command.

or use Finder to navigate into that folder and double-click on Uninstall.command.

最后删除可能忘记的最后配置位:

Finally delete last configuration bits which might have been forgotten:

sudo rm -rf /var/root/.jenkins ~/.jenkins

如果找不到卸载脚本(Jenkins 旧版本),请使用以下命令:

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo rm /Library/LaunchDaemons/org.jenkins-ci.plist
sudo rm -rf /Applications/Jenkins "/Library/Application Support/Jenkins" /Library/Documentation/Jenkins

如果你想摆脱所有的工作和构建:

and if you want to get rid of all the jobs and builds:

sudo rm -rf /Users/Shared/Jenkins

并删除 jenkins 用户和组(如果您选择使用它们):

and to delete the jenkins user and group (if you chose to use them):

sudo dscl . -delete /Users/jenkins
sudo dscl . -delete /Groups/jenkins

这些命令也由较新的 Jenkins 版本中的卸载脚本调用,并且也应该被执行:

These commands are also invoked by the uninstall script in newer Jenkins versions, and should be executed too:

sudo rm -f /etc/newsyslog.d/jenkins.conf
pkgutil --pkgs | grep 'org.jenkins-ci.' | xargs -n 1 sudo pkgutil --forget

这篇关于如何卸载詹金斯?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆