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

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

问题描述

这可能很简单,但我在任何地方都找不到任何提示。

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-ci.org/ 的Jenkins Mac安装程序

These instructions apply if you installed using the official Jenkins Mac installer from http://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

,如果你想摆脱所有的工作和建筑: p>

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

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

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